diff --git a/src/ServiceBus/ServiceBus.Autorest/.gitattributes b/src/ServiceBus/ServiceBus.Autorest/.gitattributes new file mode 100644 index 000000000000..2125666142eb --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/.gitignore b/src/ServiceBus/ServiceBus.Autorest/.gitignore new file mode 100644 index 000000000000..3c3d57339c8b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/.gitignore @@ -0,0 +1,16 @@ +bin +obj +.vs +generated +internal +exports +tools +custom/*.psm1 +custom/autogen-model-cmdlets +test/*-TestResults.xml +/*.ps1 +/*.ps1xml +/*.psm1 +/*.snk +/*.csproj +/*.nuspec \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/Az.ServiceBus.psd1 b/src/ServiceBus/ServiceBus.Autorest/Az.ServiceBus.psd1 new file mode 100644 index 000000000000..229d4fb8b760 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/Az.ServiceBus.psd1 @@ -0,0 +1,24 @@ +@{ + GUID = 'f73d11ef-c690-49f3-8c2c-9000e0e4fe69' + RootModule = './Az.ServiceBus.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: ServiceBus cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.ServiceBus.private.dll' + FormatsToProcess = './Az.ServiceBus.format.ps1xml' + FunctionsToExport = 'Approve-AzServiceBusPrivateEndpointConnection', 'Complete-AzServiceBusMigration', 'Deny-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusAuthorizationRule', 'Get-AzServiceBusGeoDRConfiguration', 'Get-AzServiceBusKey', 'Get-AzServiceBusMigration', 'Get-AzServiceBusNetworkRuleSet', 'Get-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusPrivateLink', 'Get-AzServiceBusQueue', 'Get-AzServiceBusRule', 'Get-AzServiceBusSubscription', 'Get-AzServiceBusTopic', 'New-AzServiceBusAuthorizationRule', 'New-AzServiceBusGeoDRConfiguration', 'New-AzServiceBusIPRuleConfig', 'New-AzServiceBusKey', 'New-AzServiceBusQueue', 'New-AzServiceBusRule', 'New-AzServiceBusSubscription', 'New-AzServiceBusTopic', 'New-AzServiceBusVirtualNetworkRuleConfig', 'Remove-AzServiceBusAuthorizationRule', 'Remove-AzServiceBusGeoDRConfiguration', 'Remove-AzServiceBusMigration', 'Remove-AzServiceBusPrivateEndpointConnection', 'Remove-AzServiceBusQueue', 'Remove-AzServiceBusRule', 'Remove-AzServiceBusSubscription', 'Remove-AzServiceBusTopic', 'Set-AzServiceBusAuthorizationRule', 'Set-AzServiceBusGeoDRConfigurationBreakPair', 'Set-AzServiceBusGeoDRConfigurationFailOver', 'Set-AzServiceBusNetworkRuleSet', 'Set-AzServiceBusQueue', 'Set-AzServiceBusRule', 'Set-AzServiceBusSubscription', 'Set-AzServiceBusTopic', 'Start-AzServiceBusMigration', 'Stop-AzServiceBusMigration', 'Test-AzServiceBusName', '*' + AliasesToExport = '*' + PrivateData = @{ + PSData = @{ + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ServiceBus' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/README.md b/src/ServiceBus/ServiceBus.Autorest/README.md new file mode 100644 index 000000000000..84209479951c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/README.md @@ -0,0 +1,439 @@ + +# Az.ServiceBus +This directory contains the PowerShell module for the ServiceBus service. + +--- +## Status +[![Az.ServiceBus](https://img.shields.io/powershellgallery/v/Az.ServiceBus.svg?style=flat-square&label=Az.ServiceBus "Az.ServiceBus")](https://www.powershellgallery.com/packages/Az.ServiceBus/) + +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.ServiceBus`, see [how-to.md](how-to.md). + + +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +# Please specify the commit id that includes your features to make sure generated codes stable. +branch: 6f0c7d58c0a923917c2b3467ee756f21dbd2f8e2 +require: +# readme.azure.noprofile.md is the common configuration file + - $(this-folder)/../../readme.azure.noprofile.md +input-file: +# You need to specify your swagger files here. + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/Queue.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/topics.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/AuthorizationRules.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/CheckNameAvailability.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/DisasterRecoveryConfig.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/migrationconfigs.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/networksets.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/operations.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/Rules.json + - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/subscriptions.json +# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally +# - (this-folder)/relative-path-to-your-swagger + +# For new RP, the version is 0.1.0 +module-version: 0.1.0 +# Normally, title is the service name +title: ServiceBus +subject-prefix: $(service-name) + +# If there are post APIs for some kinds of actions in the RP, you may need to +# uncomment following line to support viaIdentity for these post APIs +identity-correction-for-post: true +resourcegroup-append: true +nested-object-to-string: true + +directive: + - where: + variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + remove: true + - where: + variant: ^CreateViaIdentity$ + hide: true + - where: + verb: Set + remove: true + - where: + verb: Update + remove: true + +# Migration Configs + - where: + verb: New + subject: MigrationConfigAndStartMigration + set: + verb: Start + subject: Migration + - where: + verb: Invoke + subject: RevertMigrationConfig + set: + verb: Stop + subject: Migration + - where: + subject: MigrationConfigMigration + set: + subject: Migration + - where: + subject: MigrationConfig + set: + subject: Migration + +# Remove namespace cmdlets + - where: + subject: Namespace + remove: true + +# Rules + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterContentType + set: + parameter-name: ContentType + - where: + model-name: Rule + property-name: CorrelationFilterContentType + set: + property-name: ContentType + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterCorrelationId + set: + parameter-name: CorrelationId + - where: + model-name: Rule + property-name: CorrelationFilterCorrelationId + set: + property-name: CorrelationId + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterLabel + set: + parameter-name: Label + - where: + model-name: Rule + property-name: CorrelationFilterLabel + set: + property-name: Label + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterMessageId + set: + parameter-name: MessageId + - where: + model-name: Rule + property-name: CorrelationFilterMessageId + set: + property-name: MessageId + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterReplyTo + set: + parameter-name: ReplyTo + - where: + model-name: Rule + property-name: CorrelationFilterReplyTo + set: + property-name: ReplyTo + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterReplyToSessionId + set: + parameter-name: ReplyToSessionId + - where: + model-name: Rule + property-name: CorrelationFilterReplyToSessionId + set: + property-name: ReplyToSessionId + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterSessionId + set: + parameter-name: SessionId + - where: + model-name: Rule + property-name: CorrelationFilterSessionId + set: + property-name: SessionId + + - where: + verb: New + subject: Rule + parameter-name: CorrelationFilterTo + set: + parameter-name: To + - where: + model-name: Rule + property-name: CorrelationFilterTo + set: + property-name: To + + - where: + verb: New + subject: Rule + parameter-name: ActionCompatibilityLevel + hide: true + + - where: + verb: New + subject: Rule + parameter-name: SqlFilterCompatibilityLevel + hide: true + + - where: + verb: New + subject: Rule + parameter-name: SqlFilterSqlExpression + set: + parameter-name: SqlExpression + - where: + model-name: Rule + property-name: SqlFilterSqlExpression + set: + property-name: SqlExpression + +# Subscriptions + - where: + verb: New + subject: Subscription + parameter-name: ClientAffinePropertyClientId + set: + parameter-name: ClientId + - where: + model-name: SbSubscription + property-name: ClientAffinePropertyClientId + set: + property-name: ClientId + + - where: + verb: New + subject: Subscription + parameter-name: ClientAffinePropertyIsDurable + set: + parameter-name: IsDurable + - where: + model-name: SbSubscription + property-name: ClientAffinePropertyIsDurable + set: + property-name: IsDurable + + - where: + verb: New + subject: Subscription + parameter-name: ClientAffinePropertyIsShared + set: + parameter-name: IsShared + - where: + model-name: SbSubscription + property-name: ClientAffinePropertyIsShared + set: + property-name: IsShared + +# Authorization Rules + - where: + variant: ^RegenerateExpanded$|^RegenerateViaIdentityExpanded$|^RegenerateViaIdentity$ + remove: true + + - where: + subject: QueueAuthorizationRule|NamespaceAuthorizationRule|TopicAuthorizationRule|DisasterRecoveryConfigAuthorizationRule + hide: true + + - where: + subject: QueueKey|NamespaceKey|TopicKey|DisasterRecoveryConfigKey + hide: true + + - where: + subject: QueueAuthorizationRule|NamespaceAuthorizationRule|TopicAuthorizationRule|DisasterRecoveryConfigAuthorizationRule + parameter-name: AuthorizationRuleName + set: + parameter-name: Name + + - where: + subject: QueueKey|TopicKey|NamespaceKey + parameter-name: AuthorizationRuleName + set: + parameter-name: Name + +# Disaster Recovery Configs + - where: + subject: DisasterRecoveryConfig + parameter-name: Alias + set: + parameter-name: Name + + - where: + verb: Invoke + subject: BreakDisasterRecoveryConfigPairing|FailDisasterRecoveryConfigOver + parameter-name: Alias + set: + parameter-name: Name + + - where: + verb: Invoke + subject: BreakDisasterRecoveryConfigPairing + hide: true + + - where: + verb: Invoke + subject: FailDisasterRecoveryConfigOver + hide: true + + - where: + subject: DisasterRecoveryConfig + set: + subject: GeoDRConfiguration + +# Change singular names to plural + - where: + parameter-name: MaxMessageSizeInKilobyte + set: + parameter-name: MaxMessageSizeInKilobytes + - where: + property-name: MaxMessageSizeInKilobyte + set: + property-name: MaxMessageSizeInKilobytes + + - where: + parameter-name: MaxSizeInMegabyte + set: + parameter-name: MaxSizeInMegabytes + - where: + property-name: MaxSizeInMegabyte + set: + property-name: MaxSizeInMegabytes + + - where: + parameter-name: EnableBatchedOperation + set: + parameter-name: EnableBatchedOperations + - where: + property-name: EnableBatchedOperation + set: + property-name: EnableBatchedOperations + +# Re-Write descriptions for TimeSpan objects +# Reason being the swagger descriptions specify ISO 8601 format for timespan objects which will no longer be supported by powershell + - where: + parameter-name: LockDuration + verb: New|Set + subject: Queue|Topic|Subscription + set: + parameter-description: Timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute. + + - where: + parameter-name: DefaultMessageTimeToLive + verb: New|Set + subject: Queue|Topic|Subscription + set: + parameter-description: This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself. + + - where: + parameter-name: DuplicateDetectionHistoryTimeWindow + verb: New|Set + subject: Queue|Topic|Subscription + set: + parameter-description: Defines the duration of the duplicate detection history. The default value is 10 minutes. + + - where: + parameter-name: AutoDeleteOnIdle + verb: New|Set + subject: Queue|Topic|Subscription + set: + parameter-description: Idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes. + +# Name Availability + - where: + verb: Test + subject: NamespaceNameAvailability + hide: true + + - where: + verb: Test + subject: DisasterRecoveryConfigNameAvailability + hide: true + +# Hide New-AzEventHubPrivateEndpointConnection + - where: + verb: New + subject: PrivateEndpointConnection + hide: true + + - where: + subject: PrivateLinkResource + set: + subject: PrivateLink + + - where: + verb: Get + subject: PrivateLink + variant: GetViaIdentity + remove: true + + - where: + model-name: PrivateEndpointConnection + property-name: PrivateLinkServiceConnectionStateStatus + set: + property-name: ConnectionState + + - where: + model-name: PrivateEndpointConnection + property-name: PrivateLinkServiceConnectionStateDescription + set: + property-name: Description + +# Network Rule Sets + - where: + subject: NamespaceNetworkRuleSet + set: + subject: NetworkRuleSet + + - where: + verb: New + subject: NetworkRuleSet + hide: true + +# Suppress Table formats + - where: + model-name: (.*) + set: + suppress-format: true + + - where: + subject: Subscription + parameter-name: Id + set: + parameter-name: SubscriptionId + clear-alias: true diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Approve-AzServiceBusPrivateEndpointConnection.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Approve-AzServiceBusPrivateEndpointConnection.ps1 new file mode 100644 index 000000000000..2b86f24072ae --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Approve-AzServiceBusPrivateEndpointConnection.ps1 @@ -0,0 +1,158 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Approves a ServiceBus PrivateEndpointConnection +.Description +Approves a ServiceBus PrivateEndpointConnection +#> + +function Approve-AzServiceBusPrivateEndpointConnection{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateEndpointConnection])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")] + [Alias('PrivateEndpointConnectionName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Private Endpoint Connection + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "PrivateEndpoint information.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # PrivateEndpoint information. + ${Description}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasDescription = $PSBoundParameters.Remove('Description') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $connection = Get-AzServiceBusPrivateEndpointConnection @PSBoundParameters + + $connection.ConnectionState = "Approved" + + if($hasDescription){ + $connection.Description = $Description + } + else{ + $connection.Description = '' + } + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + if ($PSCmdlet.ShouldProcess("Approve ServiceBus Namespace PrivateEndpoint Connection $($Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusPrivateEndpointConnection_CreateViaIdentity -InputObject $connection -Parameter $connection @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Deny-AzServiceBusPrivateEndpointConnection.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Deny-AzServiceBusPrivateEndpointConnection.ps1 new file mode 100644 index 000000000000..134788b03b1d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Deny-AzServiceBusPrivateEndpointConnection.ps1 @@ -0,0 +1,158 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Denies a ServiceBus PrivateEndpointConnection +.Description +Denies a ServiceBus PrivateEndpointConnection +#> + +function Deny-AzServiceBusPrivateEndpointConnection{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateEndpointConnection])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")] + [Alias('PrivateEndpointConnectionName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Private Endpoint Connection + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "PrivateEndpoint information.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # PrivateEndpoint information. + ${Description}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasDescription = $PSBoundParameters.Remove('Description') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $connection = Get-AzServiceBusPrivateEndpointConnection @PSBoundParameters + + $connection.ConnectionState = "Rejected" + + if($hasDescription){ + $connection.Description = $Description + } + else{ + $connection.Description = '' + } + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + if ($PSCmdlet.ShouldProcess("Approve ServiceBus Namespace PrivateEndpoint Connection $($Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusPrivateEndpointConnection_CreateViaIdentity -InputObject $connection -Parameter $connection @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusAuthorizationRule.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusAuthorizationRule.ps1 new file mode 100644 index 000000000000..518019d53543 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusAuthorizationRule.ps1 @@ -0,0 +1,283 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets an ServiceBus Authorization Rule +.Description +Gets an ServiceBus Authorization Rule +#> + +function Get-AzServiceBusAuthorizationRule{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule])] + [CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'GetExpandedQueue', HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedTopic', HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedNamespace', HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedAlias', HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the disaster recovery config")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the disaster recovery config + ${AliasName}, + + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the Service Bus queue.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Service Bus queue. + ${QueueName}, + + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the Service Bus topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Service Bus topic. + ${TopicName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedQueue', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'GetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + if ($PSCmdlet.ParameterSetName -eq 'GetExpandedNamespace') { + if(-not $PSBoundParameters.ContainsKey('Name')) { + Az.ServiceBus.private\Get-AzServiceBusNamespaceAuthorizationRule_List @PSBoundParameters + } + else { + Az.ServiceBus.private\Get-AzServiceBusNamespaceAuthorizationRule_Get @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedQueue'){ + if (-not $PSBoundParameters.ContainsKey('Name')) { + Az.ServiceBus.private\Get-AzServiceBusQueueAuthorizationRule_List @PSBoundParameters + } + else { + Az.ServiceBus.private\Get-AzServiceBusQueueAuthorizationRule_Get @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedTopic'){ + if (-not $PSBoundParameters.ContainsKey('Name')) { + Az.ServiceBus.private\Get-AzServiceBusTopicAuthorizationRule_List @PSBoundParameters + } + else { + Az.ServiceBus.private\Get-AzServiceBusTopicAuthorizationRule_Get @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedAlias'){ + $null = $PSBoundParameters.Remove('AliasName') + if (-not $PSBoundParameters.ContainsKey('Name')) { + Az.ServiceBus.private\Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_List -Alias $AliasName @PSBoundParameters + } + else { + Az.ServiceBus.private\Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_Get -Alias $AliasName @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetViaIdentityExpanded'){ + + if($InputObject.Id -ne $null) { + $ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id + } + else { + $ResourceHashTable = ParseResourceId -ResourceId $InputObject + } + + if ($ResourceHashTable['QueueName'] -ne $null) { + Az.ServiceBus.private\Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity @PSBoundParameters + } + elseif ($ResourceHashTable['TopicName'] -ne $null) { + Az.ServiceBus.private\Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity @PSBoundParameters + } + elseif ($ResourceHashTable['AliasName'] -ne $null) { + Az.ServiceBus.private\Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_GetViaIdentity @PSBoundParameters + } + elseif ($ResourceHashTable['NamespaceName'] -ne $null) { + Az.ServiceBus.private\Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity @PSBoundParameters + } + else { + throw 'Invalid -InputObject' + } + + } + } + catch{ + throw + } + } +} + +function ParseResourceId{ + param ( + [string]$ResourceId + ) + $array = $resourceID.ToLower().Split('/') + $indexSubscription = 0..($array.Length -1) | where {$array[$_] -eq 'subscriptions'} + $indexResourceGroup = 0..($array.Length -1) | where {$array[$_] -eq 'resourcegroups'} + $indexNamespace = 0..($array.Length -1) | where {$array[$_] -eq 'namespaces'} + $indexQueue = 0..($array.Length -1) | where {$array[$_] -eq 'queues'} + $indexTopic = 0..($array.Length -1) | where {$array[$_] -eq 'topics'} + $indexAlias = 0..($array.Length -1) | where {$array[$_] -eq 'disasterrecoveryconfigs'} + $indexAuthRule = 0..($array.Length -1) | where {$array[$_] -eq 'authorizationrules'} + + if (($indexResourceGroup+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + if (($indexNamespace+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + + $result = @{ + 'ResourceGroupName' = $array.get($indexResourceGroup+1) + 'NamespaceName' = $array.get($indexNamespace+1) + } + + if ($indexQueue -ne $null){ + if (($indexQueue+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + else{ + $result.add('QueueName', $array.get($indexQueue+1)) + } + } + + if ($indexTopic -ne $null){ + if (($indexTopic+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + else{ + $result.add('TopicName', $array.get($indexTopic+1)) + } + } + + if ($indexSubscription -ne $null){ + if (($indexSubscription+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + else{ + $result.add('SubscriptionName', $array.get($indexSubscription+1)) + } + } + + if ($indexAuthRule -ne $null){ + if (($indexAuthRule+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + else{ + $result.add('AuthorizationRuleName', $array.get($indexAuthRule+1)) + } + } + + if ($indexAlias -ne $null){ + if (($indexAlias+1) > $array.Length){ + throw 'Invalid -InputObject Id' + } + else{ + $result.add('AliasName', $array.get($indexAlias+1)) + } + } + + return $result +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusKey.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusKey.ps1 new file mode 100644 index 000000000000..d1c54ce29dc3 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusKey.ps1 @@ -0,0 +1,177 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a ServiceBus SAS key +.Description +Gets a ServiceBus SAS key +#> + +function Get-AzServiceBusKey{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IAccessKeys])] + [CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedNamespace', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus queue.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus queue. + ${QueueName}, + + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus entity. + ${TopicName}, + + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the Service Disaster Recovery Config.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Service Disaster Recovery Config. + ${AliasName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'GetExpandedNamespace', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedQueue', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedTopic', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'GetExpandedAlias', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + if ($PSCmdlet.ParameterSetName -eq 'GetExpandedNamespace'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($Name)", "List Keys")) { + Az.ServiceBus.private\Get-AzServiceBusNamespaceKey_List @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedQueue'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($Name)", "List Keys")) { + Az.ServiceBus.private\Get-AzServiceBusQueueKey_List @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedTopic'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Topic Authorization Rule $($Name)", "List Keys")) { + Az.ServiceBus.private\Get-AzServiceBusTopicKey_List @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'GetExpandedAlias'){ + $null = $PSBoundParameters.Remove('AliasName') + $null = $PSBoundParameters.Remove('Name') + if ($PSCmdlet.ShouldProcess("ServiceBus Alias Authorization Rule $($Name)", "List Keys")) { + Az.ServiceBus.private\Get-AzServiceBusDisasterRecoveryConfigKey_List -Alias $AliasName -AuthorizationRuleName $Name @PSBoundParameters + } + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusAuthorizationRule.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusAuthorizationRule.ps1 new file mode 100644 index 000000000000..e4669a504a7f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusAuthorizationRule.ps1 @@ -0,0 +1,163 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates an Service Bus Namespace, Queue, Topic Authorization Rule +.Description +Creates an Service Bus Namespace, Queue, Topic Authorization Rule +#> + +function New-AzServiceBusAuthorizationRule{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule])] + [CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of the Service Bus Queue.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Service Bus Queue. + ${QueueName}, + + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of the Service Bus Topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Service Bus Topic. + ${TopicName}, + + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Parameter(ParameterSetName = 'NewExpandedNamespace', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of Service Bus namespace + ${NamespaceName}, + + [Parameter(Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = "The rights associated with the rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights[]] + # The rights associated with the rule. + ${Rights}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $authRule = [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule]@{ + Rights = $Rights + } + + if ($PSCmdlet.ParameterSetName -eq 'NewExpandedNamespace'){ + if ($PSCmdlet.ShouldProcess("Service Bus Namespace Authorization Rule $($Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusNamespaceAuthorizationRule_CreateExpanded @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'NewExpandedQueue'){ + if ($PSCmdlet.ShouldProcess("Service Bus Queue Authorization Rule $($Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusQueueAuthorizationRule_CreateExpanded @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'NewExpandedTopic'){ + if ($PSCmdlet.ShouldProcess("Service Bus Topic Authorization Rule $($Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusTopicAuthorizationRule_CreateExpanded @PSBoundParameters + } + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusIPRuleConfig.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusIPRuleConfig.ps1 new file mode 100644 index 000000000000..6fb68d9f8dc5 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusIPRuleConfig.ps1 @@ -0,0 +1,49 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet +.Description +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet +#> +function New-AzServiceBusIPRuleConfig{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules])] + [CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory, HelpMessage = "IP Mask")] + [System.String] + # IP Mask + ${IPMask}, + + [Parameter(HelpMessage = "The IP Filter Action")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.NetworkRuleIPAction] + # The IP Filter Action + ${Action} + ) + + process{ + try{ + $ipRule = [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules]@{ + IPMask = $IPMask + Action = $Action + } + + return $ipRule + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusKey.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusKey.ps1 new file mode 100644 index 000000000000..ded5cd493d14 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusKey.ps1 @@ -0,0 +1,182 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Regenerates a ServiceBus SAS key +.Description +Regenerates a ServiceBus SAS key +#> + +function New-AzServiceBusKey{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IAccessKeys])] + [CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'NewExpandedNamespace', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus queue.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus queue. + ${QueueName}, + + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus topic. + ${TopicName}, + + [Parameter(ParameterSetName = 'NewExpandedNamespace', Mandatory, HelpMessage = "The name of EventHub namespace")] + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of the EventHub namespace.")] + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of the EventHub namespace.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'NewExpandedNamespace', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'NewExpandedQueue', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'NewExpandedTopic', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'NewExpandedNamespace', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'NewExpandedQueue', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'NewExpandedTopic', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = "The access key to regenerate.")] + [Alias('RegenerateKey')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.KeyType] + # The access key to regenerate. + ${KeyType}, + + [Parameter(HelpMessage = "Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType + ${KeyValue}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasKeyValue = $PSBoundParameters.Remove('KeyValue') + $hasKeyType = $PSBoundParameters.Remove('KeyType') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRegenerateAccessKeyParameters]@{ + KeyType = $KeyType + } + + if ($hasKeyValue) { + $accessKeys.Key = $KeyValue + } + + if ($PSCmdlet.ParameterSetName -eq 'NewExpandedNamespace'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($Name)", "Regenerate Keys")) { + Az.ServiceBus.private\New-AzServiceBusNamespaceKey_Regenerate -Parameter $accessKeys @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'NewExpandedQueue'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($Name)", "Regenerate Keys")) { + Az.ServiceBus.private\New-AzServiceBusQueueKey_Regenerate -Parameter $accessKeys @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'NewExpandedTopic'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Topic Authorization Rule $($Name)", "Regenerate Keys")) { + Az.ServiceBus.private\New-AzServiceBusTopicKey_Regenerate -Parameter $accessKeys @PSBoundParameters + } + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusVirtualNetworkRuleConfig.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusVirtualNetworkRuleConfig.ps1 new file mode 100644 index 000000000000..d93aaffa12c9 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/New-AzServiceBusVirtualNetworkRuleConfig.ps1 @@ -0,0 +1,53 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet +.Description +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet +#> +function New-AzServiceBusVirtualNetworkRuleConfig{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules])] + [CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory, HelpMessage = "Resource ID of Virtual Network Subnet")] + [System.String] + # Resource ID of Virtual Network Subnet + ${SubnetId}, + + [Parameter(HelpMessage = "Resource ID of Virtual Network Subnet")] + [System.Management.Automation.SwitchParameter] + # The IP Filter Action + ${IgnoreMissingVnetServiceEndpoint} + ) + + process{ + try{ + $virtualNetworkRule = [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules]@{ + SubnetId = $SubnetId + } + + $hasIgnoreMissing = $PSBoundParameters.Remove('IgnoreMissingVnetServiceEndpoint') + if ($hasIgnoreMissing){ + $virtualNetworkRule.IgnoreMissingVnetServiceEndpoint = $IgnoreMissingVnetServiceEndpoint + } + + return $virtualNetworkRule + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/README.md b/src/ServiceBus/ServiceBus.Autorest/custom/README.md new file mode 100644 index 000000000000..00bb8cc04eae --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/README.md @@ -0,0 +1,41 @@ +# Custom +This directory contains custom implementation for non-generated cmdlets for the `Az.ServiceBus` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.ServiceBus.custom.psm1`. This file should not be modified. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: yes + +## Details +For `Az.ServiceBus` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. + +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.ServiceBus.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. + +For script cmdlets, these are loaded via the `Az.ServiceBus.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. + +## Purpose +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. + +## Usage +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +- Break +- DefaultProfile +- HttpPipelineAppend +- HttpPipelinePrepend +- Proxy +- ProxyCredential +- ProxyUseDefaultCredentials + +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.ServiceBus`. For C#, follow the usage seen in the `ProcessRecordAsync` method. + +### Attributes +For processing the cmdlets, we've created some additional attributes: +- `Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.DescriptionAttribute` + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. +- `Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ServiceBus`. +- `Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.ServiceBus`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.ProfileAttribute` + - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Remove-AzServiceBusAuthorizationRule.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Remove-AzServiceBusAuthorizationRule.ps1 new file mode 100644 index 000000000000..1e23562d3637 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Remove-AzServiceBusAuthorizationRule.ps1 @@ -0,0 +1,196 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Removes an ServiceBus Namespace, Queue or Topic Authorization Rule +.Description +Removes an ServiceBus Namespace, Queue or Topic Authorization Rule +#> + +function Remove-AzServiceBusAuthorizationRule{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule])] + [CmdletBinding(DefaultParameterSetName = 'RemoveExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'RemoveExpandedQueue', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'RemoveExpandedTopic', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'RemoveExpandedNamespace', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'RemoveExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus Queue entity.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus Queue entity. + ${QueueName}, + + [Parameter(ParameterSetName = 'RemoveExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus Topic entity.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus Topic entity. + ${TopicName}, + + [Parameter(ParameterSetName = 'RemoveExpandedQueue', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Parameter(ParameterSetName = 'RemoveExpandedTopic', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Parameter(ParameterSetName = 'RemoveExpandedNamespace', Mandatory, HelpMessage = "The name of Service Bus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'RemoveExpandedQueue', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'RemoveExpandedTopic', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'RemoveExpandedNamespace', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'RemoveExpandedQueue', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'RemoveExpandedTopic', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'RemoveExpandedNamespace', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'RemoveViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + if ($PSCmdlet.ParameterSetName -eq 'RemoveExpandedNamespace'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($Name)", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusNamespaceAuthorizationRule_Delete @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'RemoveExpandedQueue'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($Name)", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusQueueAuthorizationRule_Delete @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'RemoveExpandedTopic'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Topic Authorization Rule $($Name)", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusTopicAuthorizationRule_Delete @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'RemoveViaIdentityExpanded'){ + + if($InputObject.Id -ne $null){ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id + } + else{ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject + } + + if ($ResourceHashTable['QueueName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusQueueAuthorizationRule_DeleteViaIdentity @PSBoundParameters + } + } + elseif ($ResourceHashTable['TopicName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Entity Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusTopicAuthorizationRule_DeleteViaIdentity @PSBoundParameters + } + } + elseif ($ResourceHashTable['NamespaceName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Deleting")) { + Az.ServiceBus.private\Remove-AzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity @PSBoundParameters + } + } + else{ + throw 'Invalid -InputObject' + } + + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusAuthorizationRule.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusAuthorizationRule.ps1 new file mode 100644 index 000000000000..89d4517882e2 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusAuthorizationRule.ps1 @@ -0,0 +1,256 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets an ServiceBus Namespace, Queue and Topic Authorization Rule +.Description +Sets an ServiceBus Namespace, Queue and Topic Authorization Rule +#> + +function Set-AzServiceBusAuthorizationRule{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule])] + [CmdletBinding(DefaultParameterSetName = 'SetExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpandedTopic', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'SetExpandedQueue', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Parameter(ParameterSetName = 'SetExpandedNamespace', Mandatory, HelpMessage = "The name of the Authorization Rule")] + [Alias('AuthorizationRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Authorization Rule. + ${Name}, + + [Parameter(ParameterSetName = 'SetExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus queue.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus queue. + ${QueueName}, + + [Parameter(ParameterSetName = 'SetExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the ServiceBus queue. + ${TopicName}, + + [Parameter(ParameterSetName = 'SetExpandedTopic', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'SetExpandedQueue', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Parameter(ParameterSetName = 'SetExpandedNamespace', Mandatory, HelpMessage = "The name of the ServiceBus namespace.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpandedTopic', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'SetExpandedQueue', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Parameter(ParameterSetName = 'SetExpandedNamespace', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpandedTopic', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'SetExpandedQueue', HelpMessage = "The ID of the target subscription.")] + [Parameter(ParameterSetName = 'SetExpandedNamespace', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, HelpMessage = "The rights associated with the rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights[]] + # The rights associated with the rule. + ${Rights}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasRights = $PSBoundParameters.Remove('Rights') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + if ($PSCmdlet.ParameterSetName -eq 'SetExpandedQueue'){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusQueueAuthorizationRule_Get @PSBoundParameters + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetExpandedTopic'){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusTopicAuthorizationRule_Get @PSBoundParameters + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetExpandedNamespace'){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusNamespaceAuthorizationRule_Get @PSBoundParameters + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded'){ + + if($InputObject.Id -ne $null){ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id + } + else{ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject + } + + if ($ResourceHashTable['QueueName'] -ne $null){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity @PSBoundParameters + } + elseif ($ResourceHashTable['TopicName'] -ne $null){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity @PSBoundParameters + } + elseif ($ResourceHashTable['NamespaceName'] -ne $null){ + $authRule = Az.ServiceBus.private\Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity @PSBoundParameters + } + else{ + throw 'Invalid -InputObject. Please Check ResourceId' + } + + } + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('QueueName') + $null = $PSBoundParameters.Remove('TopicName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + if ($hasRights) { + $authRule.Rights = $Rights + } + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($PSCmdlet.ParameterSetName -eq 'SetExpandedNamespace'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($authRule.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusNamespaceAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetExpandedQueue'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($authRule.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusQueueAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetExpandedTopic'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Topic Authorization Rule $($authRule.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusTopicAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + elseif ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded'){ + + if ($ResourceHashTable['QueueName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Queue Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusQueueAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + elseif ($ResourceHashTable['TopicName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Topic Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusTopicAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + elseif ($ResourceHashTable['NamespaceName'] -ne $null){ + if ($PSCmdlet.ShouldProcess("ServiceBus Namespace Authorization Rule $($ResourceHashTable['AuthorizationRuleName'])", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusNamespaceAuthorizationRule_CreateViaIdentity -InputObject $authRule -Parameter $authRule @PSBoundParameters + } + } + + else{ + throw 'Invalid -InputObject' + } + + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 new file mode 100644 index 000000000000..07073ada33d0 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1 @@ -0,0 +1,175 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces +.Description +This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces +#> + +function Set-AzServiceBusGeoDRConfigurationBreakPair{ + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName = 'Break', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'Break', Mandatory, HelpMessage = "The name of the disaster recovery config or alias")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the disaster recovery config or alias + ${Name}, + + [Parameter(ParameterSetName = 'Break', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'Break', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'Break', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'BreakViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $drConfig = Get-AzServiceBusGeoDRConfiguration @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if($PSCmdlet.ParameterSetName -eq 'Break'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($Name)", "Break Pair")) { + Az.ServiceBus.private\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break @PSBoundParameters + } + } + elseif($PSCmdlet.ParameterSetName -eq 'BreakViaIdentity'){ + $EnvPSBoundParameters = @{} + + if ($PSBoundParameters.ContainsKey('Debug')) { + $EnvPSBoundParameters['Debug'] = $Debug + } + if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) { + $EnvPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend + } + if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) { + $EnvPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend + } + if ($PSBoundParameters.ContainsKey('Proxy')) { + $EnvPSBoundParameters['Proxy'] = $Proxy + } + if ($PSBoundParameters.ContainsKey('ProxyCredential')) { + $EnvPSBoundParameters['ProxyCredential'] = $ProxyCredential + } + if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) { + $EnvPSBoundParameters['ProxyUseDefaultCredentials'] = $ProxyUseDefaultCredentials + } + + if($InputObject.Id -ne $null){ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id + } + else{ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject + } + if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($InputObject.Name)", "Break Pair")) { + Az.ServiceBus.private\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName'] @EnvPSBoundParameters + } + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 new file mode 100644 index 000000000000..defedbd728bc --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationFailOver.ps1 @@ -0,0 +1,175 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace +.Description +Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace +#> + +function Set-AzServiceBusGeoDRConfigurationFailOver{ + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName = 'Fail', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'Fail', Mandatory, HelpMessage = "The name of the disaster recovery config or alias")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the disaster recovery config or alias + ${Name}, + + [Parameter(ParameterSetName = 'Fail', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'Fail', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'Fail', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'FailViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $drConfig = Get-AzServiceBusGeoDRConfiguration @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if($PSCmdlet.ParameterSetName -eq 'Fail'){ + if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($Name)", "Fail Over")) { + Az.ServiceBus.private\Invoke-AzServiceBusFailDisasterRecoveryConfigOver_FailExpanded @PSBoundParameters + } + } + elseif($PSCmdlet.ParameterSetName -eq 'FailViaIdentity'){ + $EnvPSBoundParameters = @{} + + if ($PSBoundParameters.ContainsKey('Debug')) { + $EnvPSBoundParameters['Debug'] = $Debug + } + if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) { + $EnvPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend + } + if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) { + $EnvPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend + } + if ($PSBoundParameters.ContainsKey('Proxy')) { + $EnvPSBoundParameters['Proxy'] = $Proxy + } + if ($PSBoundParameters.ContainsKey('ProxyCredential')) { + $EnvPSBoundParameters['ProxyCredential'] = $ProxyCredential + } + if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) { + $EnvPSBoundParameters['ProxyUseDefaultCredentials'] = $ProxyUseDefaultCredentials + } + + if ($InputObject.Id -ne $null){ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id + } + else{ + $ResourceHashTable = ParseResourceId -ResourceId $InputObject + } + if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($InputObject.Name)", "Fail Over")) { + Az.ServiceBus.private\Invoke-AzServiceBusFailDisasterRecoveryConfigOver_FailExpanded -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName'] @EnvPSBoundParameters + } + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusNetworkRuleSet.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusNetworkRuleSet.ps1 new file mode 100644 index 000000000000..e556c5d019ab --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusNetworkRuleSet.ps1 @@ -0,0 +1,200 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets an ServiceBus Namespace Network Rule Set +.Description +Sets an ServiceBus Namespace Network Rule Set +#> + +function Set-AzServiceBusNetworkRuleSet{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INetworkRuleSet])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. ")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.PublicNetworkAccess] + # This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. + ${PublicNetworkAccess}, + + [Parameter(HelpMessage = "Value that indicates whether Trusted Service Access is Enabled or not.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether Trusted Service Access is Enabled or not. + ${TrustedServiceAccessEnabled}, + + [Parameter(HelpMessage = "Default Action for Network Rule Set")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.DefaultAction] + #Default Action for Network Rule Set + ${DefaultAction}, + + [Parameter(HelpMessage = "List of IpRules")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules[]] + # List of IpRules + ${IPRule}, + + [Parameter(HelpMessage = "List of VirtualNetwork Rules")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules[]] + # List of VirtualNetwork Rules + ${VirtualNetworkRule}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasPublicNetworkAccess = $PSBoundParameters.Remove('PublicNetworkAccess') + $hasTrustedServiceAccessEnabled = $PSBoundParameters.Remove('TrustedServiceAccessEnabled') + $hasDefaultAction = $PSBoundParameters.Remove('DefaultAction') + $hasIPRule = $PSBoundParameters.Remove('IPRule') + $hasVirtualNetworkRule = $PSBoundParameters.Remove('VirtualNetworkRule') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $networkRuleSet = Get-AzServiceBusNetworkRuleSet @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('SubscriptionId') + + $hasProperty = $false + + if ($hasPublicNetworkAccess) { + $networkRuleSet.PublicNetworkAccess = $PublicNetworkAccess + $hasProperty = $true + } + if ($hasTrustedServiceAccessEnabled) { + $networkRuleSet.TrustedServiceAccessEnabled = $TrustedServiceAccessEnabled + $hasProperty = $true + } + if ($hasDefaultAction) { + $networkRuleSet.DefaultAction = $DefaultAction + $hasProperty = $true + } + if ($hasIPRule) { + $networkRuleSet.IPRule = $IPRule + $hasProperty = $true + } + if ($hasVirtualNetworkRule) { + $networkRuleSet.VirtualNetworkRule = $VirtualNetworkRule + $hasProperty = $true + } + + if (($hasProperty -eq $false) -and ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded')){ + throw 'Please specify the property you want to update on the -InputObject. Refer https://go.microsoft.com/fwlink/?linkid=2204584#behavior-of--inputobject for example.' + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($PSCmdlet.ShouldProcess("ServiceBus Network Rule Set on namespace $($networkRuleSet.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusNetworkRuleSet_CreateViaIdentity -InputObject $networkRuleSet -Parameter $networkRuleSet @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusQueue.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusQueue.ps1 new file mode 100644 index 000000000000..166c05214354 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusQueue.ps1 @@ -0,0 +1,314 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets a ServiceBus Queue +.Description +Sets a ServiceBus Queue +#> + +function Set-AzServiceBusQueue{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Queue.")] + [Alias('QueueName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Queue. + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${AutoDeleteOnIdle}, + + [Parameter(HelpMessage = "ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DefaultMessageTimeToLive}, + + [Parameter(HelpMessage = "ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DuplicateDetectionHistoryTimeWindow}, + + [Parameter(HelpMessage = "ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${LockDuration}, + + [Parameter(HelpMessage = "A value that indicates whether this queue has dead letter support when a message expires.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # A value that indicates whether this queue has dead letter support when a message expires. + ${DeadLetteringOnMessageExpiration}, + + [Parameter(HelpMessage = "Value that indicates whether server-side batched operations are enabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether server-side batched operations are enabled. + ${EnableBatchedOperations}, + + [Parameter(HelpMessage = "A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. + ${EnableExpress}, + + [Parameter(HelpMessage = "Queue/Topic name to forward the messages")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Queue/Topic name to forward the messages + ${ForwardTo}, + + [Parameter(HelpMessage = "A value that indicates whether the queue supports the concept of sessions.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # A value that indicates whether the queue supports the concept of sessions. + ${ForwardDeadLetteredMessagesTo}, + + [Parameter(HelpMessage = "The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int32] + # The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10. + ${MaxDeliveryCount}, + + [Parameter(HelpMessage = "The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int32] + # The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10. + ${MaxSizeInMegabytes}, + + [Parameter(HelpMessage = "Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int64] + # Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024. + ${MaxMessageSizeInKilobytes}, + + [Parameter(HelpMessage = "Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus] + # Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024. + ${Status}, + + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process{ + try{ + $hasAutoDeleteOnIdle = $PSBoundParameters.Remove('AutoDeleteOnIdle') + $hasDefaultMessageTimeToLive = $PSBoundParameters.Remove('DefaultMessageTimeToLive') + $hasDeadLetteringOnMessageExpiration = $PSBoundParameters.Remove('DeadLetteringOnMessageExpiration') + $hasDuplicateDetectionHistoryTimeWindow = $PSBoundParameters.Remove('DuplicateDetectionHistoryTimeWindow') + $hasLockDuration = $PSBoundParameters.Remove('LockDuration') + $hasEnableBatchedOperations = $PSBoundParameters.Remove('EnableBatchedOperations') + $hasEnableExpress = $PSBoundParameters.Remove('EnableExpress') + $hasForwardDeadLetteredMessagesTo = $PSBoundParameters.Remove('ForwardDeadLetteredMessagesTo') + $hasForwardTo = $PSBoundParameters.Remove('ForwardTo') + $hasMaxDeliveryCount = $PSBoundParameters.Remove('MaxDeliveryCount') + $hasMaxMessageSizeInKilobytes = $PSBoundParameters.Remove('MaxMessageSizeInKilobytes') + $hasMaxSizeInMegabytes = $PSBoundParameters.Remove('MaxSizeInMegabytes') + $hasStatus = $PSBoundParameters.Remove('Status') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $queue = Get-AzServiceBusQueue @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + $hasProperty = $false + + if ($hasAutoDeleteOnIdle) { + $queue.AutoDeleteOnIdle = $AutoDeleteOnIdle + $hasProperty = $true + } + if ($hasDefaultMessageTimeToLive) { + $queue.DefaultMessageTimeToLive = $DefaultMessageTimeToLive + $hasProperty = $true + } + if ($hasDeadLetteringOnMessageExpiration) { + $queue.DeadLetteringOnMessageExpiration = $DeadLetteringOnMessageExpiration + $hasProperty = $true + } + if ($hasDuplicateDetectionHistoryTimeWindow) { + $queue.DuplicateDetectionHistoryTimeWindow = $DuplicateDetectionHistoryTimeWindow + $hasProperty = $true + } + if ($hasLockDuration) { + $queue.LockDuration = $LockDuration + $hasProperty = $true + } + if ($hasEnableBatchedOperations) { + $queue.EnableBatchedOperations = $EnableBatchedOperations + $hasProperty = $true + } + if ($hasEnableExpress) { + $queue.EnableExpress = $EnableExpress + $hasProperty = $true + } + if ($hasForwardDeadLetteredMessagesTo) { + $queue.ForwardDeadLetteredMessagesTo = $ForwardDeadLetteredMessagesTo + $hasProperty = $true + } + if ($hasForwardTo) { + $queue.ForwardTo = $ForwardTo + $hasProperty = $true + } + if ($hasMaxDeliveryCount) { + $queue.MaxDeliveryCount = $MaxDeliveryCount + $hasProperty = $true + } + if ($hasMaxMessageSizeInKilobytes) { + $queue.MaxMessageSizeInKilobytes = $MaxMessageSizeInKilobytes + $hasProperty = $true + } + if ($hasMaxSizeInMegabytes) { + $queue.MaxSizeInMegabytes = $MaxSizeInMegabytes + $hasProperty = $true + } + if ($hasStatus) { + $queue.Status = $Status + $hasProperty = $true + } + + if (($hasProperty -eq $false) -and ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded')){ + throw 'Please specify the property you want to update on the -InputObject. Refer https://go.microsoft.com/fwlink/?linkid=2204584#behavior-of--inputobject for example.' + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($queue.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)) { + $queue.DefaultMessageTimeToLive = (New-TimeSpan -Days 10675197) + } + + if ($queue.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)) { + $queue.AutoDeleteOnIdle = (New-TimeSpan -Days 10675197) + } + + if ($queue.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)) { + $queue.DuplicateDetectionHistoryTimeWindow = (New-TimeSpan -Days 10675197) + } + + if ($queue.LockDuration -gt (New-TimeSpan -Days 10675197)) { + $queue.LockDuration = (New-TimeSpan -Days 10675197) + } + + if ($PSCmdlet.ShouldProcess("ServiceBus Queue $($queue.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusQueue_CreateViaIdentity -InputObject $queue -Parameter $queue @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusRule.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusRule.ps1 new file mode 100644 index 000000000000..12c29f7247f9 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusRule.ps1 @@ -0,0 +1,329 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets a ServiceBus Rule +.Description +Sets a ServiceBus Rule +#> + +function Set-AzServiceBusRule{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Rule.")] + [Alias('RuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Rule. + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Topic. + ${TopicName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the SubscriptionName.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the SubscriptionName. + ${SubscriptionName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "SQL expression. e.g. MyProperty='ABC'")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # SQL expression. e.g. MyProperty='ABC' + ${SqlExpression}, + + [Parameter(HelpMessage = "Value that indicates whether the rule action requires preprocessing.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether the rule action requires preprocessing. + ${SqlFilterRequiresPreprocessing}, + + [Parameter(HelpMessage = "Content type of the message.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Content type of the message. + ${ContentType}, + + [Parameter(HelpMessage = "Identifier of the correlation.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Identifier of the correlation. + ${CorrelationId}, + + [Parameter(HelpMessage = "Application specific label.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Application specific label. + ${Label}, + + [Parameter(HelpMessage = "Identifier of the message.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Identifier of the message. + ${MessageId}, + + [Parameter(HelpMessage = "dictionary object for custom filters")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Collections.Hashtable] + # dictionary object for custom filters + ${CorrelationFilterProperty}, + + [Parameter(HelpMessage = "Address of the queue to reply to.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Address of the queue to reply to. + ${ReplyTo}, + + [Parameter(HelpMessage = "Session identifier to reply to.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Session identifier to reply to. + ${ReplyToSessionId}, + + [Parameter(HelpMessage = "Value that indicates whether the rule action requires preprocessing.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether the rule action requires preprocessing. + ${CorrelationFilterRequiresPreprocessing}, + + [Parameter(HelpMessage = "Session identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Session identifier. + ${SessionId}, + + [Parameter(HelpMessage = "Address to send to.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Address to send to. + ${To}, + + [Parameter(HelpMessage = "Filter type that is evaluated against a BrokeredMessage.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.FilterType] + # Filter type that is evaluated against a BrokeredMessage. + ${FilterType}, + + [Parameter(HelpMessage = "Value that indicates whether the rule action requires preprocessing.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether the rule action requires preprocessing. + ${ActionRequiresPreprocessing}, + + [Parameter(HelpMessage = "SQL expression. e.g. MyProperty='ABC'")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # SQL expression. e.g. MyProperty='ABC' + ${ActionSqlExpression}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $hasSqlExpression = $PSBoundParameters.Remove('SqlExpression') + $hasSqlFilterRequiresPreprocessing = $PSBoundParameters.Remove('SqlFilterRequiresPreprocessing') + $hasContentType = $PSBoundParameters.Remove('ContentType') + $hasCorrelationId = $PSBoundParameters.Remove('CorrelationId') + $hasLabel = $PSBoundParameters.Remove('Label') + $hasMessageId = $PSBoundParameters.Remove('MessageId') + $hasCorrelationFilterProperty = $PSBoundParameters.Remove('CorrelationFilterProperty') + $hasReplyTo = $PSBoundParameters.Remove('ReplyTo') + $hasReplyToSessionId = $PSBoundParameters.Remove('ReplyToSessionId') + $hasCorrelationFilterRequiresPreprocessing = $PSBoundParameters.Remove('CorrelationFilterRequiresPreprocessing') + $hasSessionId = $PSBoundParameters.Remove('SessionId') + $hasTo = $PSBoundParameters.Remove('To') + $hasFilterType = $PSBoundParameters.Remove('FilterType') + $hasActionSqlExpression = $PSBoundParameters.Remove('ActionSqlExpression') + $hasActionRequiresPreprocessing = $PSBoundParameters.Remove('ActionRequiresPreprocessing') + + $rule = Get-AzServiceBusRule @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('TopicName') + $null = $PSBoundParameters.Remove('SubscriptionName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + $hasProperty = $false + + if ($hasSqlExpression) { + $rule.SqlExpression = $SqlExpression + $hasProperty = $true + } + if ($hasSqlFilterRequiresPreprocessing) { + $rule.SqlFilterRequiresPreprocessing = $SqlFilterRequiresPreprocessing + $hasProperty = $true + } + if ($hasContentType) { + $rule.ContentType = $ContentType + $hasProperty = $true + } + if ($hasCorrelationId) { + $rule.CorrelationId = $CorrelationId + $hasProperty = $true + } + if ($hasLabel) { + $rule.Label = $Label + $hasProperty = $true + } + if ($hasMessageId) { + $rule.MessageId = $MessageId + $hasProperty = $true + } + if ($hasCorrelationFilterProperty) { + $rule.CorrelationFilterProperty = $CorrelationFilterProperty + $hasProperty = $true + } + if ($hasReplyTo) { + $rule.ReplyTo = $ReplyTo + $hasProperty = $true + } + if ($hasReplyToSessionId) { + $rule.ReplyToSessionId = $ReplyToSessionId + $hasProperty = $true + } + if ($hasCorrelationFilterRequiresPreprocessing) { + $rule.CorrelationFilterRequiresPreprocessing = $CorrelationFilterRequiresPreprocessing + $hasProperty = $true + } + if ($hasSessionId) { + $rule.SessionId = $SessionId + $hasProperty = $true + } + if ($hasTo) { + $rule.To = $To + $hasProperty = $true + } + if ($hasFilterType) { + $rule.FilterType = $FilterType + $hasProperty = $true + } + if ($hasActionSqlExpression) { + $rule.ActionSqlExpression = $ActionSqlExpression + $hasProperty = $true + } + if ($hasActionRequiresPreprocessing) { + $rule.ActionRequiresPreprocessing = $ActionRequiresPreprocessing + $hasProperty = $true + } + + if (($hasProperty -eq $false) -and ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded')){ + throw 'Please specify the property you want to update on the -InputObject. Refer https://go.microsoft.com/fwlink/?linkid=2204584#behavior-of--inputobject for example.' + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($PSCmdlet.ShouldProcess("ServiceBus Rule $($rule.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusRule_CreateViaIdentity -InputObject $rule -Parameter $rule @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusSubscription.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusSubscription.ps1 new file mode 100644 index 000000000000..77dd74e44530 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusSubscription.ps1 @@ -0,0 +1,298 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets a ServiceBus Topic +.Description +Sets a ServiceBus Topic +#> + +function Set-AzServiceBusSubscription{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Subscription.")] + [Alias('SubscriptionName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Subscription. + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Topic.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Topic. + ${TopicName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "ISO 8061 timeSpan idle interval after which the subscription is automatically deleted. The minimum duration is 5 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${AutoDeleteOnIdle}, + + [Parameter(HelpMessage = "ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DefaultMessageTimeToLive}, + + [Parameter(HelpMessage = "ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DuplicateDetectionHistoryTimeWindow}, + + [Parameter(HelpMessage = "ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${LockDuration}, + + [Parameter(HelpMessage = "Value that indicates whether server-side batched operations are enabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether server-side batched operations are enabled. + ${EnableBatchedOperations}, + + [Parameter(HelpMessage = "Enumerates the possible values for the status of a messaging entity.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus] + # Enumerates the possible values for the status of a messaging entity. + ${Status}, + + [Parameter(HelpMessage = "Queue/Topic name to forward the messages")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Queue/Topic name to forward the messages + ${ForwardTo}, + + [Parameter(HelpMessage = "Queue/Topic name to forward the Dead Letter message")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.String] + # Queue/Topic name to forward the Dead Letter message + ${ForwardDeadLetteredMessagesTo}, + + [Parameter(HelpMessage = "The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int32] + # The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10. + ${MaxDeliveryCount}, + + [Parameter(HelpMessage = "Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. + ${DeadLetteringOnFilterEvaluationException}, + + [Parameter(HelpMessage = "Value that indicates whether a subscription has dead letter support when a message expires.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. + ${DeadLetteringOnMessageExpiration}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process{ + try{ + $hasAutoDeleteOnIdle = $PSBoundParameters.Remove('AutoDeleteOnIdle') + $hasDefaultMessageTimeToLive = $PSBoundParameters.Remove('DefaultMessageTimeToLive') + $hasLockDuration = $PSBoundParameters.Remove('LockDuration') + $hasDuplicateDetectionHistoryTimeWindow = $PSBoundParameters.Remove('DuplicateDetectionHistoryTimeWindow') + $hasEnableBatchedOperations = $PSBoundParameters.Remove('EnableBatchedOperations') + $hasDeadLetteringOnFilterEvaluationException = $PSBoundParameters.Remove('DeadLetteringOnFilterEvaluationException') + $hasMaxDeliveryCount = $PSBoundParameters.Remove('MaxDeliveryCount') + $hasForwardTo = $PSBoundParameters.Remove('ForwardTo') + $hasForwardDeadLetteredMessagesTo = $PSBoundParameters.Remove('ForwardDeadLetteredMessagesTo') + $hasStatus = $PSBoundParameters.Remove('Status') + $hasDeadLetteringOnMessageExpiration = $PSBoundParameters.Remove('DeadLetteringOnMessageExpiration') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $subscription = Get-AzServiceBusSubscription @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('TopicName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + $hasProperty = $false + + if ($hasAutoDeleteOnIdle) { + $subscription.AutoDeleteOnIdle = $AutoDeleteOnIdle + $hasProperty = $true + } + if ($hasDefaultMessageTimeToLive) { + $subscription.DefaultMessageTimeToLive = $DefaultMessageTimeToLive + $hasProperty = $true + } + if($hasLockDuration){ + $subscription.LockDuration = $LockDuration + $hasProperty = $true + } + if ($hasDuplicateDetectionHistoryTimeWindow) { + $subscription.DuplicateDetectionHistoryTimeWindow = $DuplicateDetectionHistoryTimeWindow + $hasProperty = $true + } + if ($hasEnableBatchedOperations) { + $subscription.EnableBatchedOperations = $EnableBatchedOperations + $hasProperty = $true + } + if ($hasStatus) { + $subscription.Status = $Status + $hasProperty = $true + } + if ($hasDeadLetteringOnMessageExpiration) { + $subscription.DeadLetteringOnMessageExpiration = $DeadLetteringOnMessageExpiration + $hasProperty = $true + } + if ($hasDeadLetteringOnFilterEvaluationException) { + $subscription.DeadLetteringOnFilterEvaluationException = $DeadLetteringOnFilterEvaluationException + $hasProperty = $true + } + if ($hasMaxDeliveryCount) { + $subscription.MaxDeliveryCount = $MaxDeliveryCount + $hasProperty = $true + } + if ($hasForwardDeadLetteredMessagesTo) { + $subscription.ForwardDeadLetteredMessagesTo = $ForwardDeadLetteredMessagesTo + $hasProperty = $true + } + if ($hasForwardTo) { + $subscription.ForwardTo = $ForwardTo + $hasProperty = $true + } + + if (($hasProperty -eq $false) -and ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded')){ + throw 'Please specify the property you want to update on the -InputObject. Refer https://go.microsoft.com/fwlink/?linkid=2204584#behavior-of--inputobject for example.' + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($subscription.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)) { + $subscription.DefaultMessageTimeToLive = (New-TimeSpan -Days 10675197) + } + + if ($subscription.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)) { + $subscription.AutoDeleteOnIdle = (New-TimeSpan -Days 10675197) + } + + if ($subscription.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)) { + $subscription.DuplicateDetectionHistoryTimeWindow = (New-TimeSpan -Days 10675197) + } + + if ($subscription.LockDuration -gt (New-TimeSpan -Days 10675197)) { + $subscription.LockDuration = (New-TimeSpan -Days 10675197) + } + + if ($PSCmdlet.ShouldProcess("ServiceBus Subscription $($subscription.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusSubscription_CreateViaIdentity -InputObject $subscription -Parameter $subscription @PSBoundParameters + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusTopic.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusTopic.ps1 new file mode 100644 index 000000000000..7856a6e1129a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusTopic.ps1 @@ -0,0 +1,271 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sets a ServiceBus Topic +.Description +Sets a ServiceBus Topic +#> + +function Set-AzServiceBusTopic{ + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic])] + [CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the Topic.")] + [Alias('TopicName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the Topic. + ${Name}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName = 'SetViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage = "Identity parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(HelpMessage = "ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${AutoDeleteOnIdle}, + + [Parameter(HelpMessage = "ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DefaultMessageTimeToLive}, + + [Parameter(HelpMessage = "ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.TimeSpan] + # timeSpan. + ${DuplicateDetectionHistoryTimeWindow}, + + [Parameter(HelpMessage = "Value that indicates whether server-side batched operations are enabled.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether server-side batched operations are enabled. + ${EnableBatchedOperations}, + + [Parameter(HelpMessage = "A value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # A value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. + ${EnableExpress}, + + [Parameter(HelpMessage = "Value that indicates whether the topic supports ordering.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Value that indicates whether the topic supports ordering. + ${SupportOrdering}, + + [Parameter(HelpMessage = "The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int32] + # The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10. + ${MaxSizeInMegabytes}, + + [Parameter(HelpMessage = "Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [System.Int64] + # Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024. + ${MaxMessageSizeInKilobytes}, + + [Parameter(HelpMessage = "Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus] + # Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024. + ${Status}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process{ + try{ + $hasAutoDeleteOnIdle = $PSBoundParameters.Remove('AutoDeleteOnIdle') + $hasDefaultMessageTimeToLive = $PSBoundParameters.Remove('DefaultMessageTimeToLive') + $hasDuplicateDetectionHistoryTimeWindow = $PSBoundParameters.Remove('DuplicateDetectionHistoryTimeWindow') + $hasEnableBatchedOperations = $PSBoundParameters.Remove('EnableBatchedOperations') + $hasEnableExpress = $PSBoundParameters.Remove('EnableExpress') + $hasMaxMessageSizeInKilobytes = $PSBoundParameters.Remove('MaxMessageSizeInKilobytes') + $hasMaxSizeInMegabytes = $PSBoundParameters.Remove('MaxSizeInMegabytes') + $hasRequiresDuplicateDetection = $PSBoundParameters.Remove('RequiresDuplicateDetection') + $hasSupportOrdering = $PSBoundParameters.Remove('SupportOrdering') + $hasStatus = $PSBoundParameters.Remove('Status') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + $topic = Get-AzServiceBusTopic @PSBoundParameters + + # 2. PUT + $null = $PSBoundParameters.Remove('InputObject') + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('NamespaceName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SubscriptionId') + + $hasProperty = $false + + if ($hasAutoDeleteOnIdle) { + $topic.AutoDeleteOnIdle = $AutoDeleteOnIdle + $hasProperty = $true + } + if ($hasDefaultMessageTimeToLive) { + $topic.DefaultMessageTimeToLive = $DefaultMessageTimeToLive + $hasProperty = $true + } + if ($hasDuplicateDetectionHistoryTimeWindow) { + $topic.DuplicateDetectionHistoryTimeWindow = $DuplicateDetectionHistoryTimeWindow + $hasProperty = $true + } + if ($hasEnableBatchedOperations) { + $topic.EnableBatchedOperations = $EnableBatchedOperations + $hasProperty = $true + } + if ($hasEnableExpress) { + $topic.EnableExpress = $EnableExpress + $hasProperty = $true + } + if ($hasEnablePartitioning) { + $topic.EnablePartitioning = $EnablePartitioning + $hasProperty = $true + } + if ($hasMaxMessageSizeInKilobytes) { + $topic.MaxMessageSizeInKilobytes = $MaxMessageSizeInKilobytes + $hasProperty = $true + } + if ($hasMaxSizeInMegabytes) { + $topic.MaxSizeInMegabytes = $MaxSizeInMegabytes + $hasProperty = $true + } + if ($hasStatus) { + $topic.Status = $Status + $hasProperty = $true + } + if ($hasSupportOrdering) { + $topic.SupportOrdering = $SupportOrdering + $hasProperty = $true + } + + if (($hasProperty -eq $false) -and ($PSCmdlet.ParameterSetName -eq 'SetViaIdentityExpanded')){ + throw 'Please specify the property you want to update on the -InputObject. Refer https://go.microsoft.com/fwlink/?linkid=2204584#behavior-of--inputobject for example.' + } + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($topic.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)) { + $topic.DefaultMessageTimeToLive = (New-TimeSpan -Days 10675197) + } + + if ($topic.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)) { + $topic.AutoDeleteOnIdle = (New-TimeSpan -Days 10675197) + } + + if ($topic.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)) { + $topic.DuplicateDetectionHistoryTimeWindow = (New-TimeSpan -Days 10675197) + } + + + if ($PSCmdlet.ShouldProcess("ServiceBus Topic $($topic.Name)", "Create or update")) { + Az.ServiceBus.private\New-AzServiceBusTopic_CreateViaIdentity -InputObject $topic -Parameter $topic @PSBoundParameters + } + } + catch{ + throw + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/custom/Test-AzServiceBusName.ps1 b/src/ServiceBus/ServiceBus.Autorest/custom/Test-AzServiceBusName.ps1 new file mode 100644 index 000000000000..107314ad9a54 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/custom/Test-AzServiceBusName.ps1 @@ -0,0 +1,130 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Checks availability of a namespace name or disaster recovery alias. +.Description +Checks availability of a namespace name or disaster recovery alias. +#> + +function Test-AzServiceBusName { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ICheckNameAvailabilityResult])] + [CmdletBinding(DefaultParameterSetName = 'NamespaceAvailability', PositionalBinding = $false, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory, ParameterSetName = 'AliasAvailability', HelpMessage = "The name of ServiceBus namespace")] + [Parameter(Mandatory, ParameterSetName = 'NamespaceAvailability', HelpMessage = "The name of ServiceBus namespace")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of ServiceBus namespace + ${NamespaceName}, + + [Parameter(Mandatory, ParameterSetName = 'AliasAvailability', HelpMessage = "The name of Disaster Recovery Config alias.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of Disaster Recovery Config alias. + ${AliasName}, + + [Parameter(Mandatory, ParameterSetName = 'AliasAvailability', HelpMessage = "The name of the resource")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [System.String] + # The name of Disaster Recovery Config alias. + ${ResourceGroupName}, + + [Parameter(HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(HelpMessage = "Run the command as a job")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = "Run the command asynchronously")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + process{ + try{ + $null = $PSBoundParameters.Remove('WhatIf') + $null = $PSBoundParameters.Remove('Confirm') + + if ($PSCmdlet.ParameterSetName -eq 'NamespaceAvailability'){ + $null = $PSBoundParameters.Remove('NamespaceName') + Az.ServiceBus.private\Test-AzServiceBusNamespaceNameAvailability_CheckExpanded -Name $NamespaceName @PSBoundParameters + } + + if ($PSCmdlet.ParameterSetName -eq 'AliasAvailability'){ + $null = $PSBoundParameters.Remove('AliasName') + Az.ServiceBus.private\Test-AzServiceBusDisasterRecoveryConfigNameAvailability_CheckExpanded -Name $AliasName @PSBoundParameters + } + } + catch{ + throw + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Approve-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/docs/Approve-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..e57851b93a02 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Approve-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/approve-azservicebusprivateendpointconnection +schema: 2.0.0 +--- + +# Approve-AzServiceBusPrivateEndpointConnection + +## SYNOPSIS +Approves a ServiceBus PrivateEndpointConnection + +## SYNTAX + +### SetExpanded (Default) +``` +Approve-AzServiceBusPrivateEndpointConnection -NamespaceName -ResourceGroupName + [-Name ] [-SubscriptionId ] [-Description ] [-DefaultProfile ] [-AsJob] + [-NoWait] [] +``` + +### SetViaIdentityExpanded +``` +Approve-AzServiceBusPrivateEndpointConnection -InputObject [-Description ] + [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +## DESCRIPTION +Approves a ServiceBus PrivateEndpointConnection + +## EXAMPLES + +### Example 1: Approve a ServiceBus Namespace Private Endpoint Connection +```powershell +Approve-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointConnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/privateEndpointName +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Approves private endpoint connection `00000000000` on ServiceBus namespace `myNamespace`. + +### Example 2: Approve a ServiceBus Namespace Private Endpoint Connection using InputObject +```powershell +$privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +Approve-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/privateEndpointName +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Approves private endpoint connection `00000000000` on ServiceBus namespace `myNamespace` using InputObject parameter set. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +PrivateEndpoint information. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Private Endpoint Connection + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: PrivateEndpointConnectionName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateEndpointConnection + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md b/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md new file mode 100644 index 000000000000..869678ef7ad3 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md @@ -0,0 +1,141 @@ +--- +Module Name: Az.ServiceBus +Module Guid: f73d11ef-c690-49f3-8c2c-9000e0e4fe69 +Download Help Link: https://docs.microsoft.com/powershell/module/az.servicebus +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.ServiceBus Module +## Description +Microsoft Azure PowerShell: ServiceBus cmdlets + +## Az.ServiceBus Cmdlets +### [Approve-AzServiceBusPrivateEndpointConnection](Approve-AzServiceBusPrivateEndpointConnection.md) +Approves a ServiceBus PrivateEndpointConnection + +### [Complete-AzServiceBusMigration](Complete-AzServiceBusMigration.md) +This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. +CompleteMigration operation will fail when entity migration is in-progress. + +### [Deny-AzServiceBusPrivateEndpointConnection](Deny-AzServiceBusPrivateEndpointConnection.md) +Denies a ServiceBus PrivateEndpointConnection + +### [Get-AzServiceBusAuthorizationRule](Get-AzServiceBusAuthorizationRule.md) +Gets an ServiceBus Authorization Rule + +### [Get-AzServiceBusGeoDRConfiguration](Get-AzServiceBusGeoDRConfiguration.md) +Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace + +### [Get-AzServiceBusKey](Get-AzServiceBusKey.md) +Gets a ServiceBus SAS key + +### [Get-AzServiceBusMigration](Get-AzServiceBusMigration.md) +Retrieves Migration Config + +### [Get-AzServiceBusNetworkRuleSet](Get-AzServiceBusNetworkRuleSet.md) +Gets NetworkRuleSet for a Namespace. + +### [Get-AzServiceBusPrivateEndpointConnection](Get-AzServiceBusPrivateEndpointConnection.md) +Gets a description for the specified Private Endpoint Connection. + +### [Get-AzServiceBusPrivateLink](Get-AzServiceBusPrivateLink.md) +Gets lists of resources that supports Privatelinks. + +### [Get-AzServiceBusQueue](Get-AzServiceBusQueue.md) +Returns a description for the specified queue. + +### [Get-AzServiceBusRule](Get-AzServiceBusRule.md) +Retrieves the description for the specified rule. + +### [Get-AzServiceBusSubscription](Get-AzServiceBusSubscription.md) +Returns a subscription description for the specified topic. + +### [Get-AzServiceBusTopic](Get-AzServiceBusTopic.md) +Returns a description for the specified topic. + +### [New-AzServiceBusAuthorizationRule](New-AzServiceBusAuthorizationRule.md) +Creates an Service Bus Namespace, Queue, Topic Authorization Rule + +### [New-AzServiceBusGeoDRConfiguration](New-AzServiceBusGeoDRConfiguration.md) +Creates or updates a new Alias(Disaster Recovery configuration) + +### [New-AzServiceBusIPRuleConfig](New-AzServiceBusIPRuleConfig.md) +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +### [New-AzServiceBusKey](New-AzServiceBusKey.md) +Regenerates a ServiceBus SAS key + +### [New-AzServiceBusQueue](New-AzServiceBusQueue.md) +Creates or updates a Service Bus queue. +This operation is idempotent. + +### [New-AzServiceBusRule](New-AzServiceBusRule.md) +Creates a new rule and updates an existing rule + +### [New-AzServiceBusSubscription](New-AzServiceBusSubscription.md) +Creates a topic subscription. + +### [New-AzServiceBusTopic](New-AzServiceBusTopic.md) +Creates a topic in the specified namespace. + +### [New-AzServiceBusVirtualNetworkRuleConfig](New-AzServiceBusVirtualNetworkRuleConfig.md) +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +### [Remove-AzServiceBusAuthorizationRule](Remove-AzServiceBusAuthorizationRule.md) +Removes an ServiceBus Namespace, Queue or Topic Authorization Rule + +### [Remove-AzServiceBusGeoDRConfiguration](Remove-AzServiceBusGeoDRConfiguration.md) +Deletes an Alias(Disaster Recovery configuration) + +### [Remove-AzServiceBusMigration](Remove-AzServiceBusMigration.md) +Deletes a MigrationConfiguration + +### [Remove-AzServiceBusPrivateEndpointConnection](Remove-AzServiceBusPrivateEndpointConnection.md) +Deletes an existing Private Endpoint Connection. + +### [Remove-AzServiceBusQueue](Remove-AzServiceBusQueue.md) +Deletes a queue from the specified namespace in a resource group. + +### [Remove-AzServiceBusRule](Remove-AzServiceBusRule.md) +Deletes an existing rule. + +### [Remove-AzServiceBusSubscription](Remove-AzServiceBusSubscription.md) +Deletes a subscription from the specified topic. + +### [Remove-AzServiceBusTopic](Remove-AzServiceBusTopic.md) +Deletes a topic from the specified namespace and resource group. + +### [Set-AzServiceBusAuthorizationRule](Set-AzServiceBusAuthorizationRule.md) +Sets an ServiceBus Namespace, Queue and Topic Authorization Rule + +### [Set-AzServiceBusGeoDRConfigurationBreakPair](Set-AzServiceBusGeoDRConfigurationBreakPair.md) +This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces + +### [Set-AzServiceBusGeoDRConfigurationFailOver](Set-AzServiceBusGeoDRConfigurationFailOver.md) +Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace + +### [Set-AzServiceBusNetworkRuleSet](Set-AzServiceBusNetworkRuleSet.md) +Sets an ServiceBus Namespace Network Rule Set + +### [Set-AzServiceBusQueue](Set-AzServiceBusQueue.md) +Sets a ServiceBus Queue + +### [Set-AzServiceBusRule](Set-AzServiceBusRule.md) +Sets a ServiceBus Rule + +### [Set-AzServiceBusSubscription](Set-AzServiceBusSubscription.md) +Sets a ServiceBus Topic + +### [Set-AzServiceBusTopic](Set-AzServiceBusTopic.md) +Sets a ServiceBus Topic + +### [Start-AzServiceBusMigration](Start-AzServiceBusMigration.md) +Creates Migration configuration and starts migration of entities from Standard to Premium namespace + +### [Stop-AzServiceBusMigration](Stop-AzServiceBusMigration.md) +This operation reverts Migration + +### [Test-AzServiceBusName](Test-AzServiceBusName.md) +Checks availability of a namespace name or disaster recovery alias. + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Complete-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Complete-AzServiceBusMigration.md new file mode 100644 index 000000000000..92e44cbf7e1f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Complete-AzServiceBusMigration.md @@ -0,0 +1,202 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/complete-azservicebusmigration +schema: 2.0.0 +--- + +# Complete-AzServiceBusMigration + +## SYNOPSIS +This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. +CompleteMigration operation will fail when entity migration is in-progress. + +## SYNTAX + +### Complete (Default) +``` +Complete-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### CompleteViaIdentity +``` +Complete-AzServiceBusMigration -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. +CompleteMigration operation will fail when entity migration is in-progress. + +## EXAMPLES + +### Example 1: Complete migration from standard to premium servicebus namespace +```powershell +Complete-AzServiceBusMigration -ResourceGroupName myResourceGroup myNamespace +``` + +Completes migration to premium namespace. +Start-AzServiceBusMigration must be used to configure migration before completing it. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: CompleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Complete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Complete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Complete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Deny-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/docs/Deny-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..26d6ef52d1e1 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Deny-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/deny-azservicebusprivateendpointconnection +schema: 2.0.0 +--- + +# Deny-AzServiceBusPrivateEndpointConnection + +## SYNOPSIS +Denies a ServiceBus PrivateEndpointConnection + +## SYNTAX + +### SetExpanded (Default) +``` +Deny-AzServiceBusPrivateEndpointConnection -NamespaceName -ResourceGroupName + [-Name ] [-SubscriptionId ] [-Description ] [-DefaultProfile ] [-AsJob] + [-NoWait] [] +``` + +### SetViaIdentityExpanded +``` +Deny-AzServiceBusPrivateEndpointConnection -InputObject [-Description ] + [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +## DESCRIPTION +Denies a ServiceBus PrivateEndpointConnection + +## EXAMPLES + +### Example 1: Rejects a ServiceBus Namespace Private Endpoint Connection +```powershell +Deny-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Rejected +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointConnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Rejects private endpoint connection `00000000000` on ServiceBus namespace `myNamespace`. + +### Example 2: Rejects a ServiceBus Namespace Private Endpoint Connection using InputObject +```powershell +$privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +Deny-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint +``` + +```output +ConnectionState : Rejected +Description : +Id : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.ServiceBus/namespaces/{namespace}/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Rejects private endpoint connection `00000000000` on ServiceBus namespace `myNamespace` using InputObject parameter set. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +PrivateEndpoint information. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Private Endpoint Connection + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: PrivateEndpointConnectionName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateEndpointConnection + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..d56d8d1e5fdd --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusAuthorizationRule.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusauthorizationrule +schema: 2.0.0 +--- + +# Get-AzServiceBusAuthorizationRule + +## SYNOPSIS +Gets an ServiceBus Authorization Rule + +## SYNTAX + +### GetExpandedNamespace (Default) +``` +Get-AzServiceBusAuthorizationRule -NamespaceName -ResourceGroupName [-Name ] + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetExpandedAlias +``` +Get-AzServiceBusAuthorizationRule -AliasName -NamespaceName -ResourceGroupName + [-Name ] [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetExpandedQueue +``` +Get-AzServiceBusAuthorizationRule -NamespaceName -QueueName -ResourceGroupName + [-Name ] [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetExpandedTopic +``` +Get-AzServiceBusAuthorizationRule -NamespaceName -ResourceGroupName -TopicName + [-Name ] [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentityExpanded +``` +Get-AzServiceBusAuthorizationRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets an ServiceBus Authorization Rule + +## EXAMPLES + +### Example 1: Get a ServiceBus Namespace Authorization Rule +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules + /myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Gets details of authorization rule `myAuthRule` of ServiceBus namespace `myNamespace`. + +### Example 2: Get a ServiceBus queue authorization rule +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName queue1 -Name myAuthRule +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/queue1/authorizationRules + /myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Gets details of authorization rule `myAuthRule` of ServiceBus queue `queue1` from namespace `myNamespace`. + +### Example 3: List all authorization rules in a ServiceBus namespace +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all authorization rules in ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -AliasName +The name of the disaster recovery config + +```yaml +Type: System.String +Parameter Sets: GetExpandedAlias +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: GetExpandedAlias, GetExpandedNamespace, GetExpandedQueue, GetExpandedTopic +Aliases: AuthorizationRuleName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: GetExpandedAlias, GetExpandedNamespace, GetExpandedQueue, GetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the Service Bus queue. + +```yaml +Type: System.String +Parameter Sets: GetExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: GetExpandedAlias, GetExpandedNamespace, GetExpandedQueue, GetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: GetExpandedAlias, GetExpandedNamespace, GetExpandedQueue, GetExpandedTopic +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the Service Bus topic. + +```yaml +Type: System.String +Parameter Sets: GetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..95d876d5a584 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusgeodrconfiguration +schema: 2.0.0 +--- + +# Get-AzServiceBusGeoDRConfiguration + +## SYNOPSIS +Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusGeoDRConfiguration -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzServiceBusGeoDRConfiguration -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusGeoDRConfiguration -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace + +## EXAMPLES + +### Example 1: Get the disaster recovery configuration details of a ServiceBus namespace +```powershell +Get-AzServiceBusGeoDRConfiguration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAlias +``` + +```output +AlternateName : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/disasterRecoveryConfigs/myAlias +Location : +Name : myalias +PartnerNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +PendingReplicationOperationsCount : 0 +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +Role : Primary +``` + +Gets disaster recovery configuration details of alias `myAlias` created for namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The Disaster Recovery configuration name + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IArmDisasterRecovery + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusKey.md new file mode 100644 index 000000000000..9413e346b236 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusKey.md @@ -0,0 +1,262 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebuskey +schema: 2.0.0 +--- + +# Get-AzServiceBusKey + +## SYNOPSIS +Gets a ServiceBus SAS key + +## SYNTAX + +### GetExpandedNamespace (Default) +``` +Get-AzServiceBusKey -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +### GetExpandedAlias +``` +Get-AzServiceBusKey -AliasName -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +### GetExpandedQueue +``` +Get-AzServiceBusKey -Name -NamespaceName -QueueName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +### GetExpandedTopic +``` +Get-AzServiceBusKey -Name -NamespaceName -ResourceGroupName -TopicName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +## DESCRIPTION +Gets a ServiceBus SAS key + +## EXAMPLES + +### Example 1: Get keys of a ServiceBus Namespace authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus namespace `myNamespace`. + +### Example 2: Get keys of a Queue authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName queue1 -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus queue `queue1` from namespace `myNamespace`. + +### Example 3: Get keys of a Topic authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName topic1 -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus topic `topic1` from namespace `myNamespace`. + +## PARAMETERS + +### -AliasName +The name of the Service Disaster Recovery Config. + +```yaml +Type: System.String +Parameter Sets: GetExpandedAlias +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AuthorizationRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the ServiceBus queue. + +```yaml +Type: System.String +Parameter Sets: GetExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the ServiceBus topic. + +```yaml +Type: System.String +Parameter Sets: GetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IAccessKeys + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusMigration.md new file mode 100644 index 000000000000..611bef5f1c67 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusMigration.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusmigration +schema: 2.0.0 +--- + +# Get-AzServiceBusMigration + +## SYNOPSIS +Retrieves Migration Config + +## SYNTAX + +### Get (Default) +``` +Get-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusMigration -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Retrieves Migration Config + +## EXAMPLES + +### Example 1: Gets the migration configuration of a ServiceBus namespace +```powershell +Get-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myNamespace/migrationConfigurations/$default +Location : +MigrationState : Active +Name : myNamespace +PendingReplicationOperationsCount : +PostMigrationName : myPremiumNamespace +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TargetNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myPremiumNamespace +``` + +Gets the details of migration configuration related to namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IMigrationConfigProperties + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNetworkRuleSet.md new file mode 100644 index 000000000000..52c92163b9d7 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNetworkRuleSet.md @@ -0,0 +1,170 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusnetworkruleset +schema: 2.0.0 +--- + +# Get-AzServiceBusNetworkRuleSet + +## SYNOPSIS +Gets NetworkRuleSet for a Namespace. + +## SYNTAX + +### Get (Default) +``` +Get-AzServiceBusNetworkRuleSet -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusNetworkRuleSet -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzServiceBusNetworkRuleSet -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets NetworkRuleSet for a Namespace. + +## EXAMPLES + +### Example 1: Gets the network rule set of a ServiceBus namespace +```powershell +Get-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +DefaultAction : Allow +IPRule : {} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/default +Location : Central US +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +VirtualNetworkRule : +``` + +Gets the network rule set of ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INetworkRuleSet + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..d4677d6f07dd --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,193 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusprivateendpointconnection +schema: 2.0.0 +--- + +# Get-AzServiceBusPrivateEndpointConnection + +## SYNOPSIS +Gets a description for the specified Private Endpoint Connection. + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusPrivateEndpointConnection -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzServiceBusPrivateEndpointConnection -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusPrivateEndpointConnection -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a description for the specified Private Endpoint Connection. + +## EXAMPLES + +### Example 1: Get an ServiceBus Namespace Private Endpoint Connection +```powershell +Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Gets details of private endpoint connection `00000000000` created under EventHub namespace `myNamespace`. + +### Example 2: List all private endpoint connections on an EventHub namespace +```powershell +Get-AzEventHubPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all private endpoint connections of EventHub namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The PrivateEndpointConnection name + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: PrivateEndpointConnectionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateEndpointConnection + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateLink.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateLink.md new file mode 100644 index 000000000000..b9302b4225b4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateLink.md @@ -0,0 +1,118 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusprivatelink +schema: 2.0.0 +--- + +# Get-AzServiceBusPrivateLink + +## SYNOPSIS +Gets lists of resources that supports Privatelinks. + +## SYNTAX + +``` +Get-AzServiceBusPrivateLink -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets lists of resources that supports Privatelinks. + +## EXAMPLES + +### Example 1: Get private links associated with a ServiceBus namespace +```powershell +Get-AzServiceBusPrivateLink -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +GroupId : namespace +Id : subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateLinkResources/namespace +Name : namespace +RequiredMember : {namespace} +RequiredZoneName : {privatelink.servicebus.windows.net} +Type : Microsoft.ServiceBus/namespaces/privateLinkResources +``` + +Gets private link resources available on ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IPrivateLinkResourcesListResult + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusQueue.md new file mode 100644 index 000000000000..2d4aba026594 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusQueue.md @@ -0,0 +1,243 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusqueue +schema: 2.0.0 +--- + +# Get-AzServiceBusQueue + +## SYNOPSIS +Returns a description for the specified queue. + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusQueue -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-Skip ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzServiceBusQueue -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusQueue -InputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns a description for the specified queue. + +## EXAMPLES + +### Example 1: Get Details of a ServiceBus queue +```powershell +Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 8/8/2022 10:15:08 AM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10675199.02:48:05.4775807 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Disabled +``` + +Get the details of ServiceBus queue `myQueue` from namespace `myNamespace`. + +### Example 2: List all queues in a ServiceBus namespace +```powershell +Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all queues in ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The queue name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: QueueName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Skip +Skip is only used if a previous operation returned a partial result. +If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +May be used to limit the number of results to the most recent N usageDetails. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusRule.md new file mode 100644 index 000000000000..a5f0d1bb7153 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusRule.md @@ -0,0 +1,266 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebusrule +schema: 2.0.0 +--- + +# Get-AzServiceBusRule + +## SYNOPSIS +Retrieves the description for the specified rule. + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusRule -NamespaceName -ResourceGroupName -SubscriptionName + -TopicName [-SubscriptionId ] [-Skip ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzServiceBusRule -Name -NamespaceName -ResourceGroupName + -SubscriptionName -TopicName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusRule -InputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Retrieves the description for the specified rule. + +## EXAMPLES + +### Example 1: Get details of a ServiceBus Rule +```powershell +Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name '$Default' -TopicName myTopic -SubscriptionName mySubscription +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/$Default +Label : +Location : westus +MessageId : +Name : $Default +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 1=1 +SqlFilterCompatibilityLevel : 20 +``` + +Gets the details of `$Default` rule from subscription `mySubscription` of topic `myTopic`. + +### Example 2: List all rules in a ServiceBus subscription +```powershell +Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription +``` + +Lists all rules in ServiceBus subscription `mySubscription`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The rule name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: RuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Skip +Skip is only used if a previous operation returned a partial result. +If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionName +The subscription name. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +May be used to limit the number of results to the most recent N usageDetails. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusSubscription.md new file mode 100644 index 000000000000..66c06b21e84b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusSubscription.md @@ -0,0 +1,259 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebussubscription +schema: 2.0.0 +--- + +# Get-AzServiceBusSubscription + +## SYNOPSIS +Returns a subscription description for the specified topic. + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusSubscription -NamespaceName -ResourceGroupName -TopicName + [-SubscriptionId ] [-Skip ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzServiceBusSubscription -Name -NamespaceName -ResourceGroupName + -TopicName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusSubscription -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Returns a subscription description for the specified topic. + +## EXAMPLES + +### Example 1: Get details of the ServiceBus subscription +```powershell +Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name 'sub$$D' +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 1.00:03:04 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 6:17:32 AM +DeadLetteringOnFilterEvaluationException : False +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 14.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/damorg/providers/Microsoft.ServiceBus/namespaces/testlatestS + BMSI/topics/myTopic/subscriptions/sub$$D +IsClientAffine : True +IsDurable : True +IsShared : True +Location : westus +LockDuration : 00:00:30 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : sub$$D +RequiresSession : False +ResourceGroupName : damorg +Status : Active +``` + +Get details of subcription `sub$$D` from ServiceBus topic `myTopic`. + +### Example 2: List all subscriptions in a topic +```powershell +Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic +``` + +List all subscriptions in ServiceBus topic `myTopic`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The subscription name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: SubscriptionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Skip +Skip is only used if a previous operation returned a partial result. +If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +May be used to limit the number of results to the most recent N usageDetails. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusTopic.md new file mode 100644 index 000000000000..3e898491f149 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusTopic.md @@ -0,0 +1,233 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/get-azservicebustopic +schema: 2.0.0 +--- + +# Get-AzServiceBusTopic + +## SYNOPSIS +Returns a description for the specified topic. + +## SYNTAX + +### List (Default) +``` +Get-AzServiceBusTopic -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-Skip ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzServiceBusTopic -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzServiceBusTopic -InputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns a description for the specified topic. + +## EXAMPLES + +### Example 1: Get the details of the ServiceBus topic +```powershell +Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic +``` + +```output +AccessedAt : 9/21/2022 2:30:14 PM +AutoDeleteOnIdle : 3.00:00:00 +CreatedAt : 9/7/2022 10:05:52 AM +DefaultMessageTimeToLive : 10675197.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +Name : a +RequiresDuplicateDetection : False +ResourceGroupName : damorg +SizeInByte : 0 +Status : Active +SubscriptionCount : 2 +SupportOrdering : True +``` + +Get the details of ServiceBus topic `myTopic` from namespace `myNamespace`. + +### Example 2: List all topics in a ServiceBus namespace +```powershell +Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all topics in ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The topic name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: TopicName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Skip +Skip is only used if a previous operation returned a partial result. +If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +May be used to limit the number of results to the most recent N usageDetails. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..30cfb239ebd8 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusAuthorizationRule.md @@ -0,0 +1,269 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusauthorizationrule +schema: 2.0.0 +--- + +# New-AzServiceBusAuthorizationRule + +## SYNOPSIS +Creates an Service Bus Namespace, Queue, Topic Authorization Rule + +## SYNTAX + +### NewExpandedNamespace (Default) +``` +New-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + -Rights [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### NewExpandedQueue +``` +New-AzServiceBusAuthorizationRule -Name -NamespaceName -QueueName + -ResourceGroupName -Rights [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### NewExpandedTopic +``` +New-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + -TopicName -Rights [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates an Service Bus Namespace, Queue, Topic Authorization Rule + +## EXAMPLES + +### Example 1: Create an authorization rule for a ServiceBus namespace +```powershell +New-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule -Rights @('Manage','Send','Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on namespace `myNamespace`. + +### Example 2: Create an authorization rule for a ServiceBus queue +```powershell +New-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on ServiceBus queue `myQueue` from namespace `myNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AuthorizationRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of Service Bus namespace + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the Service Bus Queue. + +```yaml +Type: System.String +Parameter Sets: NewExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rights +The rights associated with the rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the Service Bus Topic. + +```yaml +Type: System.String +Parameter Sets: NewExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..2ac6078226ee --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,214 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusgeodrconfiguration +schema: 2.0.0 +--- + +# New-AzServiceBusGeoDRConfiguration + +## SYNOPSIS +Creates or updates a new Alias(Disaster Recovery configuration) + +## SYNTAX + +``` +New-AzServiceBusGeoDRConfiguration -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-AlternateName ] [-PartnerNamespace ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a new Alias(Disaster Recovery configuration) + +## EXAMPLES + +### Example 1: Create a disaster recovery Alias +```powershell +New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +``` + +```output +AlternateName : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPrimaryNamespace/disasterRecoveryCon + figs/myAlias +Location : +Name : myAlias +PartnerNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +PendingReplicationOperationsCount : +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +Role : Primary +``` + +Creates a Disaster Recovery configuration which sets `mySecondaryNamespace` as secondary to `myPrimaryNamespace`. + +## PARAMETERS + +### -AlternateName +Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The Disaster Recovery configuration name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PartnerNamespace +ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IArmDisasterRecovery + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusIPRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusIPRuleConfig.md new file mode 100644 index 000000000000..47ae33494338 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusIPRuleConfig.md @@ -0,0 +1,83 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusipruleconfig +schema: 2.0.0 +--- + +# New-AzServiceBusIPRuleConfig + +## SYNOPSIS +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +## SYNTAX + +``` +New-AzServiceBusIPRuleConfig -IPMask [-Action ] [] +``` + +## DESCRIPTION +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +## EXAMPLES + +### Example 1: Constructs an INwRuleSetIPRules object +```powershell +New-AzServiceBusIPRuleConfig -IPMask 3.3.3.3 -Action Allow +``` + +```output +Action IPMask +------ ------ +Allow 1.1.1.1 +``` + +Please refer examples for Set-AzServiceBusNetworkRuleSet to know more. + +## PARAMETERS + +### -Action +The IP Filter Action + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.NetworkRuleIPAction +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPMask +IP Mask + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKey.md new file mode 100644 index 000000000000..25b27f2ae45c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKey.md @@ -0,0 +1,284 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebuskey +schema: 2.0.0 +--- + +# New-AzServiceBusKey + +## SYNOPSIS +Regenerates a ServiceBus SAS key + +## SYNTAX + +### NewExpandedNamespace (Default) +``` +New-AzServiceBusKey -Name -NamespaceName -ResourceGroupName -KeyType + [-SubscriptionId ] [-KeyValue ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### NewExpandedQueue +``` +New-AzServiceBusKey -Name -NamespaceName -QueueName -ResourceGroupName + -KeyType [-SubscriptionId ] [-KeyValue ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### NewExpandedTopic +``` +New-AzServiceBusKey -Name -NamespaceName -ResourceGroupName -TopicName + -KeyType [-SubscriptionId ] [-KeyValue ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Regenerates a ServiceBus SAS key + +## EXAMPLES + +### Example 1: Regenerate Primary Key of an ServiceBus Namespace +```powershell +New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name rootmanagesharedaccesskey -KeyType PrimaryKey +``` + +```output +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : {primaryConnectionString} +PrimaryKey : {primaryKey} +SecondaryConnectionString : {secondaryConnectionString} +SecondaryKey : {secondaryKey} +``` + +Regenerate primary key of authorization rule `rootmanagesharedaccesskey` on ServiceBus Namespace `myNamespace`. + +### Example 2: Regenerate Secondary Key of an ServiceBus queue +```powershell +New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name rootmanagesharedaccesskey -KeyType SecondaryKey +``` + +```output +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : {primaryConnectionString} +PrimaryKey : {primaryKey} +SecondaryConnectionString : {secondaryConnectionString} +SecondaryKey : {secondaryKey} +``` + +Regenerate primary key of authorization rule `rootmanagesharedaccesskey` on ServiceBus queue `myQueue` on ServiceBus Namespace `myNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyType +The access key to regenerate. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.KeyType +Parameter Sets: (All) +Aliases: RegenerateKey + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyValue +Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AuthorizationRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of EventHub namespace + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the ServiceBus queue. + +```yaml +Type: System.String +Parameter Sets: NewExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the ServiceBus topic. + +```yaml +Type: System.String +Parameter Sets: NewExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IAccessKeys + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusQueue.md new file mode 100644 index 000000000000..6a0d2102b189 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusQueue.md @@ -0,0 +1,444 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusqueue +schema: 2.0.0 +--- + +# New-AzServiceBusQueue + +## SYNOPSIS +Creates or updates a Service Bus queue. +This operation is idempotent. + +## SYNTAX + +``` +New-AzServiceBusQueue -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-AutoDeleteOnIdle ] [-DeadLetteringOnMessageExpiration] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-EnableExpress] [-EnablePartitioning] [-ForwardDeadLetteredMessagesTo ] + [-ForwardTo ] [-LockDuration ] [-MaxDeliveryCount ] + [-MaxMessageSizeInKilobytes ] [-MaxSizeInMegabytes ] [-RequiresDuplicateDetection] + [-RequiresSession] [-Status ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates or updates a Service Bus queue. +This operation is idempotent. + +## EXAMPLES + +### Example 1: Create a new ServiceBus queue +```powershell +New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 1.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 5.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Creates a ServiceBus queue `myQueue` in namespace `myNamespace`. + +## PARAMETERS + +### -AutoDeleteOnIdle +Idle interval after which the queue is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnMessageExpiration +A value that indicates whether this queue has dead letter support when a message expires. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +Defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableExpress +A value that indicates whether Express Entities are enabled. +An express queue holds a message in memory temporarily before writing it to persistent storage. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnablePartitioning +A value that indicates whether the queue is to be partitioned across multiple message brokers. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardDeadLetteredMessagesTo +Queue/Topic name to forward the Dead Letter message + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardTo +Queue/Topic name to forward the messages + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LockDuration +Timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. +The maximum value for LockDuration is 5 minutes; the default value is 1 minute. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxDeliveryCount +The maximum delivery count. +A message is automatically deadlettered after this number of deliveries. +default value is 10. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxMessageSizeInKilobytes +Maximum size (in KB) of the message payload that can be accepted by the queue. +This property is only used in Premium today and default is 1024. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxSizeInMegabytes +The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. +Default is 1024. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The queue name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: QueueName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequiresDuplicateDetection +A value indicating if this queue requires duplicate detection. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequiresSession +A value that indicates whether the queue supports the concept of sessions. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Enumerates the possible values for the status of a messaging entity. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md new file mode 100644 index 000000000000..0374a192f790 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md @@ -0,0 +1,475 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusrule +schema: 2.0.0 +--- + +# New-AzServiceBusRule + +## SYNOPSIS +Creates a new rule and updates an existing rule + +## SYNTAX + +``` +New-AzServiceBusRule -Name -NamespaceName -ResourceGroupName + -SubscriptionName -TopicName [-SubscriptionId ] [-ActionRequiresPreprocessing] + [-ActionSqlExpression ] [-ContentType ] [-CorrelationFilterProperty ] + [-CorrelationFilterRequiresPreprocessing] [-CorrelationId ] [-FilterType ] + [-Label ] [-MessageId ] [-ReplyTo ] [-ReplyToSessionId ] + [-SessionId ] [-SqlExpression ] [-SqlFilterRequiresPreprocessing] [-To ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new rule and updates an existing rule + +## EXAMPLES + +### Example 1: Create a Correlation Filter +```powershell +New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : contenttype +CorrelationFilterProperty : { + "c": "d", + "a": "b" + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : correlationid +FilterType : CorrelationFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/myCorrelationRule +Label : label +Location : westus +MessageId : messageid +Name : myCorrelationRule +ReplyTo : replyto +ReplyToSessionId : replytosessionid +ResourceGroupName : myResourceGroup +SessionId : sessionid +SqlExpression : +SqlFilterCompatibilityLevel : +``` + +Create a correlation filter `myCorrelationRule` in ServiceBus subscription `mySubscription`. + +### Example 2: Create a Sql Filter +```powershell +New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name mySqlRule -FilterType SqlFilter -SqlExpression 3=2 -ActionSqlExpression "SET a=b" +``` + +```output +ActionCompatibilityLevel : 20 +ActionRequiresPreprocessing : +ActionSqlExpression : SET a=b +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/mySqlRule +Label : +Location : westus +MessageId : +Name : mySqlRule +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 3=2 +SqlFilterCompatibilityLevel : 20 +SqlFilterRequiresPreprocessing : +``` + +Create a sql filter `myRule` in ServiceBus subscription `mySubscription`. + +## PARAMETERS + +### -ActionRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionSqlExpression +SQL expression. +e.g. +MyProperty='ABC' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentType +Content type of the message. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationFilterProperty +dictionary object for custom filters + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationFilterRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationId +Identifier of the correlation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FilterType +Filter type that is evaluated against a BrokeredMessage. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.FilterType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Label +Application specific label. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MessageId +Identifier of the message. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The rule name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: RuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplyTo +Address of the queue to reply to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplyToSessionId +Session identifier to reply to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SessionId +Session identifier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SqlExpression +The SQL expression. +e.g. +MyProperty='ABC' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SqlFilterRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionName +The subscription name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -To +Address to send to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md new file mode 100644 index 000000000000..bb39fe01736d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md @@ -0,0 +1,451 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebussubscription +schema: 2.0.0 +--- + +# New-AzServiceBusSubscription + +## SYNOPSIS +Creates a topic subscription. + +## SYNTAX + +``` +New-AzServiceBusSubscription -Name -NamespaceName -ResourceGroupName + -TopicName [-SubscriptionId ] [-AutoDeleteOnIdle ] [-ClientId ] + [-DeadLetteringOnFilterEvaluationException] [-DeadLetteringOnMessageExpiration] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-ForwardDeadLetteredMessagesTo ] [-ForwardTo ] [-IsClientAffine] + [-IsDurable] [-IsShared] [-LockDuration ] [-MaxDeliveryCount ] [-RequiresSession] + [-Status ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a topic subscription. + +## EXAMPLES + +### Example 1: Create a new ServiceBus subscription +```powershell +New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 6.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/damorg/providers/Microsoft.ServiceBus/namespaces/testlatests + bmsi/topics/a/subscriptions/testsub +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : damorg +Status : Active +``` + +Creates a new ServiceBus subscription `mySubscription` under topic `myTopic`. + +## PARAMETERS + +### -AutoDeleteOnIdle +Idle interval after which the queue is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientId +Indicates the Client ID of the application that created the client-affine subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnFilterEvaluationException +Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnMessageExpiration +Value that indicates whether a subscription has dead letter support when a message expires. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +Defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardDeadLetteredMessagesTo +Queue/Topic name to forward the Dead Letter message + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardTo +Queue/Topic name to forward the messages + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsClientAffine +Value that indicates whether the subscription has an affinity to the client id. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsDurable +For client-affine subscriptions, this value indicates whether the subscription is durable or not. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsShared +For client-affine subscriptions, this value indicates whether the subscription is shared or not. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LockDuration +Timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. +The maximum value for LockDuration is 5 minutes; the default value is 1 minute. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxDeliveryCount +Number of maximum deliveries. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The subscription name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: SubscriptionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequiresSession +Value indicating if a subscription supports the concept of sessions. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Enumerates the possible values for the status of a messaging entity. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusTopic.md new file mode 100644 index 000000000000..1b31fff3892c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusTopic.md @@ -0,0 +1,357 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebustopic +schema: 2.0.0 +--- + +# New-AzServiceBusTopic + +## SYNOPSIS +Creates a topic in the specified namespace. + +## SYNTAX + +``` +New-AzServiceBusTopic -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-AutoDeleteOnIdle ] [-DefaultMessageTimeToLive ] + [-DuplicateDetectionHistoryTimeWindow ] [-EnableBatchedOperations] [-EnableExpress] + [-EnablePartitioning] [-MaxMessageSizeInKilobytes ] [-MaxSizeInMegabytes ] + [-RequiresDuplicateDetection] [-Status ] [-SupportOrdering] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a topic in the specified namespace. + +## EXAMPLES + +### Example 1: Creates a new ServiceBus topic +```powershell +New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 18.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Creates a new ServiceBus topic `myTopic` within namespace `myNamespace`. + +## PARAMETERS + +### -AutoDeleteOnIdle +Idle interval after which the queue is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +Defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableExpress +Value that indicates whether Express Entities are enabled. +An express topic holds a message in memory temporarily before writing it to persistent storage. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnablePartitioning +Value that indicates whether the topic to be partitioned across multiple message brokers is enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxMessageSizeInKilobytes +Maximum size (in KB) of the message payload that can be accepted by the topic. +This property is only used in Premium today and default is 1024. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxSizeInMegabytes +Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. +Default is 1024. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The topic name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: TopicName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequiresDuplicateDetection +Value indicating if this topic requires duplicate detection. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Enumerates the possible values for the status of a messaging entity. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportOrdering +Value that indicates whether the topic supports ordering. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusVirtualNetworkRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusVirtualNetworkRuleConfig.md new file mode 100644 index 000000000000..ae00c4ee491d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusVirtualNetworkRuleConfig.md @@ -0,0 +1,85 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/new-azservicebusvirtualnetworkruleconfig +schema: 2.0.0 +--- + +# New-AzServiceBusVirtualNetworkRuleConfig + +## SYNOPSIS +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +## SYNTAX + +``` +New-AzServiceBusVirtualNetworkRuleConfig -SubnetId [-IgnoreMissingVnetServiceEndpoint] + [] +``` + +## DESCRIPTION +Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzServiceBusNetworkRuleSet + +## EXAMPLES + +### Example 1: Constructs an INwRuleSetVirtualNetworkRules object +```powershell +New-AzServiceBusVirtualNetworkRuleConfig -SubnetId /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default +``` + +```output +IgnoreMissingVnetServiceEndpoint SubnetId +-------------------------------- -------- + /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default + +``` + +Please refer examples for Set-AzServiceBusNetworkRuleSet to know more. + +## PARAMETERS + +### -IgnoreMissingVnetServiceEndpoint +Resource ID of Virtual Network Subnet + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetId +Resource ID of Virtual Network Subnet + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/README.md b/src/ServiceBus/ServiceBus.Autorest/docs/README.md new file mode 100644 index 000000000000..d3f57a307309 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.ServiceBus` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.ServiceBus` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..9db35de8cbc8 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusAuthorizationRule.md @@ -0,0 +1,281 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusauthorizationrule +schema: 2.0.0 +--- + +# Remove-AzServiceBusAuthorizationRule + +## SYNOPSIS +Removes an ServiceBus Namespace, Queue or Topic Authorization Rule + +## SYNTAX + +### RemoveExpandedNamespace (Default) +``` +Remove-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### RemoveExpandedQueue +``` +Remove-AzServiceBusAuthorizationRule -Name -NamespaceName -QueueName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### RemoveExpandedTopic +``` +Remove-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + -TopicName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### RemoveViaIdentityExpanded +``` +Remove-AzServiceBusAuthorizationRule -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Removes an ServiceBus Namespace, Queue or Topic Authorization Rule + +## EXAMPLES + +### Example 1: Remove authorization rule from an a ServiceBus namespace +```powershell +Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule +``` + +Deletes authorization rule `myAuthRule` from EventHub namespace `myNamespace`. + +### Example 2: Remove authorization rule from a ServiceBus queue +```powershell +Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule +``` + +Deletes authorization rule `myAuthRule` from ServiceBus `myQueue` on namespace `myNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: RemoveViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedNamespace, RemoveExpandedQueue, RemoveExpandedTopic +Aliases: AuthorizationRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of Service Bus namespace + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedNamespace, RemoveExpandedQueue, RemoveExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the ServiceBus Queue entity. + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedNamespace, RemoveExpandedQueue, RemoveExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedNamespace, RemoveExpandedQueue, RemoveExpandedTopic +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the ServiceBus Topic entity. + +```yaml +Type: System.String +Parameter Sets: RemoveExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..3850b995c2a1 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,214 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusgeodrconfiguration +schema: 2.0.0 +--- + +# Remove-AzServiceBusGeoDRConfiguration + +## SYNOPSIS +Deletes an Alias(Disaster Recovery configuration) + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusGeoDRConfiguration -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusGeoDRConfiguration -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an Alias(Disaster Recovery configuration) + +## EXAMPLES + +### Example 1: Remove Disaster Recovery Config from a ServiceBus namespace +```powershell +Remove-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace +``` + +Deletes alias `myAlias` from ServiceBus namespace `myPrimaryNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The Disaster Recovery configuration name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusMigration.md new file mode 100644 index 000000000000..c3983e33539d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusMigration.md @@ -0,0 +1,199 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusmigration +schema: 2.0.0 +--- + +# Remove-AzServiceBusMigration + +## SYNOPSIS +Deletes a MigrationConfiguration + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusMigration -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a MigrationConfiguration + +## EXAMPLES + +### Example 1: Remove Standard to Premium migration configuration from a Standard namespace +```powershell +Remove-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Removes migration configuration of namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..4a4efb4a86b1 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusprivateendpointconnection +schema: 2.0.0 +--- + +# Remove-AzServiceBusPrivateEndpointConnection + +## SYNOPSIS +Deletes an existing Private Endpoint Connection. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusPrivateEndpointConnection -Name -NamespaceName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusPrivateEndpointConnection -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an existing Private Endpoint Connection. + +## EXAMPLES + +### Example 1: Remove a private endpoint connection from an ServiceBus namespace +```powershell +Remove-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +Deletes private endpoint connection `00000000000` from an ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The PrivateEndpointConnection name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: PrivateEndpointConnectionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusQueue.md new file mode 100644 index 000000000000..a8e346d55696 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusQueue.md @@ -0,0 +1,214 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusqueue +schema: 2.0.0 +--- + +# Remove-AzServiceBusQueue + +## SYNOPSIS +Deletes a queue from the specified namespace in a resource group. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusQueue -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusQueue -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a queue from the specified namespace in a resource group. + +## EXAMPLES + +### Example 1: Remove a queue from a ServiceBus namespace +```powershell +Remove-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +``` + +Deletes a ServiceBus queue `myQueue` from ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The queue name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: QueueName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusRule.md new file mode 100644 index 000000000000..288a1f0b2b46 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusRule.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebusrule +schema: 2.0.0 +--- + +# Remove-AzServiceBusRule + +## SYNOPSIS +Deletes an existing rule. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusRule -Name -NamespaceName -ResourceGroupName + -SubscriptionName -TopicName [-SubscriptionId ] [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusRule -InputObject [-DefaultProfile ] [-PassThru] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an existing rule. + +## EXAMPLES + +### Example 1: Remove a rule from a ServiceBus subscription +```powershell +Remove-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myRule +``` + +Deletes a ServiceBus rule `myRule` from ServiceBus subscription `mySubscription`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The rule name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: RuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionName +The subscription name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusSubscription.md new file mode 100644 index 000000000000..7aa66f7077b4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusSubscription.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebussubscription +schema: 2.0.0 +--- + +# Remove-AzServiceBusSubscription + +## SYNOPSIS +Deletes a subscription from the specified topic. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusSubscription -Name -NamespaceName -ResourceGroupName + -TopicName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusSubscription -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a subscription from the specified topic. + +## EXAMPLES + +### Example 1: Remove a subscription from a ServiceBus topic +```powershell +Remove-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription +``` + +Deletes a ServiceBus subscription `mySubscription` from ServiceBus topic `myTopic`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The subscription name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: SubscriptionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The topic name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusTopic.md new file mode 100644 index 000000000000..146420d89a03 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusTopic.md @@ -0,0 +1,214 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/remove-azservicebustopic +schema: 2.0.0 +--- + +# Remove-AzServiceBusTopic + +## SYNOPSIS +Deletes a topic from the specified namespace and resource group. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzServiceBusTopic -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzServiceBusTopic -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a topic from the specified namespace and resource group. + +## EXAMPLES + +### Example 1: Remove a topic from a ServiceBus namespace +```powershell +Remove-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic +``` + +Deletes a ServiceBus topic `myTopic` from ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The topic name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: TopicName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..e1f8d21dd4d9 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusAuthorizationRule.md @@ -0,0 +1,314 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusauthorizationrule +schema: 2.0.0 +--- + +# Set-AzServiceBusAuthorizationRule + +## SYNOPSIS +Sets an ServiceBus Namespace, Queue and Topic Authorization Rule + +## SYNTAX + +### SetExpandedNamespace (Default) +``` +Set-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + -Rights [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### SetExpandedQueue +``` +Set-AzServiceBusAuthorizationRule -Name -NamespaceName -QueueName + -ResourceGroupName -Rights [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetExpandedTopic +``` +Set-AzServiceBusAuthorizationRule -Name -NamespaceName -ResourceGroupName + -TopicName -Rights [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusAuthorizationRule -InputObject -Rights + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sets an ServiceBus Namespace, Queue and Topic Authorization Rule + +## EXAMPLES + +### Example 1: Update an authorization rule for a ServiceBus namespace +```powershell +Set-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule -Rights @('Manage','Send','Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on namespace `myNamespace`. + +### Example 2: Update an authorization rule for a ServiceBus queue +```powershell +Set-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on ServiceBus queue `myQueue` from namespace `myNamespace` + +. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Authorization Rule + +```yaml +Type: System.String +Parameter Sets: SetExpandedNamespace, SetExpandedQueue, SetExpandedTopic +Aliases: AuthorizationRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of the ServiceBus namespace. + +```yaml +Type: System.String +Parameter Sets: SetExpandedNamespace, SetExpandedQueue, SetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QueueName +The name of the ServiceBus queue. + +```yaml +Type: System.String +Parameter Sets: SetExpandedQueue +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpandedNamespace, SetExpandedQueue, SetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rights +The rights associated with the rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpandedNamespace, SetExpandedQueue, SetExpandedTopic +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the ServiceBus topic. + +```yaml +Type: System.String +Parameter Sets: SetExpandedTopic +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbAuthorizationRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationBreakPair.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationBreakPair.md new file mode 100644 index 000000000000..f29262d5e8b4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationBreakPair.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusgeodrconfigurationbreakpair +schema: 2.0.0 +--- + +# Set-AzServiceBusGeoDRConfigurationBreakPair + +## SYNOPSIS +This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces + +## SYNTAX + +### Break (Default) +``` +Set-AzServiceBusGeoDRConfigurationBreakPair -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### BreakViaIdentity +``` +Set-AzServiceBusGeoDRConfigurationBreakPair -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces + +## EXAMPLES + +### Example 1: Break Pairing between Primary and Secondary namespace +```powershell +Set-AzServiceBusGeoDRConfigurationBreakPair -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -Name myAlias +``` + +Break Pairing between primary namespace `myPrimaryNamespace` and it's secondary namespace. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: BreakViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the disaster recovery config or alias + +```yaml +Type: System.String +Parameter Sets: Break +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: Break +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Break +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Break +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationFailOver.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationFailOver.md new file mode 100644 index 000000000000..18003e386b39 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationFailOver.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusgeodrconfigurationfailover +schema: 2.0.0 +--- + +# Set-AzServiceBusGeoDRConfigurationFailOver + +## SYNOPSIS +Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace + +## SYNTAX + +### Fail (Default) +``` +Set-AzServiceBusGeoDRConfigurationFailOver -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### FailViaIdentity +``` +Set-AzServiceBusGeoDRConfigurationFailOver -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace + +## EXAMPLES + +### Example 1: Fail Over to secondary namespace of an alias +```powershell +Set-AzServiceBusGeoDRConfigurationFailOver -ResourceGroupName myResourceGroup -NamespaceName mySecondaryNamespace -Name myAlias +``` + +Fails over to `mySecondaryNamespace` which is secondary namespace of alias `myAlias`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: FailViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the disaster recovery config or alias + +```yaml +Type: System.String +Parameter Sets: Fail +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: Fail +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Fail +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Fail +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNetworkRuleSet.md new file mode 100644 index 000000000000..38032a9a691a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNetworkRuleSet.md @@ -0,0 +1,385 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusnetworkruleset +schema: 2.0.0 +--- + +# Set-AzServiceBusNetworkRuleSet + +## SYNOPSIS +Sets an ServiceBus Namespace Network Rule Set + +## SYNTAX + +### SetExpanded (Default) +``` +Set-AzServiceBusNetworkRuleSet -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultAction ] [-IPRule ] [-PublicNetworkAccess ] + [-TrustedServiceAccessEnabled] [-VirtualNetworkRule ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusNetworkRuleSet -InputObject [-DefaultAction ] + [-IPRule ] [-PublicNetworkAccess ] [-TrustedServiceAccessEnabled] + [-VirtualNetworkRule ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sets an ServiceBus Namespace Network Rule Set + +## EXAMPLES + +### Example 1: Add IP Rules and Virtual Network Rules to a Network Rule Set +```powershell +$ipRule1 = New-AzServiceBusIPRuleConfig -IPMask 2.2.2.2 -Action Allow +$ipRule2 = New-AzServiceBusIPRuleConfig -IPMask 3.3.3.3 -Action Allow +$virtualNetworkRule1 = New-AzServiceBusVirtualNetworkRuleConfig -SubnetId /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default +$networkRuleSet = Get-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace +$networkRuleSet.IPRule += $ipRule1 +$networkRuleSet.IPRule += $ipRule2 +$networkRuleSet.VirtualNetworkRule += $virtualNetworkRule1 +Set-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace -IPRule $ipRule1,$ipRule2 -VirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2,$virtualNetworkRule3 +``` + +```output +DefaultAction : Deny +IPRule : {{ + "ipMask": "1.1.1.1", + "action": "Allow" + }, { + "ipMask": "2.2.2.2", + "action": "Allow" + }, { + "ipMask": "3.3.3.3", + "action": "Allow" + }} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/ + default +Location : Australia East +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +TrustedServiceAccessEnabled : +Type : Microsoft.ServiceBus/Namespaces/NetworkRuleSets +VirtualNetworkRule : {{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default" + }, + "ignoreMissingVnetServiceEndpoint": false + },{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/mySubnet" + }, + "ignoreMissingVnetServiceEndpoint": false + }} +``` + +Appends virtual network rules and IPRules to the existing rules. + +### Example 2: Enable Trusted Service Access on a namespace +```powershell +Set-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TrustedServiceAccessEnabled +``` + +```output +DefaultAction : Deny +IPRule : {{ + "ipMask": "1.1.1.1", + "action": "Allow" + }, { + "ipMask": "2.2.2.2", + "action": "Allow" + }, { + "ipMask": "3.3.3.3", + "action": "Allow" + }} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/ + default +Location : Australia East +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +TrustedServiceAccessEnabled : True +Type : Microsoft.ServiceBus/Namespaces/NetworkRuleSets +VirtualNetworkRule : {{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default" + }, + "ignoreMissingVnetServiceEndpoint": false + },{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/mySubnet" + }, + "ignoreMissingVnetServiceEndpoint": false + }} +``` + +Enabled Trusted Service Access on the ServiceBus namespace `myNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultAction +Default Action for Network Rule Set + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.DefaultAction +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -IPRule +List of IpRules +To construct, see NOTES section for IPRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccess +This determines if traffic is allowed over public network. +By default it is enabled. +If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.PublicNetworkAccess +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrustedServiceAccessEnabled +Value that indicates whether Trusted Service Access is Enabled or not. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkRule +List of VirtualNetwork Rules +To construct, see NOTES section for VIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INetworkRuleSet + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +`IPRULE `: List of IpRules + - `[Action ]`: The IP Filter Action + - `[IPMask ]`: IP Mask + +`VIRTUALNETWORKRULE `: List of VirtualNetwork Rules + - `[IgnoreMissingVnetServiceEndpoint ]`: Value that indicates whether to ignore missing VNet Service Endpoint + - `[SubnetId ]`: Resource ID of Virtual Network Subnet + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusQueue.md new file mode 100644 index 000000000000..01f5a72da019 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusQueue.md @@ -0,0 +1,519 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusqueue +schema: 2.0.0 +--- + +# Set-AzServiceBusQueue + +## SYNOPSIS +Sets a ServiceBus Queue + +## SYNTAX + +### SetExpanded (Default) +``` +Set-AzServiceBusQueue -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-AutoDeleteOnIdle ] [-DeadLetteringOnMessageExpiration] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-EnableExpress] [-ForwardDeadLetteredMessagesTo ] [-ForwardTo ] + [-LockDuration ] [-MaxDeliveryCount ] [-MaxMessageSizeInKilobytes ] + [-MaxSizeInMegabytes ] [-Status ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusQueue -InputObject [-AutoDeleteOnIdle ] + [-DeadLetteringOnMessageExpiration] [-DefaultMessageTimeToLive ] + [-DuplicateDetectionHistoryTimeWindow ] [-EnableBatchedOperations] [-EnableExpress] + [-ForwardDeadLetteredMessagesTo ] [-ForwardTo ] [-LockDuration ] + [-MaxDeliveryCount ] [-MaxMessageSizeInKilobytes ] [-MaxSizeInMegabytes ] + [-Status ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Sets a ServiceBus Queue + +## EXAMPLES + +### Example 1: Update a ServiceBus queue +```powershell +Set-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 4 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 9) +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 4.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 9.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Updates Parameters `DefaultMessageTimeToLive`, `AutoDeleteOnIdle` on a ServiceBus queue `myQueue` in namespace `myNamespace`. + +### Example 2: Update a ServiceBus queue using InputObject parameter set +```powershell +$queue = Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +Set-AzServiceBusQueue -InputObject $queue -AutoDeleteOnIdle (New-TimeSpan -Days 4 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 9) +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 4.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 9.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Updates Parameters `DefaultMessageTimeToLive`, `AutoDeleteOnIdle` on a ServiceBus queue `myQueue` in namespace `myNamespace` using +InputObject parameter set. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AutoDeleteOnIdle +ISO 8061 timeSpan idle interval after which the queue is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnMessageExpiration +A value that indicates whether this queue has dead letter support when a message expires. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +ISO 8601 default message timespan to live value. +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableExpress +A value that indicates whether Express Entities are enabled. +An express queue holds a message in memory temporarily before writing it to persistent storage. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardDeadLetteredMessagesTo +A value that indicates whether the queue supports the concept of sessions. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardTo +Queue/Topic name to forward the messages + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LockDuration +ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. +The maximum value for LockDuration is 5 minutes; the default value is 1 minute. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxDeliveryCount +The maximum delivery count. +A message is automatically deadlettered after this number of deliveries. +default value is 10. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxMessageSizeInKilobytes +Maximum size (in KB) of the message payload that can be accepted by the queue. +This property is only used in Premium today and default is 1024. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxSizeInMegabytes +The maximum delivery count. +A message is automatically deadlettered after this number of deliveries. +default value is 10. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Queue. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: QueueName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Maximum size (in KB) of the message payload that can be accepted by the queue. +This property is only used in Premium today and default is 1024. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusRule.md new file mode 100644 index 000000000000..e667225d005c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusRule.md @@ -0,0 +1,554 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebusrule +schema: 2.0.0 +--- + +# Set-AzServiceBusRule + +## SYNOPSIS +Sets a ServiceBus Rule + +## SYNTAX + +### SetExpanded (Default) +``` +Set-AzServiceBusRule -Name -NamespaceName -ResourceGroupName + -SubscriptionName -TopicName [-SubscriptionId ] [-ActionRequiresPreprocessing] + [-ActionSqlExpression ] [-ContentType ] [-CorrelationFilterProperty ] + [-CorrelationFilterRequiresPreprocessing] [-CorrelationId ] [-FilterType ] + [-Label ] [-MessageId ] [-ReplyTo ] [-ReplyToSessionId ] + [-SessionId ] [-SqlExpression ] [-SqlFilterRequiresPreprocessing] [-To ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusRule -InputObject [-ActionRequiresPreprocessing] + [-ActionSqlExpression ] [-ContentType ] [-CorrelationFilterProperty ] + [-CorrelationFilterRequiresPreprocessing] [-CorrelationId ] [-FilterType ] + [-Label ] [-MessageId ] [-ReplyTo ] [-ReplyToSessionId ] + [-SessionId ] [-SqlExpression ] [-SqlFilterRequiresPreprocessing] [-To ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sets a ServiceBus Rule + +## EXAMPLES + +### Example 1: Update a Correlation Filter +```powershell +Set-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -ContentType updatedContentType -ReplyToSessionId updatedReplyToSessionId +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : updatedContentType +CorrelationFilterProperty : { + "c": "d", + "a": "b" + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : correlationid +FilterType : CorrelationFilter +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/myCorrelationRule +Label : label +Location : westus +MessageId : messageid +Name : myCorrelationRule +ReplyTo : replyto +ReplyToSessionId : updatedReplyToSessionId +ResourceGroupName : myResourceGroup +SessionId : sessionid +SqlExpression : +SqlFilterCompatibilityLevel : +``` + +Update `ContentType` and `ReplyToSessionId` parameters of a correlation filter `myCorrelationRule` in ServiceBus subscription `mySubscription`. + +### Example 2: Update an Sql Filter using InputObject parameter set +```powershell +$rule = Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name mySqlRule +Set-AzServiceBusRule -InputObject $rule -SqlExpression 5=3 +``` + +```output +ActionCompatibilityLevel : 20 +ActionRequiresPreprocessing : +ActionSqlExpression : SET a=b +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/mySqlRule +Label : +Location : westus +MessageId : +Name : mySqlRule +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 5=3 +SqlFilterCompatibilityLevel : 20 +SqlFilterRequiresPreprocessing : +``` + +Updating SqlExpression of SqlFilter `mySqlRule` using InputObject parameter set. + +## PARAMETERS + +### -ActionRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionSqlExpression +SQL expression. +e.g. +MyProperty='ABC' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentType +Content type of the message. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationFilterProperty +dictionary object for custom filters + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationFilterRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CorrelationId +Identifier of the correlation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FilterType +Filter type that is evaluated against a BrokeredMessage. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.FilterType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Label +Application specific label. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MessageId +Identifier of the message. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Rule. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: RuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplyTo +Address of the queue to reply to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplyToSessionId +Session identifier to reply to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SessionId +Session identifier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SqlExpression +SQL expression. +e.g. +MyProperty='ABC' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SqlFilterRequiresPreprocessing +Value that indicates whether the rule action requires preprocessing. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionName +The name of the SubscriptionName. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -To +Address to send to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the Topic. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusSubscription.md new file mode 100644 index 000000000000..d597f04c7960 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusSubscription.md @@ -0,0 +1,495 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebussubscription +schema: 2.0.0 +--- + +# Set-AzServiceBusSubscription + +## SYNOPSIS +Sets a ServiceBus Topic + +## SYNTAX + +### SetExpanded (Default) +``` +Set-AzServiceBusSubscription -Name -NamespaceName -ResourceGroupName + -TopicName [-SubscriptionId ] [-AutoDeleteOnIdle ] + [-DeadLetteringOnFilterEvaluationException] [-DeadLetteringOnMessageExpiration] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-ForwardDeadLetteredMessagesTo ] [-ForwardTo ] + [-LockDuration ] [-MaxDeliveryCount ] [-Status ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusSubscription -InputObject [-AutoDeleteOnIdle ] + [-DeadLetteringOnFilterEvaluationException] [-DeadLetteringOnMessageExpiration] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-ForwardDeadLetteredMessagesTo ] [-ForwardTo ] + [-LockDuration ] [-MaxDeliveryCount ] [-Status ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sets a ServiceBus Topic + +## EXAMPLES + +### Example 1: Update a ServiceBus subscription +```powershell +Set-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 10) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : myResourceGroup +Status : Active +``` + +Updates `DefaultMessageTimeToLive` and `EnableBatchedOperations` ServiceBus subscription `mySubscription` under topic `myTopic`. + +### Example 1: Update a ServiceBus subscription using InputObject parameter set +```powershell +$subscription = Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription +Set-AzServiceBusSubscription -InputObject $subscription -DefaultMessageTimeToLive (New-TimeSpan -Days 10) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : myResourceGroup +Status : Active +``` + +Updates `DefaultMessageTimeToLive` and `EnableBatchedOperations` ServiceBus subscription `mySubscription` under topic `myTopic` using InputObject parameter set. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AutoDeleteOnIdle +ISO 8061 timeSpan idle interval after which the subscription is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnFilterEvaluationException +Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeadLetteringOnMessageExpiration +Value that indicates whether a subscription has dead letter support when a message expires. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +ISO 8601 default message timespan to live value. +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardDeadLetteredMessagesTo +Queue/Topic name to forward the Dead Letter message + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardTo +Queue/Topic name to forward the messages + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LockDuration +ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. +The maximum value for LockDuration is 5 minutes; the default value is 1 minute. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxDeliveryCount +The maximum delivery count. +A message is automatically deadlettered after this number of deliveries. +default value is 10. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: SubscriptionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Enumerates the possible values for the status of a messaging entity. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TopicName +The name of the Topic. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusTopic.md new file mode 100644 index 000000000000..9964ff481650 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusTopic.md @@ -0,0 +1,441 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/set-azservicebustopic +schema: 2.0.0 +--- + +# Set-AzServiceBusTopic + +## SYNOPSIS +Sets a ServiceBus Topic + +## SYNTAX + +### SetExpanded (Default) +``` +Set-AzServiceBusTopic -Name -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-AutoDeleteOnIdle ] [-DefaultMessageTimeToLive ] + [-DuplicateDetectionHistoryTimeWindow ] [-EnableBatchedOperations] [-EnableExpress] + [-MaxMessageSizeInKilobytes ] [-MaxSizeInMegabytes ] [-Status ] + [-SupportOrdering] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### SetViaIdentityExpanded +``` +Set-AzServiceBusTopic -InputObject [-AutoDeleteOnIdle ] + [-DefaultMessageTimeToLive ] [-DuplicateDetectionHistoryTimeWindow ] + [-EnableBatchedOperations] [-EnableExpress] [-MaxMessageSizeInKilobytes ] + [-MaxSizeInMegabytes ] [-Status ] [-SupportOrdering] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sets a ServiceBus Topic + +## EXAMPLES + +### Example 1: Updates a ServiceBus topic +```powershell +Set-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 20) -MaxMessageSizeInKilobytes 102400 +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 20.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 102400 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Updates a ServiceBus topic `myTopic` within namespace `myNamespace`. + +### Example 2: Updates a ServiceBus topic using InputObject parameter set +```powershell +$topic = Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic +Set-AzServiceBusTopic -InputObject $topic -DefaultMessageTimeToLive (New-TimeSpan -Days 20) -MaxMessageSizeInKilobytes 102400 +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 20.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 102400 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Updates a ServiceBus topic `myTopic` within namespace `myNamespace` using InputObject parameter set. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AutoDeleteOnIdle +ISO 8061 timeSpan idle interval after which the topic is automatically deleted. +The minimum duration is 5 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultMessageTimeToLive +ISO 8601 default message timespan to live value. +This is the duration after which the message expires, starting from when the message is sent to Service Bus. +This is the default value used when TimeToLive is not set on a message itself. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DuplicateDetectionHistoryTimeWindow +ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. +The default value is 10 minutes. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableBatchedOperations +Value that indicates whether server-side batched operations are enabled. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableExpress +A value that indicates whether Express Entities are enabled. +An express topic holds a message in memory temporarily before writing it to persistent storage. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: SetViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -MaxMessageSizeInKilobytes +Maximum size (in KB) of the message payload that can be accepted by the topic. +This property is only used in Premium today and default is 1024. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaxSizeInMegabytes +The maximum delivery count. +A message is automatically deadlettered after this number of deliveries. +default value is 10. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Topic. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: TopicName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Maximum size (in KB) of the message payload that can be accepted by the topic. +This property is only used in Premium today and default is 1024. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.EntityStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: SetExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportOrdering +Value that indicates whether the topic supports ordering. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity parameter. + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md new file mode 100644 index 000000000000..8d027d753caa --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md @@ -0,0 +1,221 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/start-azservicebusmigration +schema: 2.0.0 +--- + +# Start-AzServiceBusMigration + +## SYNOPSIS +Creates Migration configuration and starts migration of entities from Standard to Premium namespace + +## SYNTAX + +``` +Start-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-PostMigrationName ] [-TargetNamespace ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates Migration configuration and starts migration of entities from Standard to Premium namespace + +## EXAMPLES + +### Example 1: Start a Service Bus migration configuration +```powershell +Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myNamespace/migrationConfigurations/$default +Location : +MigrationState : Active +Name : myNamespace +PendingReplicationOperationsCount : +PostMigrationName : myStandardNamespace2 +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TargetNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myPremiumNamespace +``` + +Starts a Service Bus migration configuration that links standard namespace `myNamespace` to premium `mySecondaryNamespace`. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PostMigrationName +Name to access Standard Namespace after migration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetNamespace +Existing premium Namespace ARM Id name which has no entities, will be used for migration + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IMigrationConfigProperties + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Stop-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/docs/Stop-AzServiceBusMigration.md new file mode 100644 index 000000000000..d2cba19ae49a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Stop-AzServiceBusMigration.md @@ -0,0 +1,199 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/stop-azservicebusmigration +schema: 2.0.0 +--- + +# Stop-AzServiceBusMigration + +## SYNOPSIS +This operation reverts Migration + +## SYNTAX + +### Revert (Default) +``` +Stop-AzServiceBusMigration -NamespaceName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RevertViaIdentity +``` +Stop-AzServiceBusMigration -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation reverts Migration + +## EXAMPLES + +### Example 1: Aborts a ServiceBus migration +```powershell +Stop-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Aborts migration on standard namespace `myNamespace`. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity +Parameter Sets: RevertViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NamespaceName +The namespace name + +```yaml +Type: System.String +Parameter Sets: Revert +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the Resource group within the Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Revert +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials that uniquely identify a Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Revert +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IServiceBusIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +`INPUTOBJECT `: Identity Parameter + - `[Alias ]`: The Disaster Recovery configuration name + - `[AuthorizationRuleName ]`: The authorization rule name. + - `[ConfigName ]`: The configuration name. Should always be "$default". + - `[Id ]`: Resource identity path + - `[NamespaceName ]`: The namespace name + - `[PrivateEndpointConnectionName ]`: The PrivateEndpointConnection name + - `[QueueName ]`: The queue name. + - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. + - `[RuleName ]`: The rule name. + - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[SubscriptionName ]`: The subscription name. + - `[TopicName ]`: The topic name. + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Test-AzServiceBusName.md b/src/ServiceBus/ServiceBus.Autorest/docs/Test-AzServiceBusName.md new file mode 100644 index 000000000000..131f0d376bc8 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/docs/Test-AzServiceBusName.md @@ -0,0 +1,179 @@ +--- +external help file: +Module Name: Az.ServiceBus +online version: https://docs.microsoft.com/powershell/module/az.servicebus/test-azservicebusname +schema: 2.0.0 +--- + +# Test-AzServiceBusName + +## SYNOPSIS +Checks availability of a namespace name or disaster recovery alias. + +## SYNTAX + +### NamespaceAvailability (Default) +``` +Test-AzServiceBusName -NamespaceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [] +``` + +### AliasAvailability +``` +Test-AzServiceBusName -AliasName -NamespaceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] +``` + +## DESCRIPTION +Checks availability of a namespace name or disaster recovery alias. + +## EXAMPLES + +### Example 1: Check the availability of a ServiceBus namespace name +```powershell +Test-AzServiceBusName -NamespaceName myNamespace +``` + +```output +Message NameAvailable Reason +------- ------------- ------ +The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse +``` + +Checks the availability of namespace name `myNamespace`. + +### Example 2: Check the availability of a ServiceBus Geo Disaster Recovery Alias +```powershell +Test-AzServiceBusName -NamespaceName myNamespace -ResourceGroupName myResourceGroup -AliasName myAlias +``` + +```output +Message NameAvailable Reason +------- ------------- ------ +The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse +``` + +Checks the availability of alias name `myAlias` on namespace `myNamepace`. + +## PARAMETERS + +### -AliasName +The name of Disaster Recovery Config alias. + +```yaml +Type: System.String +Parameter Sets: AliasAvailability +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NamespaceName +The name of ServiceBus namespace + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource + +```yaml +Type: System.String +Parameter Sets: AliasAvailability +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ICheckNameAvailabilityResult + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Approve-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/examples/Approve-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..1920e690c252 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Approve-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,37 @@ +### Example 1: Approve a ServiceBus Namespace Private Endpoint Connection +```powershell +Approve-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointConnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/privateEndpointName +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Approves private endpoint connection `00000000000` on ServiceBus namespace `myNamespace`. + +### Example 2: Approve a ServiceBus Namespace Private Endpoint Connection using InputObject +```powershell +$privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +Approve-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/privateEndpointName +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Approves private endpoint connection `00000000000` on ServiceBus namespace `myNamespace` using InputObject parameter set. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Complete-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Complete-AzServiceBusMigration.md new file mode 100644 index 000000000000..0908193c5a30 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Complete-AzServiceBusMigration.md @@ -0,0 +1,7 @@ +### Example 1: Complete migration from standard to premium servicebus namespace +```powershell +Complete-AzServiceBusMigration -ResourceGroupName myResourceGroup myNamespace +``` + +Completes migration to premium namespace. Start-AzServiceBusMigration must be used to configure migration before completing it. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Deny-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/examples/Deny-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..7cc33d2cc975 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Deny-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,37 @@ +### Example 1: Rejects a ServiceBus Namespace Private Endpoint Connection +```powershell +Deny-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Rejected +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateEndpointConnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Rejects private endpoint connection `00000000000` on ServiceBus namespace `myNamespace`. + +### Example 2: Rejects a ServiceBus Namespace Private Endpoint Connection using InputObject +```powershell +$privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +Deny-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint +``` + +```output +ConnectionState : Rejected +Description : +Id : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.ServiceBus/namespaces/{namespace}/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Rejects private endpoint connection `00000000000` on ServiceBus namespace `myNamespace` using InputObject parameter set. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..9e3508a33207 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusAuthorizationRule.md @@ -0,0 +1,38 @@ +### Example 1: Get a ServiceBus Namespace Authorization Rule +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules + /myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Gets details of authorization rule `myAuthRule` of ServiceBus namespace `myNamespace`. + +### Example 2: Get a ServiceBus queue authorization rule +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName queue1 -Name myAuthRule +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/queue1/authorizationRules + /myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Gets details of authorization rule `myAuthRule` of ServiceBus queue `queue1` from namespace `myNamespace`. + +### Example 3: List all authorization rules in a ServiceBus namespace +```powershell +Get-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all authorization rules in ServiceBus namespace `myNamespace`. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..96f44fb9e6da --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,18 @@ +### Example 1: Get the disaster recovery configuration details of a ServiceBus namespace +```powershell +Get-AzServiceBusGeoDRConfiguration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAlias +``` + +```output +AlternateName : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/disasterRecoveryConfigs/myAlias +Location : +Name : myalias +PartnerNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +PendingReplicationOperationsCount : 0 +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +Role : Primary +``` + +Gets disaster recovery configuration details of alias `myAlias` created for namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusKey.md new file mode 100644 index 000000000000..bc10fe3ca0dd --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusKey.md @@ -0,0 +1,50 @@ +### Example 1: Get keys of a ServiceBus Namespace authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus namespace `myNamespace`. + +### Example 2: Get keys of a Queue authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName queue1 -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus queue `queue1` from namespace `myNamespace`. + +### Example 3: Get keys of a Topic authorization rule +```powershell +Get-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName topic1 -Name RootManageSharedAccessKey +``` + +```output +AliasPrimaryConnectionString : +AliasSecondaryConnectionString : +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : 000000000000 +PrimaryKey : 000000000000 +SecondaryConnectionString : {ConnectionString} +SecondaryKey : {ConnectionString} +``` + +Gets keys of authorization rule `RootManageSharedAccessKey` of ServiceBus topic `topic1` from namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusMigration.md new file mode 100644 index 000000000000..ea0bcf0c9be9 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusMigration.md @@ -0,0 +1,27 @@ +### Example 1: Gets the migration configuration of a ServiceBus namespace +```powershell +Get-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myNamespace/migrationConfigurations/$default +Location : +MigrationState : Active +Name : myNamespace +PendingReplicationOperationsCount : +PostMigrationName : myPremiumNamespace +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TargetNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myPremiumNamespace +``` + +Gets the details of migration configuration related to namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusNetworkRuleSet.md new file mode 100644 index 000000000000..8b7843385148 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusNetworkRuleSet.md @@ -0,0 +1,17 @@ +### Example 1: Gets the network rule set of a ServiceBus namespace +```powershell +Get-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +DefaultAction : Allow +IPRule : {} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/default +Location : Central US +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +VirtualNetworkRule : +``` + +Gets the network rule set of ServiceBus namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..45b6ce2b8dca --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,25 @@ +### Example 1: Get an ServiceBus Namespace Private Endpoint Connection +```powershell +Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +```output +ConnectionState : Approved +Description : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/privateEndpointC + onnections/00000000000 +Location : Australia East +Name : 00000000000 +PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +``` + +Gets details of private endpoint connection `00000000000` created under EventHub namespace `myNamespace`. + +### Example 2: List all private endpoint connections on an EventHub namespace +```powershell +Get-AzEventHubPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all private endpoint connections of EventHub namespace `myNamespace`. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateLink.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateLink.md new file mode 100644 index 000000000000..461de4f8af26 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusPrivateLink.md @@ -0,0 +1,15 @@ +### Example 1: Get private links associated with a ServiceBus namespace +```powershell +Get-AzServiceBusPrivateLink -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output +GroupId : namespace +Id : subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/privateLinkResources/namespace +Name : namespace +RequiredMember : {namespace} +RequiredZoneName : {privatelink.servicebus.windows.net} +Type : Microsoft.ServiceBus/namespaces/privateLinkResources +``` + +Gets private link resources available on ServiceBus namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusQueue.md new file mode 100644 index 000000000000..f8a84310e02d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusQueue.md @@ -0,0 +1,48 @@ +### Example 1: Get Details of a ServiceBus queue +```powershell +Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 8/8/2022 10:15:08 AM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10675199.02:48:05.4775807 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Disabled +``` + +Get the details of ServiceBus queue `myQueue` from namespace `myNamespace`. + +### Example 2: List all queues in a ServiceBus namespace +```powershell +Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all queues in ServiceBus namespace `myNamespace`. + + + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusRule.md new file mode 100644 index 000000000000..14e8a840c6a3 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusRule.md @@ -0,0 +1,36 @@ +### Example 1: Get details of a ServiceBus Rule +```powershell +Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name '$Default' -TopicName myTopic -SubscriptionName mySubscription +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/$Default +Label : +Location : westus +MessageId : +Name : $Default +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 1=1 +SqlFilterCompatibilityLevel : 20 +``` + +Gets the details of `$Default` rule from subscription `mySubscription` of topic `myTopic`. + +### Example 2: List all rules in a ServiceBus subscription +```powershell +Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription +``` + +Lists all rules in ServiceBus subscription `mySubscription`. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusSubscription.md new file mode 100644 index 000000000000..2bbe5aec4301 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusSubscription.md @@ -0,0 +1,46 @@ +### Example 1: Get details of the ServiceBus subscription +```powershell +Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name 'sub$$D' +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 1.00:03:04 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 6:17:32 AM +DeadLetteringOnFilterEvaluationException : False +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 14.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/damorg/providers/Microsoft.ServiceBus/namespaces/testlatestS + BMSI/topics/myTopic/subscriptions/sub$$D +IsClientAffine : True +IsDurable : True +IsShared : True +Location : westus +LockDuration : 00:00:30 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : sub$$D +RequiresSession : False +ResourceGroupName : damorg +Status : Active +``` + +Get details of subcription `sub$$D` from ServiceBus topic `myTopic`. + +### Example 2: List all subscriptions in a topic +```powershell +Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic +``` + +List all subscriptions in ServiceBus topic `myTopic`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusTopic.md new file mode 100644 index 000000000000..47b2e1298d6e --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Get-AzServiceBusTopic.md @@ -0,0 +1,36 @@ +### Example 1: Get the details of the ServiceBus topic +```powershell +Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic +``` + +```output +AccessedAt : 9/21/2022 2:30:14 PM +AutoDeleteOnIdle : 3.00:00:00 +CreatedAt : 9/7/2022 10:05:52 AM +DefaultMessageTimeToLive : 10675197.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +Name : a +RequiresDuplicateDetection : False +ResourceGroupName : damorg +SizeInByte : 0 +Status : Active +SubscriptionCount : 2 +SupportOrdering : True +``` + +Get the details of ServiceBus topic `myTopic` from namespace `myNamespace`. + +### Example 2: List all topics in a ServiceBus namespace +```powershell +Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Lists all topics in ServiceBus namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..47c74ceffdfc --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusAuthorizationRule.md @@ -0,0 +1,29 @@ +### Example 1: Create an authorization rule for a ServiceBus namespace +```powershell +New-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule -Rights @('Manage','Send','Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on namespace `myNamespace`. + +### Example 2: Create an authorization rule for a ServiceBus queue +```powershell +New-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on ServiceBus queue `myQueue` from namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..50223575d64d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,20 @@ +### Example 1: Create a disaster recovery Alias +```powershell +New-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +``` + +```output +AlternateName : +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPrimaryNamespace/disasterRecoveryCon + figs/myAlias +Location : +Name : myAlias +PartnerNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/mySecondaryNamespace +PendingReplicationOperationsCount : +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +Role : Primary +``` + +Creates a Disaster Recovery configuration which sets `mySecondaryNamespace` as secondary to `myPrimaryNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusIPRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusIPRuleConfig.md new file mode 100644 index 000000000000..d9a5b77fe74f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusIPRuleConfig.md @@ -0,0 +1,12 @@ +### Example 1: Constructs an INwRuleSetIPRules object +```powershell +New-AzServiceBusIPRuleConfig -IPMask 3.3.3.3 -Action Allow +``` + +```output +Action IPMask +------ ------ +Allow 1.1.1.1 +``` + +Please refer examples for Set-AzServiceBusNetworkRuleSet to know more. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusKey.md new file mode 100644 index 000000000000..50d19830e15f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusKey.md @@ -0,0 +1,30 @@ +### Example 1: Regenerate Primary Key of an ServiceBus Namespace +```powershell +New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name rootmanagesharedaccesskey -KeyType PrimaryKey +``` + +```output +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : {primaryConnectionString} +PrimaryKey : {primaryKey} +SecondaryConnectionString : {secondaryConnectionString} +SecondaryKey : {secondaryKey} +``` + +Regenerate primary key of authorization rule `rootmanagesharedaccesskey` on ServiceBus Namespace `myNamespace`. + +### Example 2: Regenerate Secondary Key of an ServiceBus queue +```powershell +New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name rootmanagesharedaccesskey -KeyType SecondaryKey +``` + +```output +KeyName : RootManageSharedAccessKey +PrimaryConnectionString : {primaryConnectionString} +PrimaryKey : {primaryKey} +SecondaryConnectionString : {secondaryConnectionString} +SecondaryKey : {secondaryKey} +``` + +Regenerate primary key of authorization rule `rootmanagesharedaccesskey` on ServiceBus queue `myQueue` on ServiceBus Namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusQueue.md new file mode 100644 index 000000000000..67d7c4bebf34 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusQueue.md @@ -0,0 +1,39 @@ +### Example 1: Create a new ServiceBus queue +```powershell +New-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 5) -EnablePartitioning +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 1.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 5.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Creates a ServiceBus queue `myQueue` in namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusRule.md new file mode 100644 index 000000000000..f92948ddbd52 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusRule.md @@ -0,0 +1,63 @@ +### Example 1: Create a Correlation Filter +```powershell +New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : contenttype +CorrelationFilterProperty : { + "c": "d", + "a": "b" + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : correlationid +FilterType : CorrelationFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/myCorrelationRule +Label : label +Location : westus +MessageId : messageid +Name : myCorrelationRule +ReplyTo : replyto +ReplyToSessionId : replytosessionid +ResourceGroupName : myResourceGroup +SessionId : sessionid +SqlExpression : +SqlFilterCompatibilityLevel : +``` + +Create a correlation filter `myCorrelationRule` in ServiceBus subscription `mySubscription`. + +### Example 2: Create a Sql Filter +```powershell +New-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name mySqlRule -FilterType SqlFilter -SqlExpression 3=2 -ActionSqlExpression "SET a=b" +``` + +```output +ActionCompatibilityLevel : 20 +ActionRequiresPreprocessing : +ActionSqlExpression : SET a=b +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/mySqlRule +Label : +Location : westus +MessageId : +Name : mySqlRule +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 3=2 +SqlFilterCompatibilityLevel : 20 +SqlFilterRequiresPreprocessing : +``` + +Create a sql filter `myRule` in ServiceBus subscription `mySubscription`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusSubscription.md new file mode 100644 index 000000000000..11c2fd0437d5 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusSubscription.md @@ -0,0 +1,39 @@ +### Example 1: Create a new ServiceBus subscription +```powershell +New-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 6) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 6.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/damorg/providers/Microsoft.ServiceBus/namespaces/testlatests + bmsi/topics/a/subscriptions/testsub +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : damorg +Status : Active +``` + +Creates a new ServiceBus subscription `mySubscription` under topic `myTopic`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusTopic.md new file mode 100644 index 000000000000..bb42bbaa8ee1 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusTopic.md @@ -0,0 +1,34 @@ +### Example 1: Creates a new ServiceBus topic +```powershell +New-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 18) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 18.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Creates a new ServiceBus topic `myTopic` within namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusVirtualNetworkRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusVirtualNetworkRuleConfig.md new file mode 100644 index 000000000000..1998c4e8ba34 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/New-AzServiceBusVirtualNetworkRuleConfig.md @@ -0,0 +1,13 @@ +### Example 1: Constructs an INwRuleSetVirtualNetworkRules object +```powershell +New-AzServiceBusVirtualNetworkRuleConfig -SubnetId /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default +``` + +```output +IgnoreMissingVnetServiceEndpoint SubnetId +-------------------------------- -------- + /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default + +``` + +Please refer examples for Set-AzServiceBusNetworkRuleSet to know more. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..0e4c41d670b4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusAuthorizationRule.md @@ -0,0 +1,13 @@ +### Example 1: Remove authorization rule from an a ServiceBus namespace +```powershell +Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule +``` + +Deletes authorization rule `myAuthRule` from EventHub namespace `myNamespace`. + +### Example 2: Remove authorization rule from a ServiceBus queue +```powershell +Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule +``` + +Deletes authorization rule `myAuthRule` from ServiceBus `myQueue` on namespace `myNamespace`. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusGeoDRConfiguration.md new file mode 100644 index 000000000000..dc3801529f32 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusGeoDRConfiguration.md @@ -0,0 +1,7 @@ +### Example 1: Remove Disaster Recovery Config from a ServiceBus namespace +```powershell +Remove-AzServiceBusGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace +``` + +Deletes alias `myAlias` from ServiceBus namespace `myPrimaryNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusMigration.md new file mode 100644 index 000000000000..0d8d870c6e15 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusMigration.md @@ -0,0 +1,7 @@ +### Example 1: Remove Standard to Premium migration configuration from a Standard namespace +```powershell +Remove-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +Removes migration configuration of namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusPrivateEndpointConnection.md new file mode 100644 index 000000000000..04972211b6b9 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusPrivateEndpointConnection.md @@ -0,0 +1,6 @@ +### Example 1: Remove a private endpoint connection from an ServiceBus namespace +```powershell +Remove-AzServiceBusPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000 +``` + +Deletes private endpoint connection `00000000000` from an ServiceBus namespace `myNamespace`. diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusQueue.md new file mode 100644 index 000000000000..454cf0f5d9af --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusQueue.md @@ -0,0 +1,7 @@ +### Example 1: Remove a queue from a ServiceBus namespace +```powershell +Remove-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +``` + +Deletes a ServiceBus queue `myQueue` from ServiceBus namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusRule.md new file mode 100644 index 000000000000..c49e71224e7a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusRule.md @@ -0,0 +1,7 @@ +### Example 1: Remove a rule from a ServiceBus subscription +```powershell +Remove-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myRule +``` + +Deletes a ServiceBus rule `myRule` from ServiceBus subscription `mySubscription`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusSubscription.md new file mode 100644 index 000000000000..7bf88f051658 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusSubscription.md @@ -0,0 +1,7 @@ +### Example 1: Remove a subscription from a ServiceBus topic +```powershell +Remove-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription +``` + +Deletes a ServiceBus subscription `mySubscription` from ServiceBus topic `myTopic`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusTopic.md new file mode 100644 index 000000000000..9a1e6e192163 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Remove-AzServiceBusTopic.md @@ -0,0 +1,7 @@ +### Example 1: Remove a topic from a ServiceBus namespace +```powershell +Remove-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic +``` + +Deletes a ServiceBus topic `myTopic` from ServiceBus namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusAuthorizationRule.md new file mode 100644 index 000000000000..0f935b94bd71 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusAuthorizationRule.md @@ -0,0 +1,31 @@ +### Example 1: Update an authorization rule for a ServiceBus namespace +```powershell +Set-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule -Rights @('Manage','Send','Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on namespace `myNamespace`. + +### Example 2: Update an authorization rule for a ServiceBus queue +```powershell +Set-AzServiceBusAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue/authorizationRules/myAuthRule +Location : Central US +Name : myAuthRule +ResourceGroupName : myResourceGroup +Rights : {Listen, Manage, Send} +``` + +Creates a new authorization rule `myAuthRule` on ServiceBus queue `myQueue` from namespace `myNamespace` + +. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationBreakPair.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationBreakPair.md new file mode 100644 index 000000000000..41c8c98622e6 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationBreakPair.md @@ -0,0 +1,7 @@ +### Example 1: Break Pairing between Primary and Secondary namespace +```powershell +Set-AzServiceBusGeoDRConfigurationBreakPair -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -Name myAlias +``` + +Break Pairing between primary namespace `myPrimaryNamespace` and it's secondary namespace. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationFailOver.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationFailOver.md new file mode 100644 index 000000000000..cf6d4665870c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusGeoDRConfigurationFailOver.md @@ -0,0 +1,7 @@ +### Example 1: Fail Over to secondary namespace of an alias +```powershell +Set-AzServiceBusGeoDRConfigurationFailOver -ResourceGroupName myResourceGroup -NamespaceName mySecondaryNamespace -Name myAlias +``` + +Fails over to `mySecondaryNamespace` which is secondary namespace of alias `myAlias`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusNetworkRuleSet.md new file mode 100644 index 000000000000..9ba520d54917 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusNetworkRuleSet.md @@ -0,0 +1,86 @@ +### Example 1: Add IP Rules and Virtual Network Rules to a Network Rule Set +```powershell +$ipRule1 = New-AzServiceBusIPRuleConfig -IPMask 2.2.2.2 -Action Allow +$ipRule2 = New-AzServiceBusIPRuleConfig -IPMask 3.3.3.3 -Action Allow +$virtualNetworkRule1 = New-AzServiceBusVirtualNetworkRuleConfig -SubnetId /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default +$networkRuleSet = Get-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace +$networkRuleSet.IPRule += $ipRule1 +$networkRuleSet.IPRule += $ipRule2 +$networkRuleSet.VirtualNetworkRule += $virtualNetworkRule1 +Set-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace -IPRule $ipRule1,$ipRule2 -VirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2,$virtualNetworkRule3 +``` + +```output +DefaultAction : Deny +IPRule : {{ + "ipMask": "1.1.1.1", + "action": "Allow" + }, { + "ipMask": "2.2.2.2", + "action": "Allow" + }, { + "ipMask": "3.3.3.3", + "action": "Allow" + }} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/ + default +Location : Australia East +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +TrustedServiceAccessEnabled : +Type : Microsoft.ServiceBus/Namespaces/NetworkRuleSets +VirtualNetworkRule : {{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default" + }, + "ignoreMissingVnetServiceEndpoint": false + },{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/mySubnet" + }, + "ignoreMissingVnetServiceEndpoint": false + }} +``` + +Appends virtual network rules and IPRules to the existing rules. + +### Example 2: Enable Trusted Service Access on a namespace +```powershell +Set-AzServiceBusNetworkRuleSet -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TrustedServiceAccessEnabled +``` + +```output +DefaultAction : Deny +IPRule : {{ + "ipMask": "1.1.1.1", + "action": "Allow" + }, { + "ipMask": "2.2.2.2", + "action": "Allow" + }, { + "ipMask": "3.3.3.3", + "action": "Allow" + }} +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/networkRuleSets/ + default +Location : Australia East +Name : default +PublicNetworkAccess : Enabled +ResourceGroupName : myResourceGroup +TrustedServiceAccessEnabled : True +Type : Microsoft.ServiceBus/Namespaces/NetworkRuleSets +VirtualNetworkRule : {{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default" + }, + "ignoreMissingVnetServiceEndpoint": false + },{ + "subnet": { + "id": "/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/mySubnet" + }, + "ignoreMissingVnetServiceEndpoint": false + }} +``` + +Enabled Trusted Service Access on the ServiceBus namespace `myNamespace`. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusQueue.md new file mode 100644 index 000000000000..84b2e4e8aa6a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusQueue.md @@ -0,0 +1,80 @@ +### Example 1: Update a ServiceBus queue +```powershell +Set-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -AutoDeleteOnIdle (New-TimeSpan -Days 4 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 9) +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 4.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 9.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Updates Parameters `DefaultMessageTimeToLive`, `AutoDeleteOnIdle` on a ServiceBus queue `myQueue` in namespace `myNamespace`. + +### Example 2: Update a ServiceBus queue using InputObject parameter set +```powershell +$queue = Get-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue +Set-AzServiceBusQueue -InputObject $queue -AutoDeleteOnIdle (New-TimeSpan -Days 4 -Minutes 3 -Seconds 4) -DefaultMessageTimeToLive (New-TimeSpan -Days 9) +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 4.00:03:04 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/22/2022 12:30:45 PM +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 9.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/queues/myQueue +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MaxMessageSizeInKilobytes : 1024 +MaxSizeInMegabytes : 1024 +MessageCount : 0 +Name : myQueue +RequiresDuplicateDetection : False +RequiresSession : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +``` + +Updates Parameters `DefaultMessageTimeToLive`, `AutoDeleteOnIdle` on a ServiceBus queue `myQueue` in namespace `myNamespace` using +InputObject parameter set. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusRule.md new file mode 100644 index 000000000000..ee6a635ffe79 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusRule.md @@ -0,0 +1,64 @@ +### Example 1: Update a Correlation Filter +```powershell +Set-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name myCorrelationRule -ContentType updatedContentType -ReplyToSessionId updatedReplyToSessionId +``` + +```output +ActionCompatibilityLevel : +ActionRequiresPreprocessing : +ActionSqlExpression : +ContentType : updatedContentType +CorrelationFilterProperty : { + "c": "d", + "a": "b" + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : correlationid +FilterType : CorrelationFilter +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/myCorrelationRule +Label : label +Location : westus +MessageId : messageid +Name : myCorrelationRule +ReplyTo : replyto +ReplyToSessionId : updatedReplyToSessionId +ResourceGroupName : myResourceGroup +SessionId : sessionid +SqlExpression : +SqlFilterCompatibilityLevel : +``` + +Update `ContentType` and `ReplyToSessionId` parameters of a correlation filter `myCorrelationRule` in ServiceBus subscription `mySubscription`. + +### Example 2: Update an Sql Filter using InputObject parameter set +```powershell +$rule = Get-AzServiceBusRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -SubscriptionName mySubscription -Name mySqlRule +Set-AzServiceBusRule -InputObject $rule -SqlExpression 5=3 +``` + +```output +ActionCompatibilityLevel : 20 +ActionRequiresPreprocessing : +ActionSqlExpression : SET a=b +ContentType : +CorrelationFilterProperty : { + } +CorrelationFilterRequiresPreprocessing : +CorrelationId : +FilterType : SqlFilter +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription/rules/mySqlRule +Label : +Location : westus +MessageId : +Name : mySqlRule +ReplyTo : +ReplyToSessionId : +ResourceGroupName : myResourceGroup +SessionId : +SqlExpression : 5=3 +SqlFilterCompatibilityLevel : 20 +SqlFilterRequiresPreprocessing : +``` + +Updating SqlExpression of SqlFilter `mySqlRule` using InputObject parameter set. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusSubscription.md new file mode 100644 index 000000000000..d36e64690262 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusSubscription.md @@ -0,0 +1,76 @@ +### Example 1: Update a ServiceBus subscription +```powershell +Set-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription -DefaultMessageTimeToLive (New-TimeSpan -Days 10) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : myResourceGroup +Status : Active +``` + +Updates `DefaultMessageTimeToLive` and `EnableBatchedOperations` ServiceBus subscription `mySubscription` under topic `myTopic`. + +### Example 1: Update a ServiceBus subscription using InputObject parameter set +```powershell +$subscription = Get-AzServiceBusSubscription -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name mySubscription +Set-AzServiceBusSubscription -InputObject $subscription -DefaultMessageTimeToLive (New-TimeSpan -Days 10) -EnableBatchedOperations +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +ClientId : +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 9/23/2022 2:37:46 PM +DeadLetteringOnFilterEvaluationException : True +DeadLetteringOnMessageExpiration : False +DefaultMessageTimeToLive : 10.00:00:00 +DuplicateDetectionHistoryTimeWindow : +EnableBatchedOperations : True +ForwardDeadLetteredMessagesTo : +ForwardTo : +Id : /subscriptions/000000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic/subscriptions/mySubscription +IsClientAffine : False +IsDurable : +IsShared : +Location : westus +LockDuration : 00:01:00 +MaxDeliveryCount : 10 +MessageCount : 0 +Name : testsub +RequiresSession : False +ResourceGroupName : myResourceGroup +Status : Active +``` + +Updates `DefaultMessageTimeToLive` and `EnableBatchedOperations` ServiceBus subscription `mySubscription` under topic `myTopic` using InputObject parameter set. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusTopic.md new file mode 100644 index 000000000000..617e9df9d861 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Set-AzServiceBusTopic.md @@ -0,0 +1,69 @@ +### Example 1: Updates a ServiceBus topic +```powershell +Set-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic -DefaultMessageTimeToLive (New-TimeSpan -Days 20) -MaxMessageSizeInKilobytes 102400 +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 20.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 102400 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Updates a ServiceBus topic `myTopic` within namespace `myNamespace`. + +### Example 2: Updates a ServiceBus topic using InputObject parameter set +```powershell +$topic = Get-AzServiceBusTopic -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myTopic +Set-AzServiceBusTopic -InputObject $topic -DefaultMessageTimeToLive (New-TimeSpan -Days 20) -MaxMessageSizeInKilobytes 102400 +``` + +```output +AccessedAt : 1/1/0001 12:00:00 AM +AutoDeleteOnIdle : 10675199.02:48:05.4775807 +CountDetailActiveMessageCount : 0 +CountDetailDeadLetterMessageCount : 0 +CountDetailScheduledMessageCount : 0 +CountDetailTransferDeadLetterMessageCount : 0 +CountDetailTransferMessageCount : 0 +CreatedAt : 1/1/0001 12:00:00 AM +DefaultMessageTimeToLive : 20.00:00:00 +DuplicateDetectionHistoryTimeWindow : 00:10:00 +EnableBatchedOperations : True +EnableExpress : False +EnablePartitioning : False +Id : /subscriptions/000000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace/topics/myTopic +Location : westus +MaxMessageSizeInKilobytes : 102400 +MaxSizeInMegabytes : 1024 +Name : myTopic +RequiresDuplicateDetection : False +ResourceGroupName : myResourceGroup +SizeInByte : 0 +Status : Active +SubscriptionCount : 0 +SupportOrdering : True +``` + +Updates a ServiceBus topic `myTopic` within namespace `myNamespace` using InputObject parameter set. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Start-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Start-AzServiceBusMigration.md new file mode 100644 index 000000000000..531a578f2fa5 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Start-AzServiceBusMigration.md @@ -0,0 +1,27 @@ +### Example 1: Start a Service Bus migration configuration +```powershell +Start-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace -PostMigrationName myStandardNamespace2 -TargetNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myPremiumNamespace +``` + +```output +Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myNamespace/migrationConfigurations/$default +Location : +MigrationState : Active +Name : myNamespace +PendingReplicationOperationsCount : +PostMigrationName : myStandardNamespace2 +ProvisioningState : Succeeded +ResourceGroupName : myResourceGroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TargetNamespace : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces + /myPremiumNamespace +``` + +Starts a Service Bus migration configuration that links standard namespace `myNamespace` to premium `mySecondaryNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Stop-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/examples/Stop-AzServiceBusMigration.md new file mode 100644 index 000000000000..1fc671750ad8 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Stop-AzServiceBusMigration.md @@ -0,0 +1,11 @@ +### Example 1: Aborts a ServiceBus migration +```powershell +Stop-AzServiceBusMigration -ResourceGroupName myResourceGroup -NamespaceName myNamespace +``` + +```output + +``` + +Aborts migration on standard namespace `myNamespace`. + diff --git a/src/ServiceBus/ServiceBus.Autorest/examples/Test-AzServiceBusName.md b/src/ServiceBus/ServiceBus.Autorest/examples/Test-AzServiceBusName.md new file mode 100644 index 000000000000..3444cccc096a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/examples/Test-AzServiceBusName.md @@ -0,0 +1,25 @@ +### Example 1: Check the availability of a ServiceBus namespace name +```powershell +Test-AzServiceBusName -NamespaceName myNamespace +``` + +```output +Message NameAvailable Reason +------- ------------- ------ +The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse +``` + +Checks the availability of namespace name `myNamespace`. + +### Example 2: Check the availability of a ServiceBus Geo Disaster Recovery Alias +```powershell +Test-AzServiceBusName -NamespaceName myNamespace -ResourceGroupName myResourceGroup -AliasName myAlias +``` + +```output +Message NameAvailable Reason +------- ------------- ------ +The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse +``` + +Checks the availability of alias name `myAlias` on namespace `myNamepace`. diff --git a/src/ServiceBus/ServiceBus.Autorest/how-to.md b/src/ServiceBus/ServiceBus.Autorest/how-to.md new file mode 100644 index 000000000000..6cb0e1edfd31 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/how-to.md @@ -0,0 +1,58 @@ +# How-To +This document describes how to develop for `Az.ServiceBus`. + +## Building `Az.ServiceBus` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [README.md](custom/README.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder. + +## Testing `Az.ServiceBus` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. + +## Packing `Az.ServiceBus` +To pack `Az.ServiceBus` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.ServiceBus`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.ServiceBus.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.ServiceBus.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.ServiceBus`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.ServiceBus` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/license.txt b/src/ServiceBus/ServiceBus.Autorest/license.txt new file mode 100644 index 000000000000..b9f3180fb9af --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/license.txt @@ -0,0 +1,227 @@ +MICROSOFT SOFTWARE LICENSE TERMS + +MICROSOFT AZURE POWERSHELL + +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. + +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. + + +-----------------START OF LICENSE-------------------------- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +-------------------END OF LICENSE------------------------------------------ + + +----------------START OF THIRD PARTY NOTICE-------------------------------- + + +The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software. + +Provided for Informational Purposes Only + +AutoMapper + +The MIT License (MIT) +Copyright (c) 2010 Jimmy Bogard + + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + + + + +*************** + +The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software. + +Newtonsoft.Json + +The MIT License (MIT) +Copyright (c) 2007 James Newton-King +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------END OF THIRD PARTY NOTICE---------------------------------------- + diff --git a/src/ServiceBus/ServiceBus.Autorest/resources/README.md b/src/ServiceBus/ServiceBus.Autorest/resources/README.md new file mode 100644 index 000000000000..736492341e3d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Recording.json new file mode 100644 index 000000000000..845c3adb31f6 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Recording.json @@ -0,0 +1,540 @@ +{ + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "017b4109-6d7a-4f77-949c-b5a9ad359f41" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d1353f8e-bc54-49d7-824a-e8bd7e218879_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "6d02c791-a2a9-4635-bdd3-324c9331ab19" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074926Z:6d02c791-a2a9-4635-bdd3-324c9331ab19" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1407" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"Hello\"},\"groupIds\":[\"namespace\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"Hello\"},\"groupIds\":[\"namespace\"]}}]}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "6e8d1713-68de-43f1-a9ae-4fd0ee455a9b" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cee847bd-6026-4f8f-84c9-0815d34da5f1_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "c0ccd2b7-0b38-4543-aadc-d04a5c296ecc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074927Z:c0ccd2b7-0b38-4543-aadc-d04a5c296ecc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "697" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"Hello\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"privateEndpoint\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"\n },\n \"privateLinkServiceConnectionState\": {\n \"status\": \"Approved\",\n \"description\": \"\"\n },\n \"provisioningState\": \"Succeeded\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "360" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "44fc76f9-1d2d-4fcc-adfb-abc6c64ececb_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview\u0026operationType=Update" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "c72dea3f-6473-4d8c-b65c-c4cc7f1ca3f8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074928Z:c72dea3f-6473-4d8c-b65c-c4cc7f1ca3f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "692" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "a118d146-957a-44a4-85d0-90a4d4419b1f" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c09aa555-8250-4a51-8935-c9467b907d43_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "5c08acec-d89b-4e8a-9d9f-339e6fbda4b1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074929Z:5c08acec-d89b-4e8a-9d9f-339e6fbda4b1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "692" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "61729f9e-ab3e-4b69-aebb-eee3439636e3" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "27aa3961-a095-4ae8-ab0d-767a30561205_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "b2458d74-6ee9-4616-968e-45ed6fca2585" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074940Z:b2458d74-6ee9-4616-968e-45ed6fca2585" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "692" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "a439c6d5-9531-4e34-a024-23953472fbdd" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6800ecff-cbf8-4f99-aa64-d09623dce387_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "1a91ca77-1d90-4d53-9c47-009af745c5f8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T074950Z:1a91ca77-1d90-4d53-9c47-009af745c5f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:49:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "693" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "b18819c2-6c7f-4e9c-bd76-4dce9dace50b" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ec9e136-044d-4d58-8cf2-e18c0ad950cb_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "33a5470d-754d-4da1-b004-86a8127740f8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075002Z:33a5470d-754d-4da1-b004-86a8127740f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "697" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"Hello\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "d898c50b-90b0-425d-8a52-64b368d7995c" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "61f51511-0990-4ad1-84d3-247797c0ba68_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "706a4229-4095-4fd2-8125-140d06e41a55" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075003Z:706a4229-4095-4fd2-8125-140d06e41a55" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "697" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"Hello\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"privateEndpoint\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"\n },\n \"privateLinkServiceConnectionState\": {\n \"status\": \"Approved\",\n \"description\": \"Bye\"\n },\n \"provisioningState\": \"Succeeded\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "363" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2b7002bc-d6fc-4f37-8f56-9b349f7c9911_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview\u0026operationType=Update" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "1f2a61a4-4b58-49f6-955f-bff706df31a1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075004Z:1f2a61a4-4b58-49f6-955f-bff706df31a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "d3c18b63-1379-4427-8b11-90146d5f6d8c" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b5781cbe-6855-4936-9e7b-6f834b9396cf_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "2afeeecb-73d1-4dc1-9794-375dfac5709c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075004Z:2afeeecb-73d1-4dc1-9794-375dfac5709c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "fcfc7b7f-d736-489e-97a4-7accf6889a19" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "39675ced-ec93-44a2-8e00-42b2089cdaae_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "5df7c6bd-4071-47a3-8cfd-0c67e645a186" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075015Z:5df7c6bd-4071-47a3-8cfd-0c67e645a186" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "045f55bb-1409-4b95-931b-d20e2b5fd5b9" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "54220dfe-29e0-450b-ad8f-bbde5846a7ee_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "a4d1fe9f-5caf-4bab-a349-bd4b3e2ec1e2" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075026Z:a4d1fe9f-5caf-4bab-a349-bd4b3e2ec1e2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Approve-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "0951bea2-d22f-46fb-aea0-54efbb644496" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "bc066048-9eae-4e54-a028-f6734b195ecc_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "50882c17-08ac-4b96-9af3-6de94ba105ca" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075036Z:50882c17-08ac-4b96-9af3-6de94ba105ca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:50:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Tests.ps1 new file mode 100644 index 000000000000..ff31cb0622bb --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Approve-AzServiceBusPrivateEndpointConnection.Tests.ps1 @@ -0,0 +1,46 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Approve-AzServiceBusPrivateEndpointConnection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Approve-AzServiceBusPrivateEndpointConnection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Approve-AzServiceBusPrivateEndpointConnection' { + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + + It 'SetExpanded' { + $privateEndpoint[0].ConnectionState | Should -Be "Pending" + $privateEndpoint[0].Description | Should -Be "Hello" + + $firstPrivateEndpoint = Approve-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $privateEndpoint[0].Name + $firstPrivateEndpoint.ConnectionState | Should -Be "Approved" + $firstPrivateEndpoint.Description | Should -Be "" + + while($firstPrivateEndpoint.ProvisioningState -ne "Succeeded"){ + $firstPrivateEndpoint = Get-AzServiceBusPrivateEndpointConnection -Name $privateEndpoint[0].Name -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + Start-Sleep 10 + } + } + + It 'SetViaIdentityExpanded' { + $secondPrivateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $privateEndpoint[1].Name + + $secondPrivateEndpoint = Approve-AzServiceBusPrivateEndpointConnection -InputObject $secondPrivateEndpoint -Description "Bye" + $secondPrivateEndpoint.ConnectionState | Should -Be "Approved" + $secondPrivateEndpoint.Description | Should -Be "Bye" + + while($secondPrivateEndpoint.ProvisioningState -ne "Succeeded"){ + $secondPrivateEndpoint = Get-AzServiceBusPrivateEndpointConnection -Name $privateEndpoint[1].Name -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + Start-Sleep 10 + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Complete-AzServiceBusMigration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Complete-AzServiceBusMigration.Tests.ps1 new file mode 100644 index 000000000000..edaf8b1b74f0 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Complete-AzServiceBusMigration.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Complete-AzServiceBusMigration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Complete-AzServiceBusMigration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Complete-AzServiceBusMigration' { + It 'Complete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CompleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Recording.json new file mode 100644 index 000000000000..e38b026416ea --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Recording.json @@ -0,0 +1,246 @@ +{ + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "c6dde1a8-e589-4e22-9134-9e4d4b5469a9" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "dbf8bc0d-6084-482d-a75f-56f206cebe52_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "bc4f3773-fb52-4412-8ceb-bff5d3dfae10" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075114Z:bc4f3773-fb52-4412-8ceb-bff5d3dfae10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1402" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}]}", + "isContentBase64": false + } + }, + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "39c07156-26fe-419b-bdec-9755845b25dd" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "79dce648-e407-43dc-b420-76259d60005b_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "13833cc5-9c9d-4977-b68f-4eedf0c873c3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075115Z:13833cc5-9c9d-4977-b68f-4eedf0c873c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "693" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"privateEndpoint\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"\n },\n \"privateLinkServiceConnectionState\": {\n \"status\": \"Rejected\",\n \"description\": \"\"\n },\n \"provisioningState\": \"Succeeded\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "360" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4307b72a-7e95-4cf5-9757-7bcfd539e756_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview\u0026operationType=Update" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "280ec7b9-cf16-47b6-b7dd-ca5546c81637" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075115Z:280ec7b9-cf16-47b6-b7dd-ca5546c81637" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "692" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "0f18c000-02c2-4dee-a87e-78c95a4c7d54" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cb948663-d709-4baf-b986-f94ad4df96de_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "5a19a6f3-7903-4e73-84b7-2b0c83d64596" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075116Z:5a19a6f3-7903-4e73-84b7-2b0c83d64596" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "d281fef5-e7b0-4269-9669-9ac470a83fce" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d13c4022-a209-494b-9457-21da416e3715_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "f2103fa1-8a4e-4591-9da7-85e3521d6b1b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075116Z:f2103fa1-8a4e-4591-9da7-85e3521d6b1b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Deny-AzServiceBusPrivateEndpointConnection+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"privateEndpoint\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"\n },\n \"privateLinkServiceConnectionState\": {\n \"status\": \"Rejected\",\n \"description\": \"Bye\"\n },\n \"provisioningState\": \"Succeeded\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "363" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c228c25c-6cfa-4bef-9f74-ecdeb844dc1b_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview\u0026operationType=Update" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "e5d63566-1d36-4892-83f0-d839829ecfa3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075117Z:e5d63566-1d36-4892-83f0-d839829ecfa3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Tests.ps1 new file mode 100644 index 000000000000..90019b954f49 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Deny-AzServiceBusPrivateEndpointConnection.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Deny-AzServiceBusPrivateEndpointConnection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Deny-AzServiceBusPrivateEndpointConnection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Deny-AzServiceBusPrivateEndpointConnection' { + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + + It 'SetExpanded' { + $privateEndpoint[0].ConnectionState | Should -Be "Approved" + $privateEndpoint[0].Description | Should -Be "" + + $firstPrivateEndpoint = Deny-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $privateEndpoint[0].Name + $firstPrivateEndpoint.ConnectionState | Should -Be "Rejected" + $firstPrivateEndpoint.Description | Should -Be "" + } + + It 'SetViaIdentityExpanded' { + $secondPrivateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $privateEndpoint[1].Name + + $secondPrivateEndpoint = Deny-AzServiceBusPrivateEndpointConnection -InputObject $secondPrivateEndpoint -Description "Bye" + $secondPrivateEndpoint.ConnectionState | Should -Be "Rejected" + $secondPrivateEndpoint.Description | Should -Be "Bye" + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Recording.json new file mode 100644 index 000000000000..033614781d78 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Recording.json @@ -0,0 +1,380 @@ +{ + "Get-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "e5319168-9024-4de1-8835-eb35328b7f6e" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0712c5a4-e540-411b-9a49-7fdd95cd0673_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "24e202f6-245b-4cde-92a5-c00b0ea2b95f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075132Z:24e202f6-245b-4cde-92a5-c00b0ea2b95f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "6d09daf2-06b5-4689-ae56-4f0d1b7f4a9c" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "973a3874-3344-47c4-9f62-f2c7a402bd66_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "02a17ff8-8a3e-4be9-826d-2c5d56782fb5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075134Z:02a17ff8-8a3e-4be9-826d-2c5d56782fb5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "7763e074-1981-4c60-a4e5-8a2c3b0595a5" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "14b04abd-bf44-4c4e-8ea5-8e5ede6e26e7_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "90621e87-40da-4bd4-bd2e-f73fd8b591d9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075135Z:90621e87-40da-4bd4-bd2e-f73fd8b591d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetExpandedNamespace+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "517bc038-d393-48cb-8cd6-427ad57a82ba" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a4e332c6-fe37-4bcc-8141-c440ccefdc9f_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "b73ef7a9-9710-4ef6-94ae-5445c06a82ea" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075136Z:b73ef7a9-9710-4ef6-94ae-5445c06a82ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1114" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2\",\"name\":\"namespaceAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetExpandedQueue+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "53347e49-a9d7-4c1e-95cf-c0cdd00af2af" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "32ff6c8a-372a-4102-9ece-aaa287d7d21b_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "ee4bd018-32fc-4229-9c2a-848b02685a6d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075137Z:ee4bd018-32fc-4229-9c2a-848b02685a6d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "775" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2\",\"name\":\"queueAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetExpandedTopic+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "b2664bb7-926f-4a67-a229-962761e17602" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a5059f2c-270c-49f5-99be-c610ca1f7b17_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "ef704bf6-e5fa-4dbe-991c-bdc4124c7e37" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075138Z:ef704bf6-e5fa-4dbe-991c-bdc4124c7e37" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "759" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2\",\"name\":\"topicAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "09ecea11-e42c-4712-8729-47e9ced631fe" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f177e949-0992-4f29-a9db-ef83d2f48355_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "667889ac-dea3-4fc2-86b7-52a8c66a90bc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075139Z:667889ac-dea3-4fc2-86b7-52a8c66a90bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "2456e4e7-a88e-4f4f-b146-5786ef8fc256" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f47ccfea-a3d1-4dd3-b9bc-f230273e3b96_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "da2f2d02-7296-4c40-9dd7-155583fb5aeb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075140Z:da2f2d02-7296-4c40-9dd7-155583fb5aeb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusAuthorizationRule+[NoContext]+GetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "5e1ad530-773c-45c2-a4a4-73d966119485" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1a379290-5eb6-460a-ad8a-c1f35886420b_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "594ee293-ed22-4ebb-874a-a6f01555bb43" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075141Z:594ee293-ed22-4ebb-874a-a6f01555bb43" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:51:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Tests.ps1 new file mode 100644 index 000000000000..ac2e118cce57 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusAuthorizationRule.Tests.ps1 @@ -0,0 +1,65 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusAuthorizationRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusAuthorizationRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusAuthorizationRule' { + $namespaceAuthRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 + $queueAuthRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 + $topicAuthRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 + + It 'GetExpandedNamespace' { + $namespaceAuthRule.Name | Should -Be "namespaceAuthRule1" + $namespaceAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $namespaceAuthRule.Rights.Count | Should -Be 3 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfAuthRules.Count | Should -Be 3 + } + + It 'GetExpandedQueue' { + $queueAuthRule.Name | Should -Be "queueAuthRule1" + $queueAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $queueAuthRule.Rights.Count | Should -Be 3 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 + $listOfAuthRules.Count | Should -Be 2 + } + + It 'GetExpandedTopic' { + $topicAuthRule.Name | Should -Be "topicAuthRule1" + $topicAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $topicAuthRule.Rights.Count | Should -Be 3 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $listOfAuthRules.Count | Should -Be 2 + } + + It 'GetViaIdentityExpanded' { + $namespaceAuthRule = Get-AzServiceBusAuthorizationRule -InputObject $namespaceAuthRule + $namespaceAuthRule.Name | Should -Be "namespaceAuthRule1" + $namespaceAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $namespaceAuthRule.Rights.Count | Should -Be 3 + + $queueAuthRule = Get-AzServiceBusAuthorizationRule -InputObject $queueAuthRule + $queueAuthRule.Name | Should -Be "queueAuthRule1" + $queueAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $queueAuthRule.Rights.Count | Should -Be 3 + + $topicAuthRule = Get-AzServiceBusAuthorizationRule -InputObject $topicAuthRule + $topicAuthRule.Name | Should -Be "topicAuthRule1" + $topicAuthRule.ResourceGroupName | Should -Be $env.resourceGroup + $topicAuthRule.Rights.Count | Should -Be 3 + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusGeoDRConfiguration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusGeoDRConfiguration.Tests.ps1 new file mode 100644 index 000000000000..78458a8b2edd --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusGeoDRConfiguration.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusGeoDRConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusGeoDRConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusGeoDRConfiguration' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Recording.json new file mode 100644 index 000000000000..dce11f89035b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Recording.json @@ -0,0 +1,128 @@ +{ + "Get-AzServiceBusKey+[NoContext]+GetExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/listKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/listKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "a49f48f5-c54e-499f-a58d-9058e322a781" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceKey_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8074aa24-eb31-46f3-b0e3-6045aa1c1975_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "ac81875d-9533-4037-97ae-ad7264e8de88" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075209Z:ac81875d-9533-4037-97ae-ad7264e8de88" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=IOEZlRBcKKzczkr8iH0Wu2NtW6L8bYcI+7Xxkb/zaX0=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"primaryKey\":\"IOEZlRBcKKzczkr8iH0Wu2NtW6L8bYcI+7Xxkb/zaX0=\",\"secondaryKey\":\"tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "Get-AzServiceBusKey+[NoContext]+GetExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/ListKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/ListKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "a71fec9b-eee2-4ead-b851-6b92b51b69fd" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueKey_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fcb2635a-4ed9-424f-9fdd-ef672f35f5d4_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "2f146006-a909-4e0d-9f37-0fe87be00e1b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075210Z:2f146006-a909-4e0d-9f37-0fe87be00e1b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=dyHbF4QOY1FIkwi0c9nV+YYznweHX1T6Ho1bxJ5Voec=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=;EntityPath=queue1\",\"primaryKey\":\"dyHbF4QOY1FIkwi0c9nV+YYznweHX1T6Ho1bxJ5Voec=\",\"secondaryKey\":\"/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "Get-AzServiceBusKey+[NoContext]+GetExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/ListKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/ListKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "63678c5d-2c5f-400f-a8fb-7d326ee51a77" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicKey_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e983dcb9-b736-4a52-885a-30ee8bf88b70_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "62ada2bf-5a7c-45e5-bc14-1e4614003708" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075211Z:62ada2bf-5a7c-45e5-bc14-1e4614003708" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=5cEAxs/oi94+1rRaMx0aw2XOApVHQYh6TdkDyPu6Hbc=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=;EntityPath=topic1\",\"primaryKey\":\"5cEAxs/oi94+1rRaMx0aw2XOApVHQYh6TdkDyPu6Hbc=\",\"secondaryKey\":\"78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Tests.ps1 new file mode 100644 index 000000000000..a1679414064a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusKey.Tests.ps1 @@ -0,0 +1,35 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusKey')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusKey.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusKey' { + It 'GetExpandedNamespace' { + $namespaceKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 + $namespaceKeys.PrimaryKey | Should -Not -Be $null + $namespaceKeys.SecondaryKey | Should -Not -Be $null + } + + It 'GetExpandedQueue' { + $queueKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 + $queueKeys.PrimaryKey | Should -Not -Be $null + $queueKeys.SecondaryKey | Should -Not -Be $null + } + + It 'GetExpandedTopic' { + $topicKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 + $topicKeys.PrimaryKey | Should -Not -Be $null + $topicKeys.SecondaryKey | Should -Not -Be $null + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusMigration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusMigration.Tests.ps1 new file mode 100644 index 000000000000..a5d51baa6300 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusMigration.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusMigration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusMigration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusMigration' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Recording.json new file mode 100644 index 000000000000..b7535ae0aa5e --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Recording.json @@ -0,0 +1,44 @@ +{ + "Get-AzServiceBusNetworkRuleSet+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "21be2098-3bd3-4ba7-9049-efd31b03e7f1" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ba195fb2-4057-448a-bb7d-03bdcb76f540_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "471190c0-30c4-4b44-b304-414fa31613d0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075239Z:471190c0-30c4-4b44-b304-414fa31613d0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "398" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Allow\",\"virtualNetworkRules\":[],\"ipRules\":[]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Tests.ps1 new file mode 100644 index 000000000000..20b4d009b630 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusNetworkRuleSet.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusNetworkRuleSet')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusNetworkRuleSet.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusNetworkRuleSet' { + It 'Get' { + $networkRuleSet = Get-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $networkRuleSet.PublicNetworkAccess | Should -Be "Enabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $null + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 0 + $networkRuleSet.IPRule.Count | Should -Be 0 + } + + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Recording.json new file mode 100644 index 000000000000..7a4c7c0bf638 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Recording.json @@ -0,0 +1,170 @@ +{ + "Get-AzServiceBusPrivateEndpointConnection+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "503dddb0-8845-447a-9df9-58ba27965d82" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a0b05017-ba0b-4176-9aba-c65c564d8945_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "c001167e-5163-4acd-800d-93ff8128cb22" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075253Z:c001167e-5163-4acd-800d-93ff8128cb22" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1402" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusPrivateEndpointConnection+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "2b801d4d-794e-411a-86a8-57efbff5ea55" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "964d027c-8958-462d-a3ef-18157c0744ce_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "53efe9cb-64b1-473e-b330-151bc5297e3a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075254Z:53efe9cb-64b1-473e-b330-151bc5297e3a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "693" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusPrivateEndpointConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "2eede028-75d2-45f4-88da-b1774c2f414c" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3a3ed097-afbd-4318-b778-cf23c00c8c4f_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "9c2578e2-b546-4e08-aef7-9809507ff087" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075255Z:9c2578e2-b546-4e08-aef7-9809507ff087" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusPrivateEndpointConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "a0123984-ecfc-47e8-abbb-7f034fd863ce" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ca9bae00-03ae-4c9b-954b-a5963a23d355_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "f2b1242c-7b97-4623-9a3c-ce1a5cd46699" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075256Z:f2b1242c-7b97-4623-9a3c-ce1a5cd46699" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:52:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Tests.ps1 new file mode 100644 index 000000000000..f5fcc0784768 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateEndpointConnection.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusPrivateEndpointConnection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusPrivateEndpointConnection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusPrivateEndpointConnection' { + $listOfPrivateEndpoints = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + + It 'List' { + $listOfPrivateEndpoints.Count | Should -Be 2 + } + + It 'Get' { + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $listOfPrivateEndpoints[0].Name + $privateEndpoint.ConnectionState | Should -Be "Rejected" + $privateEndpoint.Description | Should -Be "" + } + + It 'GetViaIdentity' { + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $listOfPrivateEndpoints[1].Name + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint + $privateEndpoint.ConnectionState | Should -Be "Rejected" + $privateEndpoint.Description | Should -Be "Bye" + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Recording.json new file mode 100644 index 000000000000..dc058c11e95f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Recording.json @@ -0,0 +1,44 @@ +{ + "Get-AzServiceBusPrivateLink+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateLinkResources?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateLinkResources?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "e8a627da-0ebf-4d37-ad62-5d280103dcc1" ], + "CommandName": [ "Get-AzServiceBusPrivateLink" ], + "FullCommandName": [ "Get-AzServiceBusPrivateLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "33478b4b-5d40-4b1b-87ea-c017be62174b_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "6acd8c31-e372-4a2d-8886-7c339e8277af" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075308Z:6acd8c31-e372-4a2d-8886-7c339e8277af" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "416" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateLinkResources/namespace\",\"name\":\"namespace\",\"type\":\"Microsoft.ServiceBus/namespaces/privateLinkResources\",\"properties\":{\"groupId\":\"namespace\",\"requiredMembers\":[\"namespace\"],\"requiredZoneNames\":[\"privatelink.servicebus.windows.net\"]}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Tests.ps1 new file mode 100644 index 000000000000..3ea0ac024b08 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusPrivateLink.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusPrivateLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusPrivateLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusPrivateLink' { + It 'Get' { + $privateLink = Get-AzServiceBusPrivateLink -NamespaceName $env.namespace -ResourceGroupName $env.resourceGroup + $privateLink.Name | Should -Be "namespace" + $privateLink.GroupId | Should -Be "namespace" + $privateLink.RequiredMember[0] | Should -Be "namespace" + $privateLink.RequiredZoneName[0] | Should -Be "privatelink.servicebus.windows.net" + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Recording.json new file mode 100644 index 000000000000..7ccfe79a9c00 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Recording.json @@ -0,0 +1,129 @@ +{ + "Get-AzServiceBusQueue+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "ab7451e8-bef4-407e-9ea1-046b6ed303af" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "77e0133a-0a2b-4c69-ac0b-b93b9d0c0911_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "4469206f-342f-4d9a-b5df-c754a2243a7a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075322Z:4469206f-342f-4d9a-b5df-c754a2243a7a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1043" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:42:58.6547745Z\",\"updatedAt\":\"2022-09-27T07:47:27.3082128Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusQueue+[NoContext]+List+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "b0666208-ae8a-44a9-9d74-45ccac4a8e75" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "00430aa6-3f63-4ce7-a457-ea305df1f497_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "cd85eb5d-1c41-4772-8b4c-39ed615ed94a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075323Z:cd85eb5d-1c41-4772-8b4c-39ed615ed94a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1055" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:42:58.6547745Z\",\"updatedAt\":\"2022-09-27T07:47:27.3082128Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusQueue+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "4e4f7e48-6280-4a91-827f-293307786bc1" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e73194d7-4a59-4fcd-8e03-055041fce52a_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "7644a8f0-90c9-4b1e-9b45-3483911b1586" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075324Z:7644a8f0-90c9-4b1e-9b45-3483911b1586" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1043" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:42:58.6547745Z\",\"updatedAt\":\"2022-09-27T07:47:27.3082128Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Tests.ps1 new file mode 100644 index 000000000000..4d8363bb8e0b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusQueue.Tests.ps1 @@ -0,0 +1,35 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusQueue')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusQueue.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusQueue' { + $queue = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue1 + + It 'List' { + $listOfQueues = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfQueues.Count | Should -Be 1 + } + + It 'Get' { + $queue.Name | Should -Be "queue1" + $queue.ResourceGroupName | Should -Be $env.resourceGroup + } + + It 'GetViaIdentity' { + $queue = Get-AzServiceBusQueue -InputObject $queue + $queue.Name | Should -Be "queue1" + $queue.ResourceGroupName | Should -Be $env.resourceGroup + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Recording.json new file mode 100644 index 000000000000..0059a9a64b38 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Recording.json @@ -0,0 +1,129 @@ +{ + "Get-AzServiceBusRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "0f4fd3ac-160e-414c-b540-5092cd6788e7" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "80886cf8-4929-4775-b5e5-4ed438ef6387_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "4daf8f22-7d99-40f7-88e0-c7a83f539369" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075337Z:4daf8f22-7d99-40f7-88e0-c7a83f539369" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "462" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1\",\"name\":\"sqlRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=2\",\"compatibilityLevel\":20,\"parameters\":{}}}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "4d3efb9d-d815-4b75-a34a-20da6ad39190" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "452f002c-bec2-4521-a7fd-759e2eda1ff2_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "c82d3b5b-b5de-46ff-ad3e-473a89e4f335" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075338Z:c82d3b5b-b5de-46ff-ad3e-473a89e4f335" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "474" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1\",\"name\":\"sqlRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=2\",\"compatibilityLevel\":20,\"parameters\":{}}}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "1219ec4f-144b-4aec-81f6-91a695d3bb32" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "14ad626c-0883-4941-bd4e-b44cf9d37184_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "6082aa8a-3b3a-45ef-b68f-a439891a3612" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075339Z:6082aa8a-3b3a-45ef-b68f-a439891a3612" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "462" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule1\",\"name\":\"sqlRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=2\",\"compatibilityLevel\":20,\"parameters\":{}}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Tests.ps1 new file mode 100644 index 000000000000..d6aeaceec27c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusRule.Tests.ps1 @@ -0,0 +1,35 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusRule' { + $rule = Get-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRule1 + + It 'List' { + $listOfRules = Get-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 + $listOfRules.Count | Should -Be 1 + } + + It 'Get' { + $rule.Name | Should -Be "sqlRule1" + $rule.ResourceGroupName | Should -Be $env.resourceGroup + } + + It 'GetViaIdentity' { + $rule = Get-AzServiceBusRule -InputObject $rule + $rule.Name | Should -Be "sqlRule1" + $rule.ResourceGroupName | Should -Be $env.resourceGroup + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Recording.json new file mode 100644 index 000000000000..446e75191f92 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Recording.json @@ -0,0 +1,129 @@ +{ + "Get-AzServiceBusSubscription+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "64343690-1576-4e4d-8257-ef3ec4eee2e0" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cf2c53a6-c377-4404-8307-9d3d753f7629_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "e7add3e3-7770-444a-a1e4-0c6ccaa595bb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075351Z:e7add3e3-7770-444a-a1e4-0c6ccaa595bb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "961" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1\",\"name\":\"subscription1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:43:01.154857Z\",\"updatedAt\":\"2022-09-27T07:43:01.154857Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusSubscription+[NoContext]+List+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "6e06caab-7a40-4c50-a989-52c9556ed3fe" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "880731c6-b77d-4eda-939a-c4ee80c297b2_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "1448fc81-c7d0-4ff6-bf03-1dc9c6abb005" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075352Z:1448fc81-c7d0-4ff6-bf03-1dc9c6abb005" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "973" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1\",\"name\":\"subscription1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:43:01.154857Z\",\"updatedAt\":\"2022-09-27T07:43:01.154857Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusSubscription+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "9836d068-03cf-46cf-93b5-5dcedb42dbaa" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "97a4afa2-0c78-49d8-8e6c-400a07515724_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "8fae77ee-6c64-4817-bffd-6b9ce1294d71" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075353Z:8fae77ee-6c64-4817-bffd-6b9ce1294d71" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:53:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "961" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1\",\"name\":\"subscription1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:43:01.154857Z\",\"updatedAt\":\"2022-09-27T07:43:01.154857Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Tests.ps1 new file mode 100644 index 000000000000..f7c6af465646 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusSubscription.Tests.ps1 @@ -0,0 +1,35 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusSubscription' { + $sub = Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subscription1 + + It 'List' { + $listOfSubscriptions = Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $listOfSubscriptions.Count | Should -Be 1 + } + + It 'Get' { + $sub.Name | Should -Be "subscription1" + $sub.ResourceGroupName | Should -Be $env.resourceGroup + } + + It 'GetViaIdentity' { + $sub = Get-AzServiceBusSubscription -InputObject $sub + $sub.Name | Should -Be "subscription1" + $sub.ResourceGroupName | Should -Be $env.resourceGroup + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Recording.json new file mode 100644 index 000000000000..e0aff2e5c32b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Recording.json @@ -0,0 +1,129 @@ +{ + "Get-AzServiceBusTopic+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "a33cc7ed-0fd8-42a9-afdc-0aacba64f030" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "54e7823e-e241-4a18-8dcd-ff9175bcff8d_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "28edc616-f3e5-4834-93b8-3315ef00291d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075408Z:28edc616-f3e5-4834-93b8-3315ef00291d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "966" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:42:58.4360225Z\",\"updatedAt\":\"2022-09-27T07:43:00.5142504Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"subscriptionCount\":1,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Get-AzServiceBusTopic+[NoContext]+List+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "fcfbcbd9-d207-4fd9-a560-4be7ad1b732b" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "2e00f2a0-ffac-4694-91b2-a0a3033f97c5_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "c5abff19-7e6f-477d-a12b-45272c77b260" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075409Z:c5abff19-7e6f-477d-a12b-45272c77b260" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "978" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:42:58.4360225Z\",\"updatedAt\":\"2022-09-27T07:43:00.5142504Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"subscriptionCount\":1,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}]}", + "isContentBase64": false + } + }, + "Get-AzServiceBusTopic+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "602ee05a-aa87-4a2c-8f4a-3f03fbd2a94d" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "599ee8ae-14d7-4463-af10-7a2ca69afda0_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "6f7be9bc-acd5-4632-b20f-9d08a50a03c0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075409Z:6f7be9bc-acd5-4632-b20f-9d08a50a03c0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "966" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:42:58.4360225Z\",\"updatedAt\":\"2022-09-27T07:43:00.5142504Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"subscriptionCount\":1,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Tests.ps1 new file mode 100644 index 000000000000..98c0894c22e4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Get-AzServiceBusTopic.Tests.ps1 @@ -0,0 +1,35 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceBusTopic')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceBusTopic.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceBusTopic' { + $topic = Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topic1 + + It 'List' { + $listOfTopics = Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfTopics.Count | Should -Be 1 + } + + It 'Get' { + $topic.Name | Should -Be "topic1" + $topic.ResourceGroupName | Should -Be $env.resourceGroup + } + + It 'GetViaIdentity' { + $topic = Get-AzServiceBusTopic -InputObject $topic + $topic.Name | Should -Be "topic1" + $topic.ResourceGroupName | Should -Be $env.resourceGroup + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzEventHubIPRuleConfig.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzEventHubIPRuleConfig.Tests.ps1 new file mode 100644 index 000000000000..c4aec560e791 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzEventHubIPRuleConfig.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzEventHubIPRuleConfig')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzEventHubIPRuleConfig.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzEventHubIPRuleConfig' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Recording.json new file mode 100644 index 000000000000..124eb99ba0df --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Recording.json @@ -0,0 +1,239 @@ +{ + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedNamespace+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\", \"Manage\", \"Listen\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "70" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eaf3d485-70f4-42ca-a091-725c9599fb79_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "8e29c21d-aa91-40d3-a19e-71c1eadf4176" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075442Z:8e29c21d-aa91-40d3-a19e-71c1eadf4176" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3\",\"name\":\"namespaceAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Manage\",\"Listen\"]}}", + "isContentBase64": false + } + }, + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedNamespace+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "f843dd00-6a63-4057-b470-34fcb678ba17" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7fc3520a-56bb-4bb1-a835-28542db62c29_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "ef62a86c-55bc-4f2e-9a8c-f4b262e60710" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075443Z:ef62a86c-55bc-4f2e-9a8c-f4b262e60710" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1483" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2\",\"name\":\"namespaceAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3\",\"name\":\"namespaceAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Manage\",\"Listen\"]}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedQueue+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Listen\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "52" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "52cd5576-ccbf-4bce-a34b-9f0b42bde5b4_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "e3270a79-a17e-4a09-b88a-e5f0c33ccd55" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075444Z:e3270a79-a17e-4a09-b88a-e5f0c33ccd55" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "365" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3\",\"name\":\"queueAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}}", + "isContentBase64": false + } + }, + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedQueue+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "044a7ace-b9ef-42ea-ad3c-0ae78a130659" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "59b0d88d-d0de-41e3-b96d-2e35f6603dd3_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "a36767e7-eb76-4d49-8a6e-3a2cb05f88f2" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075445Z:a36767e7-eb76-4d49-8a6e-3a2cb05f88f2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1141" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2\",\"name\":\"queueAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3\",\"name\":\"queueAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedTopic+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "50" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6a933ce3-4c1e-4432-953c-009833a86703_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "db2ef98a-c985-4487-8a7d-6b8620e93ffd" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075446Z:db2ef98a-c985-4487-8a7d-6b8620e93ffd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3\",\"name\":\"topicAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "New-AzServiceBusAuthorizationRule+[NoContext]+NewExpandedTopic+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "5132a5d7-7b87-4d12-baea-052247c1528d" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d9e378d0-ad71-401c-8555-8cf74950c47a_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "23e68b0c-7b4f-4209-9e87-52f627d8552a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075447Z:23e68b0c-7b4f-4209-9e87-52f627d8552a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:54:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2\",\"name\":\"topicAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3\",\"name\":\"topicAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Tests.ps1 new file mode 100644 index 000000000000..13f01d3ffa8b --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusAuthorizationRule.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusAuthorizationRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusAuthorizationRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusAuthorizationRule' { + It 'NewExpandedNamespace' { + $authRule = New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule3 -Rights @("Send", "Manage", "Listen") + $authRule.Name | Should -Be "namespaceAuthRule3" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 3 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfAuthRules.Count | Should -Be 4 + } + + It 'NewExpandedQueue' { + $authRule = New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule3 -Rights @("Listen") + $authRule.Name | Should -Be "queueAuthRule3" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 1 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 + $listOfAuthRules.Count | Should -Be 3 + } + + It 'NewExpandedTopic' { + $authRule = New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule3 -Rights @("Send") + $authRule.Name | Should -Be "topicAuthRule3" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 1 + + $listOfAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $listOfAuthRules.Count | Should -Be 3 + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Recording.json new file mode 100644 index 000000000000..3013e0efbe7d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Recording.json @@ -0,0 +1,711 @@ +{ + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"partnerNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "206" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c03c3ffc-9cf5-42d7-8f86-fcf4102934c5_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "ee365363-c4fa-4614-885d-f00ca4886e17" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075511Z:ee365363-c4fa-4614-885d-f00ca4886e17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "bc54bb28-39da-4223-b771-5f79bc52fbfc" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8086a951-6289-4a1e-b066-635a924fed72_M10CH3_M10CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "a033147e-7058-4021-bbe5-810879a41827" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075512Z:a033147e-7058-4021-bbe5-810879a41827" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "e69dc0cd-283b-4f53-9e4f-0e5bc3571f20" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "dadf28e9-f4a0-4173-b03c-2a7d31755b9f_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "47a96919-6587-40d3-bc44-461b931c20bd" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075522Z:47a96919-6587-40d3-bc44-461b931c20bd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "058d89af-427c-4017-910c-cd61237f83cd" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "78519e54-f555-47af-b4cd-a9db027d0edc_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "137f312d-e7ee-4008-a38d-bbdb60f8dbec" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075533Z:137f312d-e7ee-4008-a38d-bbdb60f8dbec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "173f0380-550f-4d88-adc6-35e7508b10c8" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1ae95e20-1511-40de-ab2a-0767c1c504c6_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "b420500b-5cd5-4f96-9469-dba17329bc73" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075544Z:b420500b-5cd5-4f96-9469-dba17329bc73" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "e673ba45-4630-452c-a18f-e691d192c422" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2c0ea22a-7ec7-4820-9ae9-82d2e761ce8f_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "bf58797f-8692-43bd-a21b-b7c0820a1894" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075554Z:bf58797f-8692-43bd-a21b-b7c0820a1894" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:55:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "52f3029c-68ae-4945-9b07-9e5a54ea0344" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5a78a3a6-4ca5-4533-b51b-259f2bf1171e_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "e080f797-53c3-4c74-892f-2ede073c1992" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075605Z:e080f797-53c3-4c74-892f-2ede073c1992" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "1d8f3b6e-486f-4d02-8062-3016320ae3f0" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9edfd889-6007-483b-86a1-489f37c4b2f3_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "x-ms-correlation-request-id": [ "68f14fd5-7cbe-4b6b-8a02-9438cb112a03" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075615Z:68f14fd5-7cbe-4b6b-8a02-9438cb112a03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "c62e2416-8c35-4250-b8aa-edbea417b2df" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ead031c9-091d-4c66-ba98-332185b23608_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-correlation-request-id": [ "bf407412-412b-4308-8960-4625e993afb4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075626Z:bf407412-412b-4308-8960-4625e993afb4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "d8c26c9c-56e1-4fbe-bb18-b422a58aaa02" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "db1deff6-6328-4b6f-abaf-a014251a368f_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "x-ms-correlation-request-id": [ "58b583ca-954f-4e05-8a7f-8c9d46dd8350" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075637Z:58b583ca-954f-4e05-8a7f-8c9d46dd8350" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "694885e1-2bb9-4652-9b95-fb2ae1a75f00" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4c1c9244-4174-4a55-b284-bcc156cb1de4_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], + "x-ms-correlation-request-id": [ "08dd59f3-29c1-4008-bafc-d6600715f9a9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075648Z:08dd59f3-29c1-4008-bafc-d6600715f9a9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "166876bd-04fe-4286-9cc8-cb3c2b906b6d" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "93d4d6c3-aed1-4419-b557-b527c77a5252_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "x-ms-correlation-request-id": [ "aeac8002-77f1-40eb-b9a5-618f44dc6081" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075659Z:aeac8002-77f1-40eb-b9a5-618f44dc6081" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/AuthorizationRules?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "85aab740-a8e8-40f8-bfa9-9985c8a8d68d" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9be4a3cc-8fb7-483f-ae58-a5368a1ed1a6_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "x-ms-correlation-request-id": [ "3e887ee9-7e80-45ad-a473-10ae1fa73349" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075700Z:3e887ee9-7e80-45ad-a473-10ae1fa73349" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:56:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "385" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "503ed522-ace9-4460-ac50-d58c981ea7e3" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fe69023d-982f-46e1-9d76-788b341e7358_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-correlation-request-id": [ "02c4963e-7ebb-42ed-ba74-d1561f4b0d10" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075701Z:02c4963e-7ebb-42ed-ba74-d1561f4b0d10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "421" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "b81bc455-4587-4460-9779-3ee80d5586ba" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusDisasterRecoveryConfigAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "df9b8021-9704-4cf7-a62e-12ea720b68e6_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "x-ms-correlation-request-id": [ "422c9d91-a231-4047-8921-c57ac4419114" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075702Z:422c9d91-a231-4047-8921-c57ac4419114" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "409" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"East US\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey/listKeys?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/authorizationRules/RootManageSharedAccessKey/listKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "b4873fd9-91ab-476c-940d-fdba46f084ce" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusDisasterRecoveryConfigKey_List" ], + "FullCommandName": [ "Get-AzServiceBusDisasterRecoveryConfigKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5f676984-6600-424a-897d-c531c12f3901_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "e3fe1c2b-1e37-4a60-953f-31a8dc608606" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075703Z:e3fe1c2b-1e37-4a60-953f-31a8dc608606" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "543" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"aliasPrimaryConnectionString\":\"Endpoint=sb://alias1w402p.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=h05SqIYqlLx3ZJOnx+0TlSl6F8nE0F8U7/amH+HSo5M=\",\"aliasSecondaryConnectionString\":\"Endpoint=sb://alias1w402p.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=DqphQh/yb0A1G//9UqQ4b01NcWMzEWR4AX6LzbpZxgQ=\",\"primaryKey\":\"h05SqIYqlLx3ZJOnx+0TlSl6F8nE0F8U7/amH+HSo5M=\",\"secondaryKey\":\"DqphQh/yb0A1G//9UqQ4b01NcWMzEWR4AX6LzbpZxgQ=\",\"keyName\":\"RootManageSharedAccessKey\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusGeoDRConfiguration+[NoContext]+CreateExpanded+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/AuthorizationRules/RootManageSharedAccessKey/listKeys?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/AuthorizationRules/RootManageSharedAccessKey/listKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "e390e039-c165-4120-8775-ab3d98c4eb2c" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceKey_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "94e989a8-78a2-471f-9bef-7821bde41c9c_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "9a074679-c0ed-44ad-9620-3a5f82ebcf35" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075704Z:9a074679-c0ed-44ad-9620-3a5f82ebcf35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "923" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://primarynsf0j2h7.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=h05SqIYqlLx3ZJOnx+0TlSl6F8nE0F8U7/amH+HSo5M=\",\"secondaryConnectionString\":\"Endpoint=sb://primarynsf0j2h7.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=DqphQh/yb0A1G//9UqQ4b01NcWMzEWR4AX6LzbpZxgQ=\",\"aliasPrimaryConnectionString\":\"Endpoint=sb://alias1w402p.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=h05SqIYqlLx3ZJOnx+0TlSl6F8nE0F8U7/amH+HSo5M=\",\"aliasSecondaryConnectionString\":\"Endpoint=sb://alias1w402p.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=DqphQh/yb0A1G//9UqQ4b01NcWMzEWR4AX6LzbpZxgQ=\",\"primaryKey\":\"h05SqIYqlLx3ZJOnx+0TlSl6F8nE0F8U7/amH+HSo5M=\",\"secondaryKey\":\"DqphQh/yb0A1G//9UqQ4b01NcWMzEWR4AX6LzbpZxgQ=\",\"keyName\":\"RootManageSharedAccessKey\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Tests.ps1 new file mode 100644 index 000000000000..17ef12e9a289 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusGeoDRConfiguration.Tests.ps1 @@ -0,0 +1,51 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusGeoDRConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusGeoDRConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusGeoDRConfiguration' { + It 'CreateExpanded' { + $drConfig = New-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace -PartnerNamespace $env.secondaryNamespaceResourceId + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.Name | Should -Be $env.alias + $drConfig.PartnerNamespace | Should -Be $env.secondaryNamespaceResourceId + $drConfig.Role | Should -Be "Primary" + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + Start-Sleep 10 + } + + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.Name | Should -Be $env.alias + $drConfig.PartnerNamespace | Should -Be $env.primaryNamespaceResourceId + $drConfig.Role | Should -Be "Secondary" + + $namespaceAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + + $drAuthRules = Get-AzServiceBusAuthorizationRule -AliasName $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + $drAuthRules.Count | Should -Be $namespaceAuthRules.Count + + $authRule = Get-AzServiceBusAuthorizationRule -Name RootManageSharedAccessKey -AliasName $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + $authRule.Name | Should -Be "RootManageSharedAccessKey" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 3 + + $drKeys = Get-AzServiceBusKey -Name RootManageSharedAccessKey -AliasName $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + $namespaceKeys = Get-AzServiceBusKey -Name RootManageSharedAccessKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + $drKeys.PrimaryKey | Should -Be $namespaceKeys.PrimaryKey + $drKeys.SecondaryKey | Should -Be $namespaceKeys.SecondaryKey + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusIPRuleConfig.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusIPRuleConfig.Tests.ps1 new file mode 100644 index 000000000000..0b7437c31caa --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusIPRuleConfig.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusIPRuleConfig')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusIPRuleConfig.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusIPRuleConfig' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Recording.json new file mode 100644 index 000000000000..a5e824a72d42 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Recording.json @@ -0,0 +1,572 @@ +{ + "New-AzServiceBusKey+[NoContext]+NewExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/listKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/listKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "35feb037-d9c9-480e-b494-73e403ffaef5" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceKey_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c96d522b-a060-426b-9648-aad7a7649a1b_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "840dc68f-d232-4255-83f2-d8bce222fa0f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075731Z:840dc68f-d232-4255-83f2-d8bce222fa0f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=IOEZlRBcKKzczkr8iH0Wu2NtW6L8bYcI+7Xxkb/zaX0=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"primaryKey\":\"IOEZlRBcKKzczkr8iH0Wu2NtW6L8bYcI+7Xxkb/zaX0=\",\"secondaryKey\":\"tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0dfbbce0-800d-4606-b538-a564bb776f06_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "780666ba-156f-4dff-b3a9-ab9b07b30329" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075737Z:780666ba-156f-4dff-b3a9-ab9b07b30329" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=RpQre7EBqFPADOZ+eHGKlb/EliXB1AswBuiKfVw3wmw=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"primaryKey\":\"RpQre7EBqFPADOZ+eHGKlb/EliXB1AswBuiKfVw3wmw=\",\"secondaryKey\":\"tmHxX/SQeAWyqQnHE21v3IbcrICagEk2dwpSwE+0WNI=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "31" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0d0aa1b4-486e-426b-b687-0e992486ee94_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "a5732953-0a8f-4d0f-929e-8841a52e6280" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075744Z:a5732953-0a8f-4d0f-929e-8841a52e6280" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=RpQre7EBqFPADOZ+eHGKlb/EliXB1AswBuiKfVw3wmw=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=x1aIUpG2sO6SiorHKrpHo9nvcJ4zBNEsI9neu3oBvi8=\",\"primaryKey\":\"RpQre7EBqFPADOZ+eHGKlb/EliXB1AswBuiKfVw3wmw=\",\"secondaryKey\":\"x1aIUpG2sO6SiorHKrpHo9nvcJ4zBNEsI9neu3oBvi8=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "86" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0df5c2c5-2c17-4923-b234-1ee2d6f42f72_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "9618fb99-e176-4b02-8223-d5794e8effdb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075750Z:9618fb99-e176-4b02-8223-d5794e8effdb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=x1aIUpG2sO6SiorHKrpHo9nvcJ4zBNEsI9neu3oBvi8=\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"x1aIUpG2sO6SiorHKrpHo9nvcJ4zBNEsI9neu3oBvi8=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedNamespace+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "88" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "70214818-5019-4f72-afc6-6b5db26356d7_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "a1214408-ed1a-44ef-8d01-9049e89c1944" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075757Z:a1214408-ed1a-44ef-8d01-9049e89c1944" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=namespaceAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"keyName\":\"namespaceAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/ListKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/ListKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "848c4acf-b33e-47ce-b990-c3170a588921" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueKey_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9c8bb106-358e-44ca-9a9b-49fddd67e67a_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "3e2980b1-0e3c-48b0-bcb7-eb1f64860922" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075759Z:3e2980b1-0e3c-48b0-bcb7-eb1f64860922" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:57:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=dyHbF4QOY1FIkwi0c9nV+YYznweHX1T6Ho1bxJ5Voec=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=;EntityPath=queue1\",\"primaryKey\":\"dyHbF4QOY1FIkwi0c9nV+YYznweHX1T6Ho1bxJ5Voec=\",\"secondaryKey\":\"/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0073cc50-fc62-4277-a7e7-47eba09165ee_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "x-ms-correlation-request-id": [ "fb3a086a-6d2d-4e63-a45b-1f72a2f76490" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075800Z:fb3a086a-6d2d-4e63-a45b-1f72a2f76490" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=N7mIBhxMsMCwW1pNdvNScqh1r0aqHl1v5AXlRduNcIw=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=;EntityPath=queue1\",\"primaryKey\":\"N7mIBhxMsMCwW1pNdvNScqh1r0aqHl1v5AXlRduNcIw=\",\"secondaryKey\":\"/mbB9u2fTAJWtfeT1td1OAfr+kI4mBMOfsBOV0M1qjI=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "31" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f7f5f1f6-d9e4-4d84-ae8e-eb58ea9f67d1_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "x-ms-correlation-request-id": [ "1e928fcf-5a49-4de1-a272-6a310cb817ab" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075801Z:1e928fcf-5a49-4de1-a272-6a310cb817ab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=N7mIBhxMsMCwW1pNdvNScqh1r0aqHl1v5AXlRduNcIw=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=SfELzik97Bx4hIjr28E/EGvKrEvsVCpfFrIxQUcNDgo=;EntityPath=queue1\",\"primaryKey\":\"N7mIBhxMsMCwW1pNdvNScqh1r0aqHl1v5AXlRduNcIw=\",\"secondaryKey\":\"SfELzik97Bx4hIjr28E/EGvKrEvsVCpfFrIxQUcNDgo=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "86" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4ebbf20c-b669-4e77-ac09-57a1084b6009_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-correlation-request-id": [ "24933b51-c0c8-4f07-bfe8-300e7b1386bb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075802Z:24933b51-c0c8-4f07-bfe8-300e7b1386bb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=SfELzik97Bx4hIjr28E/EGvKrEvsVCpfFrIxQUcNDgo=;EntityPath=queue1\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"SfELzik97Bx4hIjr28E/EGvKrEvsVCpfFrIxQUcNDgo=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedQueue+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "88" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "513f5e34-747c-4cb2-aafb-11c6ad294862_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-correlation-request-id": [ "5af9d4b6-81aa-4ad9-a207-f067eb4b6377" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075803Z:5af9d4b6-81aa-4ad9-a207-f067eb4b6377" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=queue1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=queueAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=queue1\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"keyName\":\"queueAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/ListKeys?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/ListKeys?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "d8a5ad13-4c87-49a9-b211-804fb562dbcd" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicKey_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "95469919-3197-45d8-9c02-f8ad0ca9da6b_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-correlation-request-id": [ "78dfe204-bbcb-4927-a788-3b4cf22ec52e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075804Z:78dfe204-bbcb-4927-a788-3b4cf22ec52e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=5cEAxs/oi94+1rRaMx0aw2XOApVHQYh6TdkDyPu6Hbc=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=;EntityPath=topic1\",\"primaryKey\":\"5cEAxs/oi94+1rRaMx0aw2XOApVHQYh6TdkDyPu6Hbc=\",\"secondaryKey\":\"78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "bf25c1b7-2fd2-41ad-bf63-2ec820f2f462_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], + "x-ms-correlation-request-id": [ "499ea476-c3cf-4622-9e5a-5162445808b4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075805Z:499ea476-c3cf-4622-9e5a-5162445808b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=Q4TgX3sfY+8tg/WYo7u/BLgxU9r6EIKMuyPlbxiFmCk=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=;EntityPath=topic1\",\"primaryKey\":\"Q4TgX3sfY+8tg/WYo7u/BLgxU9r6EIKMuyPlbxiFmCk=\",\"secondaryKey\":\"78gf1uA33jc1hzau/mM4W1D6ztONhzNULhjl4YhPqUE=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "31" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7e6fd70f-9571-4626-b1b3-b4ee721e573e_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], + "x-ms-correlation-request-id": [ "b33fc973-ce51-460d-95d7-a76ca2ea80dc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075807Z:b33fc973-ce51-460d-95d7-a76ca2ea80dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=Q4TgX3sfY+8tg/WYo7u/BLgxU9r6EIKMuyPlbxiFmCk=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=xYbxrU3x2rBPCNoj3Ksb/9KVE/0241kl+UXtOd1Sq9c=;EntityPath=topic1\",\"primaryKey\":\"Q4TgX3sfY+8tg/WYo7u/BLgxU9r6EIKMuyPlbxiFmCk=\",\"secondaryKey\":\"xYbxrU3x2rBPCNoj3Ksb/9KVE/0241kl+UXtOd1Sq9c=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"PrimaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "86" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b77d280e-d640-45aa-89be-aa3887298bcc_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], + "x-ms-correlation-request-id": [ "ee83ee3c-5a26-46e1-9e70-0714e7a9ac14" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075808Z:ee83ee3c-5a26-46e1-9e70-0714e7a9ac14" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=xYbxrU3x2rBPCNoj3Ksb/9KVE/0241kl+UXtOd1Sq9c=;EntityPath=topic1\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"xYbxrU3x2rBPCNoj3Ksb/9KVE/0241kl+UXtOd1Sq9c=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + }, + "New-AzServiceBusKey+[NoContext]+NewExpandedTopic+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1/regenerateKeys?api-version=2022-01-01-preview", + "Content": "{\n \"keyType\": \"SecondaryKey\",\n \"key\": \"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "88" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "39105e5e-74ff-4fa8-96a0-316500251caa_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], + "x-ms-correlation-request-id": [ "2370d7d3-7391-494a-89fc-2ec0e6d3e5f3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075809Z:2370d7d3-7391-494a-89fc-2ec0e6d3e5f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "552" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"primaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=topic1\",\"secondaryConnectionString\":\"Endpoint=sb://namespacenamec1leiv.servicebus.windows.net/;SharedAccessKeyName=topicAuthRule1;SharedAccessKey=g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=;EntityPath=topic1\",\"primaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"secondaryKey\":\"g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=\",\"keyName\":\"topicAuthRule1\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Tests.ps1 new file mode 100644 index 000000000000..698fbe386dad --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusKey.Tests.ps1 @@ -0,0 +1,96 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusKey')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusKey.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + + +Describe 'New-AzServiceBusKey' { + It 'NewExpandedNamespace' { + $currentKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 -KeyType PrimaryKey + $newKeys.PrimaryKey | Should -Not -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 -KeyType SecondaryKey + $newKeys.PrimaryKey | Should -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Not -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 -KeyType PrimaryKey -KeyValue $env.namespacePrimaryKey + $newKeys.PrimaryKey | Should -Be $env.namespacePrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 -KeyType SecondaryKey -KeyValue $env.namespaceSecondaryKey + $newKeys.PrimaryKey | Should -Be $env.namespacePrimaryKey + $newKeys.SecondaryKey | Should -Be $env.namespaceSecondaryKey + } + + It 'NewExpandedQueue' { + $currentKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 -KeyType PrimaryKey + $newKeys.PrimaryKey | Should -Not -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 -KeyType SecondaryKey + $newKeys.PrimaryKey | Should -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Not -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 -KeyType PrimaryKey -KeyValue $env.queuePrimaryKey + $newKeys.PrimaryKey | Should -Be $env.queuePrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 -KeyType SecondaryKey -KeyValue $env.queueSecondaryKey + $newKeys.PrimaryKey | Should -Be $env.queuePrimaryKey + $newKeys.SecondaryKey | Should -Be $env.queueSecondaryKey + } + + It 'NewExpandedTopic' { + $currentKeys = Get-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -KeyType PrimaryKey + $newKeys.PrimaryKey | Should -Not -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -KeyType SecondaryKey + $newKeys.PrimaryKey | Should -Be $currentKeys.PrimaryKey + $newKeys.SecondaryKey | Should -Not -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -KeyType PrimaryKey -KeyValue $env.topicPrimaryKey + $newKeys.PrimaryKey | Should -Be $env.topicPrimaryKey + $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey + + $currentKeys = $newKeys + + $newKeys = New-AzServiceBusKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -KeyType SecondaryKey -KeyValue $env.topicSecondaryKey + $newKeys.PrimaryKey | Should -Be $env.topicPrimaryKey + $newKeys.SecondaryKey | Should -Be $env.topicSecondaryKey + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusNetworkRuleSet.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusNetworkRuleSet.Tests.ps1 new file mode 100644 index 000000000000..f44a57969b30 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusNetworkRuleSet.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusNetworkRuleSet')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusNetworkRuleSet.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusNetworkRuleSet' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Recording.json new file mode 100644 index 000000000000..41fcb393b011 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Recording.json @@ -0,0 +1,156 @@ +{ + "New-AzServiceBusQueue+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT4M\",\n \"maxSizeInMegabytes\": 4096,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"defaultMessageTimeToLive\": \"P428DT3H11M10S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "476" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7804cb55-083d-450f-b609-d7229178fd01_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "78cef6b4-5559-4b47-8f6c-e4245319e787" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075836Z:78cef6b4-5559-4b47-8f6c-e4245319e787" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1083" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT4M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.73Z\",\"updatedAt\":\"2022-09-27T07:58:35.84Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusQueue+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"requiresSession\": true,\n \"autoDeleteOnIdle\": \"P7D\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "84" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "32e298bb-11e5-4b67-81b4-5d03d13f7f96_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "5220164a-a7c4-4206-9f89-9597a4a7592d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075839Z:5220164a-a7c4-4206-9f89-9597a4a7592d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1011" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P7D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:38.603Z\",\"updatedAt\":\"2022-09-27T07:58:38.677Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusQueue+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "2d03e177-f3e5-42a0-b617-1cb304fde094" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "5ffac203-c6be-45e1-8864-467b35835b5b_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-correlation-request-id": [ "bcabbfc2-f5eb-44b4-982d-28546b80cbab" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075840Z:bcabbfc2-f5eb-44b4-982d-28546b80cbab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3151" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:42:58.6547745Z\",\"updatedAt\":\"2022-09-27T07:58:03.7029348Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT4M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.73Z\",\"updatedAt\":\"2022-09-27T07:58:35.84Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P7D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:38.603Z\",\"updatedAt\":\"2022-09-27T07:58:38.677Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusQueue+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"enableExpress\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "51" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b5aba576-43cf-4272-97ae-765fecc93771_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "b8c7930b-c5b5-4dd6-9ff1-057ab81a7030" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075842Z:b8c7930b-c5b5-4dd6-9ff1-057ab81a7030" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1033" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:42.223Z\",\"updatedAt\":\"2022-09-27T07:58:42.287Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Tests.ps1 new file mode 100644 index 000000000000..ba1b1a389d2d --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusQueue.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusQueue')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusQueue.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusQueue' { + It 'CreateExpanded' { + $queue = New-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue2 -LockDuration (New-TimeSpan -Minutes 4) -MaxMessageSizeInKilobytes 102400 -MaxSizeInMegabytes 4096 -RequiresDuplicateDetection -DuplicateDetectionHistoryTimeWindow (New-TimeSpan -Minutes 10) -DeadLetteringOnMessageExpiration -MaxDeliveryCount 8 -Status Active -EnableBatchedOperations:$false -DefaultMessageTimeToLive (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 10) -ForwardTo queue1 -ForwardDeadLetteredMessagesTo queue1 + $queue.Name | Should -Be "queue2" + $queue.ResourceGroupName | Should -Be $env.resourceGroup + $queue.LockDuration | Should -Be (New-TimeSpan -Minutes 4) + $queue.DuplicateDetectionHistoryTimeWindow | Should -Be (New-TimeSpan -Minutes 10) + $queue.DefaultMessageTimeToLive | Should -Be (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 10) + $queue.MaxSizeInMegabytes | Should -Be 4096 + $queue.RequiresDuplicateDetection | Should -Be $true + $queue.DeadLetteringOnMessageExpiration | Should -Be $true + $queue.MaxDeliveryCount | Should -Be 8 + $queue.EnableBatchedOperations | Should -Be $false + $queue.ForwardTo | Should -Be "queue1" + $queue.ForwardDeadLetteredMessagesTo | Should -Be "queue1" + $queue.MaxMessageSizeInKilobytes | Should -Be 102400 + + $queue2 = New-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue3 -RequiresSession -AutoDeleteOnIdle (New-Timespan -Days 7) + $queue2.Name | Should -Be "queue3" + $queue2.ResourceGroupName | Should -Be $env.resourceGroup + $queue2.RequiresSession | Should -Be $true + $queue2.AutoDeleteOnIdle | Should -Be (New-TimeSpan -Days 7) + + $listOfQueues = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfQueues.Count | Should -Be 3 + + # Create a queue with express enabled + $queue1 = New-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.standardNamespace -Name queue1 -EnableExpress + $queue1.EnableExpress | Should -Be $true + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Recording.json new file mode 100644 index 000000000000..cf3ccb3154a8 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Recording.json @@ -0,0 +1,76 @@ +{ + "New-AzServiceBusRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"action\": {\n \"sqlExpression\": \"SET a=b\"\n },\n \"sqlFilter\": {\n \"sqlExpression\": \"1=2\"\n },\n \"filterType\": \"SqlFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "166" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f3d8c568-4d30-428d-aecc-115af741fff0_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "x-ms-correlation-request-id": [ "9ef64413-c947-4b3d-be50-d20acc3b5e79" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075859Z:9ef64413-c947-4b3d-be50-d20acc3b5e79" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:58:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "495" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2\",\"name\":\"sqlRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{\"sqlExpression\":\"SET a=b\",\"compatibilityLevel\":20},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=2\",\"compatibilityLevel\":20}}}", + "isContentBase64": false + } + }, + "New-AzServiceBusRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"c\": \"d\",\n \"a\": \"b\"\n },\n \"correlationId\": \"correlationid\",\n \"messageId\": \"messageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"label\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"contenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "400" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ba0a2f80-8c6b-4fa2-8b37-5dbf63fbe932_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "x-ms-correlation-request-id": [ "5c1a2c08-25fc-4e53-979e-e78f8bd7a451" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075901Z:5c1a2c08-25fc-4e53-979e-e78f8bd7a451" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"correlationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"contenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Tests.ps1 new file mode 100644 index 000000000000..6842b0610c9a --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusRule.Tests.ps1 @@ -0,0 +1,40 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusRule' { + It 'CreateExpanded' { + # Create Sql Filter Rule + $rule1 = New-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRule2 -FilterType SqlFilter -SqlExpression 1=2 -ActionSqlExpression "SET a=b" + $rule1.Name | Should -Be "sqlRule2" + $rule1.ResourceGroupName | Should -Be $env.resourceGroup + $rule1.FilterType | Should -Be "SqlFilter" + $rule1.SqlExpression | Should -Be "1=2" + $rule1.ActionSqlExpression | Should -Be "SET a=b" + + $rule2 = New-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name correlationRule1 -FilterType CorrelationFilter -ContentType contenttype -CorrelationFilterProperty @{a='b';c='d'} -SessionId sessionid -CorrelationId correlationid -MessageId messageid -Label label -ReplyTo replyto -ReplyToSessionId replytosessionid + $rule2.Name | Should -Be "correlationRule1" + $rule2.ResourceGroupName | Should -Be $env.resourceGroup + $rule2.FilterType | Should -Be "CorrelationFilter" + $rule2.ContentType | Should -Be "contenttype" + $rule2.CorrelationFilterProperty.Count | Should -Be 2 + $rule2.SessionId | Should -Be "sessionid" + $rule2.CorrelationId | Should -Be "correlationid" + $rule2.MessageId | Should -Be "messageid" + $rule2.Label | Should -Be "label" + $rule2.ReplyTo | Should -Be "replyto" + $rule2.ReplyToSessionId | Should -Be "replytosessionid" + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Recording.json new file mode 100644 index 000000000000..d4c2d61610f0 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Recording.json @@ -0,0 +1,119 @@ +{ + "New-AzServiceBusSubscription+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT3M\",\n \"defaultMessageTimeToLive\": \"P428DT3H11M10S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"maxDeliveryCount\": 12,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "311" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "18d07ac6-28f2-4bf9-901d-a9ecd13b9e7e_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-correlation-request-id": [ "016e5f9b-da6f-4e4f-bf29-a78b01bb40a7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075916Z:016e5f9b-da6f-4e4f-bf29-a78b01bb40a7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1008" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8508549Z\",\"updatedAt\":\"2022-09-27T07:59:15.8508549Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusSubscription+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"clientAffineProperties\": {\n \"clientId\": \"clientid\",\n \"isDurable\": true,\n \"isShared\": true\n },\n \"requiresSession\": true,\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"autoDeleteOnIdle\": \"P7D\",\n \"isClientAffine\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "284" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e74218a1-aa3f-40bd-baab-db9b6bb012b8_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-correlation-request-id": [ "9673d74a-9595-4c84-b464-ad68faa9e4d5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075918Z:9673d74a-9595-4c84-b464-ad68faa9e4d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1022" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:17.9446278Z\",\"updatedAt\":\"2022-09-27T07:59:17.9446278Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "New-AzServiceBusSubscription+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "f15b54e4-f9f5-47aa-ade7-6a3d33e75ac6" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "76efa1d0-adea-408d-87d1-48ffa66a48d4_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "ae04a9df-51f8-4cf7-b346-5d7869993eec" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075918Z:ae04a9df-51f8-4cf7-b346-5d7869993eec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3021" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1\",\"name\":\"subscription1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:43:01.154857Z\",\"updatedAt\":\"2022-09-27T07:43:01.154857Z\",\"accessedAt\":\"2022-09-27T07:43:01.154Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T07:59:15.8757223Z\",\"accessedAt\":\"2022-09-27T07:59:15.8757223Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:17.9538532Z\",\"updatedAt\":\"2022-09-27T07:59:17.9538532Z\",\"accessedAt\":\"2022-09-27T07:59:17.9538532Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Tests.ps1 new file mode 100644 index 000000000000..c28bdf7f7084 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusSubscription.Tests.ps1 @@ -0,0 +1,44 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusSubscription' { + It 'CreateExpanded' { + $sub = New-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subscription2 -LockDuration (New-TimeSpan -Minutes 3) -DeadLetteringOnMessageExpiration -MaxDeliveryCount 12 -Status Active -EnableBatchedOperations -ForwardTo queue1 -ForwardDeadLetteredMessagesTo queue1 -DefaultMessageTimeToLive (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 10) + $sub.Name | Should -Be "subscription2" + $sub.ResourceGroupName | Should -Be $env.resourceGroup + $sub.LockDuration | Should -Be (New-TimeSpan -Minutes 3) + $sub.DeadLetteringOnMessageExpiration | Should -Be $true + $sub.MaxDeliveryCount | Should -Be 12 + $sub.Status | Should -Be "Active" + $sub.EnableBatchedOperations | Should -Be $true + $sub.DefaultMessageTimeToLive | Should -Be (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 10) + $sub.ForwardTo | Should -Be "queue1" + $sub.ForwardDeadLetteredMessagesTo | Should -Be "queue1" + + $sub = New-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name 'subscription3$$D' -RequiresSession -AutoDeleteOnIdle (New-TimeSpan -Days 7) -DeadLetteringOnFilterEvaluationException -IsClientAffine -ClientId clientid -IsShared -IsDurable + $sub.Name | Should -Be 'subscription3$$D' + $sub.ResourceGroupName | Should -Be $env.resourceGroup + $sub.AutoDeleteOnIdle | Should -Be (New-TimeSpan -Days 7) + $sub.DeadLetteringOnFilterEvaluationException | Should -Be $true + $sub.IsClientAffine | Should -Be $true + $sub.ClientId | Should -Be "clientid" + $sub.IsShared | Should -Be $true + $sub.IsDurable | Should -Be $true + + $listOfSubscription = Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $listOfSubscription.Count | Should -Be 3 + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Recording.json new file mode 100644 index 000000000000..e8b98a0a7c38 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Recording.json @@ -0,0 +1,156 @@ +{ + "New-AzServiceBusTopic+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P365D\",\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"P1DT3M4S\",\n \"enableBatchedOperations\": true,\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P428DT3H11M2S\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "308" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4046f1b6-998a-4b6e-a3c7-84908a67e266_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-correlation-request-id": [ "f0affe90-f294-4904-b99d-bb030c2924f9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075934Z:f0affe90-f294-4904-b99d-bb030c2924f9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "924" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic2\",\"name\":\"topic2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"defaultMessageTimeToLive\":\"P365D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":true,\"duplicateDetectionHistoryTimeWindow\":\"P1DT3M4S\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:59:34.023Z\",\"updatedAt\":\"2022-09-27T07:59:34.103Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "New-AzServiceBusTopic+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"maxSizeInMegabytes\": 2048\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "56" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "87e0f6d3-1535-4d59-b2b3-a8f733b757fc_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], + "x-ms-correlation-request-id": [ "b178a8d6-12b6-427e-a0b0-e46d21f88d86" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075937Z:b178a8d6-12b6-427e-a0b0-e46d21f88d86" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "953" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic3\",\"name\":\"topic3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:59:36.54Z\",\"updatedAt\":\"2022-09-27T07:59:36.617Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "New-AzServiceBusTopic+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "4fbd131c-f6be-4b07-bfbb-81e19bc88cd3" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-inline-count": [ "" ], + "x-ms-request-id": [ "c507669f-92fc-4dff-bd5a-fa8c54454afc_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "3c9c3c84-da6a-4bc0-88ef-13ced76d27c4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075938Z:3c9c3c84-da6a-4bc0-88ef-13ced76d27c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2861" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:42:58.4360225Z\",\"updatedAt\":\"2022-09-27T07:58:09.0311337Z\",\"accessedAt\":\"2022-09-27T07:59:17.9538532Z\",\"subscriptionCount\":3,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic2\",\"name\":\"topic2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"defaultMessageTimeToLive\":\"P365D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":true,\"duplicateDetectionHistoryTimeWindow\":\"P1DT3M4S\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:59:34.023Z\",\"updatedAt\":\"2022-09-27T07:59:34.103Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic3\",\"name\":\"topic3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:59:36.54Z\",\"updatedAt\":\"2022-09-27T07:59:36.617Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}]}", + "isContentBase64": false + } + }, + "New-AzServiceBusTopic+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"enableExpress\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "51" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "65665fdb-8505-4308-b214-bbe98a6c0130_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], + "x-ms-correlation-request-id": [ "7ae56140-533b-42ff-a002-9c352eb110ae" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T075940Z:7ae56140-533b-42ff-a002-9c352eb110ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 07:59:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "952" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"createdAt\":\"2022-09-27T07:59:40.253Z\",\"updatedAt\":\"2022-09-27T07:59:40.373Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Tests.ps1 new file mode 100644 index 000000000000..57ce9b03b119 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusTopic.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusTopic')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusTopic.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusTopic' { + It 'CreateExpanded' { + $topic1 = New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topic2 -DefaultMessageTimeToLive (New-TimeSpan -Days 365) -RequiresDuplicateDetection -AutoDeleteOnIdle (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 2) -DuplicateDetectionHistoryTimeWindow (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) -EnableBatchedOperations -SupportOrdering -MaxMessageSizeInKilobytes 102400 + $topic1.Name | Should -Be "topic2" + $topic1.ResourceGroupName | Should -Be $env.resourceGroup + $topic1.DefaultMessageTimeToLive | Should -Be (New-TimeSpan -Days 365) + $topic1.AutoDeleteOnIdle | Should -Be (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 2) + $topic1.DuplicateDetectionHistoryTimeWindow | Should -Be (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + $topic1.SupportOrdering | Should -Be $true + $topic1.EnableBatchedOperations | Should -Be $true + $topic1.EnablePartitioning | Should -Be $false + $topic1.MaxMessageSizeInKilobytes | Should -Be 102400 + + $topic2 = New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topic3 -MaxSizeInMegabytes 2048 + $topic2.Name | Should -Be "topic3" + $topic2.ResourceGroupName | Should -Be $env.resourceGroup + $topic2.MaxSizeInMegabytes | Should -Be 2048 + + $listOfTopics = Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $listOfTopics.Count | Should -Be 3 + + $topic3 = New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.standardNamespace -Name topic1 -EnableExpress + $topic3.EnableExpress | Should -Be $true + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusVirtualNetworkRuleConfig.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusVirtualNetworkRuleConfig.Tests.ps1 new file mode 100644 index 000000000000..67cf4b5775b0 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/New-AzServiceBusVirtualNetworkRuleConfig.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzServiceBusVirtualNetworkRuleConfig')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzServiceBusVirtualNetworkRuleConfig.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzServiceBusVirtualNetworkRuleConfig' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/README.md b/src/ServiceBus/ServiceBus.Autorest/test/README.md new file mode 100644 index 000000000000..1969200c6a09 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/README.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Recording.json new file mode 100644 index 000000000000..e2fce38c235f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Recording.json @@ -0,0 +1,1004 @@ +{ + "Remove-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "684e93c5-6d32-4668-b5e2-cbd64b2a5902" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4b42ddb8-563e-4cbe-9b05-b33991847c79_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-correlation-request-id": [ "893c6020-f8b1-44b5-bdf7-b079efcda084" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080007Z:893c6020-f8b1-44b5-bdf7-b079efcda084" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1483" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2\",\"name\":\"namespaceAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3\",\"name\":\"namespaceAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Manage\",\"Listen\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "573ee914-95e9-4872-9af0-e969afcfab57" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4c6279d1-31f1-4d7d-86fe-9014dc518aa2_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], + "x-ms-correlation-request-id": [ "f5755a4d-30b1-4282-865e-1b58068c4d35" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080009Z:f5755a4d-30b1-4282-865e-1b58068c4d35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1141" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2\",\"name\":\"queueAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3\",\"name\":\"queueAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "0fd9e563-f7da-4083-97ee-d05cb4a5feff" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "91610f90-adc9-4a4c-becd-c4bc10356815_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], + "x-ms-correlation-request-id": [ "b335ce2a-2eb9-4a35-b384-bcd441f28d55" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080010Z:b335ce2a-2eb9-4a35-b384-bcd441f28d55" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2\",\"name\":\"topicAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3\",\"name\":\"topicAuthRule3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedNamespace+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "8595413d-f7a9-4f06-8e36-967ff884ae2e" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusNamespaceAuthorizationRule_Delete" ], + "FullCommandName": [ "Remove-AzServiceBusNamespaceAuthorizationRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cc31ddab-831a-4689-a713-8e83a4886978_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "c6fe796f-58eb-4b41-8afc-d18373521d5e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080018Z:c6fe796f-58eb-4b41-8afc-d18373521d5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedNamespace+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "eb42d36a-5023-4455-9a31-697b09b0442c" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "991e1bf7-6108-4269-af22-235282a1bb97_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], + "x-ms-correlation-request-id": [ "20768c2b-a828-42c1-97e7-9569ccf4ff17" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080019Z:20768c2b-a828-42c1-97e7-9569ccf4ff17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "151" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource namespaceAuthRule3 does not exist. CorrelationId: 20768c2b-a828-42c1-97e7-9569ccf4ff17\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedNamespace+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "107" ], + "x-ms-client-request-id": [ "9d6f5a8a-4e67-4e52-bec4-9d063d5841a2" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f6bbb679-4ba8-4b5e-be09-e9c4284882ad_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], + "x-ms-correlation-request-id": [ "ee9dec60-7b8b-467c-9ebe-fd9c35e8e656" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080020Z:ee9dec60-7b8b-467c-9ebe-fd9c35e8e656" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1114" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2\",\"name\":\"namespaceAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedTopic+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "91251b87-14f6-4d98-bb3e-86dc2a7a99ae" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusTopicAuthorizationRule_Delete" ], + "FullCommandName": [ "Remove-AzServiceBusTopicAuthorizationRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ff387d59-d997-49c2-b6b1-f36efc594048_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "29ca640f-21d8-45fd-94ab-431c63e80d20" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080021Z:29ca640f-21d8-45fd-94ab-431c63e80d20" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:20 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedTopic+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "137bc49d-ecb0-4a1d-8808-d4d40c26a56e" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2837141b-7815-4992-adf0-6e8ac6e09d9a_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], + "x-ms-correlation-request-id": [ "d70fae0c-e543-4a10-a517-c857f20400a1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080022Z:d70fae0c-e543-4a10-a517-c857f20400a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource topicAuthRule3 does not exist. CorrelationId: d70fae0c-e543-4a10-a517-c857f20400a1\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedTopic+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "fc7664c7-409a-43df-9b38-4ec22e3428cb" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3dfb17c8-03d6-4bd4-b847-b2712dd91a17_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], + "x-ms-correlation-request-id": [ "2929692c-de7e-4879-86f9-f3b438cebcef" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080022Z:2929692c-de7e-4879-86f9-f3b438cebcef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "759" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2\",\"name\":\"topicAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedQueue+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "b51ba994-ec87-4371-a39c-a586af3305a1" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusQueueAuthorizationRule_Delete" ], + "FullCommandName": [ "Remove-AzServiceBusQueueAuthorizationRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "758e79af-3d5a-4de5-9157-91b5f8632f01_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "1e580f57-f7e0-4c04-b7fe-cf69aa20a393" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080024Z:1e580f57-f7e0-4c04-b7fe-cf69aa20a393" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:24 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedQueue+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "2687ab86-33d3-4975-b0ec-d6305a6fff4e" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "68fb38f2-2197-469e-9085-7ff794c47687_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], + "x-ms-correlation-request-id": [ "72042d93-0a31-4b41-b6d2-e24bf3f0a5ad" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080025Z:72042d93-0a31-4b41-b6d2-e24bf3f0a5ad" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource queueAuthRule3 does not exist. CorrelationId: 72042d93-0a31-4b41-b6d2-e24bf3f0a5ad\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveExpandedQueue+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "699f4a54-30e5-4dd8-9c14-983f874d684b" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ac846bd9-4f93-4252-b38f-c9934dc978c4_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], + "x-ms-correlation-request-id": [ "6f50cc15-c9b0-4404-a779-bc50170b32b6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080026Z:6f50cc15-c9b0-4404-a779-bc50170b32b6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "775" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2\",\"name\":\"queueAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "b1b5f7bb-a960-4da7-a2a3-ead7c02f945f" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a222f96d-785f-4a1b-92a8-d0ad201260b5_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], + "x-ms-correlation-request-id": [ "fe47b452-0f80-4179-bb86-9caf11c57876" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080027Z:fe47b452-0f80-4179-bb86-9caf11c57876" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "350" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2\",\"name\":\"namespaceAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "2596528c-e6c6-4b10-b9e8-2569dab1662a" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity" ], + "FullCommandName": [ "Remove-AzServiceBusNamespaceAuthorizationRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fceb8adb-b0ad-4c47-a7fc-57f810dce365_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], + "x-ms-correlation-request-id": [ "ffa7b2e9-62fa-4db6-8a1c-c16c5839b39a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080034Z:ffa7b2e9-62fa-4db6-8a1c-c16c5839b39a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:33 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "aa8358ee-e556-4dbc-a228-698c5568f195" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cf514186-515d-45f6-a0e1-40a9ce000b04_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], + "x-ms-correlation-request-id": [ "0c2504b1-ef0d-406e-b0ae-5fd9908ae436" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080035Z:0c2504b1-ef0d-406e-b0ae-5fd9908ae436" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "151" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource namespaceAuthRule2 does not exist. CorrelationId: 0c2504b1-ef0d-406e-b0ae-5fd9908ae436\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "e8a3fef4-6bb5-4e44-8f16-3e2ccfd9dd02" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "40dff8fc-1fee-43ee-a799-80c2cda6cacc_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-correlation-request-id": [ "91fdd3bc-f666-444e-b3e3-5e21aa3daa51" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080036Z:91fdd3bc-f666-444e-b3e3-5e21aa3daa51" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "763" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/RootManageSharedAccessKey\",\"name\":\"RootManageSharedAccessKey\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "8bc4ff4b-8935-4954-bbb9-d25fbbe7dea5" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "82e28b08-f4c2-4757-bfa9-d02fdb327994_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-correlation-request-id": [ "0c95bec9-de12-42ac-a1a2-9cd266b9fd6d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080037Z:0c95bec9-de12-42ac-a1a2-9cd266b9fd6d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2\",\"name\":\"queueAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "82f88eff-9b36-4bb2-b46f-c03c67ee95af" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusQueueAuthorizationRule_DeleteViaIdentity" ], + "FullCommandName": [ "Remove-AzServiceBusQueueAuthorizationRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ec3472d0-a321-4608-a098-bff53577820a_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-correlation-request-id": [ "d137c317-3e8f-401f-be42-af7a961b632f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080039Z:d137c317-3e8f-401f-be42-af7a961b632f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:38 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "027e7b3c-7eb6-434b-bbeb-688f67b0076f" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0f5127c3-2b72-425a-ae45-6692b660c970_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-correlation-request-id": [ "7e1272bd-1917-4cb0-97b4-ef28b942aafa" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080039Z:7e1272bd-1917-4cb0-97b4-ef28b942aafa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource queueAuthRule2 does not exist. CorrelationId: 7e1272bd-1917-4cb0-97b4-ef28b942aafa\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "c7ed620a-b9b9-4e50-a86b-2e3e4a5c3cb4" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "47268e72-0e31-455c-a563-80d6cc284678_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], + "x-ms-correlation-request-id": [ "aab4483f-2d35-4ff8-837e-2c92ae65742f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080040Z:aab4483f-2d35-4ff8-837e-2c92ae65742f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "393" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "c5a5f425-4aaa-480a-a358-8466f63a2989" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "44833e8a-1bb5-43ff-8f7e-2a4c208af224_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], + "x-ms-correlation-request-id": [ "d035a46a-831a-4877-91e6-109f3fbeed17" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080041Z:d035a46a-831a-4877-91e6-109f3fbeed17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "365" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2\",\"name\":\"topicAuthRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "a849a80a-1c74-45fb-adf1-aae2bacbedcf" ], + "CommandName": [ "Az.ServiceBus.private\\Remove-AzServiceBusTopicAuthorizationRule_DeleteViaIdentity" ], + "FullCommandName": [ "Remove-AzServiceBusTopicAuthorizationRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9e92778d-226c-4c0f-9633-967d40903ee2_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], + "x-ms-correlation-request-id": [ "bce4d9f0-ced9-4ce2-93e4-d85a37ac5fe6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080042Z:bce4d9f0-ced9-4ce2-93e4-d85a37ac5fe6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:41 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "8dba3c94-fa23-4074-8fae-4a81672fde81" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "97facc9e-7855-49d6-a5d8-ffb1e8d3cdce_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], + "x-ms-correlation-request-id": [ "2cdd3752-d4c0-4cbd-83ce-591b6e2a8c1e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080043Z:2cdd3752-d4c0-4cbd-83ce-591b6e2a8c1e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "147" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource topicAuthRule2 does not exist. CorrelationId: 2cdd3752-d4c0-4cbd-83ce-591b6e2a8c1e\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusAuthorizationRule+[NoContext]+RemoveViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "ac00df2d-688b-447c-985b-db549753ea4d" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_List" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "685501c3-fad5-45b4-a48d-cafe3bc8d7d8_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], + "x-ms-correlation-request-id": [ "d2892c1a-e38d-4b0c-ac49-5994ef5ea183" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080044Z:d2892c1a-e38d-4b0c-ac49-5994ef5ea183" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:00:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "393" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Tests.ps1 new file mode 100644 index 000000000000..dea1d0201a01 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusAuthorizationRule.Tests.ps1 @@ -0,0 +1,66 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusAuthorizationRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusAuthorizationRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusAuthorizationRule' { + $namespaceAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $queueAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 + $topicAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + + $namespaceAuthRules.Count | Should -Be 4 + $queueAuthRules.Count | Should -Be 3 + $topicAuthRules.Count | Should -Be 3 + + It 'RemoveExpandedNamespace' { + Remove-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule3 + { Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule3 } | Should -Throw + $namespaceAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $namespaceAuthRules.Count | Should -Be 3 + } + + It 'RemoveExpandedTopic' { + Remove-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule3 + { Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule3 } | Should -Throw + $topicAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $topicAuthRules.Count | Should -Be 2 + } + + It 'RemoveExpandedQueue' { + Remove-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule3 + { Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule3 } | Should -Throw + $queueAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 + $queueAuthRules.Count | Should -Be 2 + } + + It 'RemoveViaIdentityExpanded' { + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule2 + Remove-AzServiceBusAuthorizationRule -InputObject $authRule + { Get-AzServiceBusAuthorizationRule -InputObject $authRule } | Should -Throw + $namespaceAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $namespaceAuthRules.Count | Should -Be 2 + + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule2 + Remove-AzServiceBusAuthorizationRule -InputObject $authRule + { Get-AzServiceBusAuthorizationRule -InputObject $authRule } | Should -Throw + $queueAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 + $queueAuthRules.Count | Should -Be 1 + + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule2 + Remove-AzServiceBusAuthorizationRule -InputObject $authRule + { Get-AzServiceBusAuthorizationRule -InputObject $authRule } | Should -Throw + $topicAuthRules = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 + $topicAuthRules.Count | Should -Be 1 + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusGeoDRConfiguration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusGeoDRConfiguration.Tests.ps1 new file mode 100644 index 000000000000..0f68fbdb78f7 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusGeoDRConfiguration.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusGeoDRConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusGeoDRConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusGeoDRConfiguration' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusMigration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusMigration.Tests.ps1 new file mode 100644 index 000000000000..337f623ed020 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusMigration.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusMigration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusMigration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusMigration' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Recording.json new file mode 100644 index 000000000000..6cc1c359dcbe --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Recording.json @@ -0,0 +1,338 @@ +{ + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+[NoScenario]+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "2e859928-30d8-4750-9c51-d90b96bc1058" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a1a3aaf3-90cb-4a6a-9693-48ed207cd618_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], + "x-ms-correlation-request-id": [ "8d707b05-d648-4aea-9ac5-de8b208f3552" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080123Z:8d707b05-d648-4aea-9ac5-de8b208f3552" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1402" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe1pfd7tg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"\"},\"groupIds\":[\"namespace\"]}},{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}]}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "afd38a41-7a37-4079-8a48-8052d8ba94f4" ], + "CommandName": [ "Remove-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Remove-AzServiceBusPrivateEndpointConnection_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f9aae6e6-e3a9-4156-8141-dbbcd7e3763d_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview\u0026operationType=Delete" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], + "x-ms-correlation-request-id": [ "5e9b7e00-cda2-4160-92a0-be935cf68483" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080124Z:5e9b7e00-cda2-4160-92a0-be935cf68483" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:24 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview\u0026operationType=Delete+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview\u0026operationType=Delete", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "afd38a41-7a37-4079-8a48-8052d8ba94f4" ], + "CommandName": [ "Remove-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Remove-AzServiceBusPrivateEndpointConnection_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "503b04a9-f937-49b7-8cd2-f1a8dd24aa7d_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], + "x-ms-correlation-request-id": [ "135fb596-32a3-454a-8e35-5026c64c8087" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080154Z:135fb596-32a3-454a-8e35-5026c64c8087" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "470" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa/operationStatus/4c786150-6e19-45e9-98fd-301264b815fa\",\"name\":\"4c786150-6e19-45e9-98fd-301264b815fa\",\"status\":\"Succeeded\",\"startTime\":\"0001-01-01T00:00:00Z\",\"endTime\":\"0001-01-01T00:00:00Z\"}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/4c786150-6e19-45e9-98fd-301264b815fa?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "31fd6c44-d48d-4f44-a601-7ccb531608ae" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6b8d4419-55ee-4e69-8903-ab820f2d79cf_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], + "x-ms-correlation-request-id": [ "d6ac35b2-5f05-4ffe-96a8-85b77c9335d5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080155Z:d6ac35b2-5f05-4ffe-96a8-85b77c9335d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "169" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource 4c786150-6e19-45e9-98fd-301264b815fa does not exist. CorrelationId: d6ac35b2-5f05-4ffe-96a8-85b77c9335d5\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "17f53d15-85e1-405a-ab12-9cba2573906e" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "839a7fb5-dc80-440c-a528-0b690a9af953_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], + "x-ms-correlation-request-id": [ "cd56a2e2-b3a7-4138-9c3f-384d61727473" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080155Z:cd56a2e2-b3a7-4138-9c3f-384d61727473" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "696" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"type\":\"Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections\",\"location\":\"North Europe\",\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.Network/privateEndpoints/pe2o9yp1q\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"Bye\"},\"groupIds\":[\"namespace\"]}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "42689d42-d1a9-4a9d-92b8-50ccc182b8e6" ], + "CommandName": [ "Remove-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Remove-AzServiceBusPrivateEndpointConnection_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "40310e35-05e6-4cbe-9e13-5b2aec9ad868_M5CH3_M5CH3" ], + "Azure-AsyncOperation": [ "https://management.azure.com:443/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview\u0026operationType=Delete" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], + "x-ms-correlation-request-id": [ "cd8bd61a-f930-470e-b0ec-2f0e09e9c8d8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080156Z:cd8bd61a-f930-470e-b0ec-2f0e09e9c8d8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:01:56 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview\u0026operationType=Delete+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview\u0026operationType=Delete", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "42689d42-d1a9-4a9d-92b8-50ccc182b8e6" ], + "CommandName": [ "Remove-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Remove-AzServiceBusPrivateEndpointConnection_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f6918f22-dc1b-42c0-a410-4064c0b0c3ce_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "21ae9ddb-b3a0-4bb7-9014-b77096fe6217" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080227Z:21ae9ddb-b3a0-4bb7-9014-b77096fe6217" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "470" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3/operationStatus/86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"name\":\"86ba0508-893f-4b99-a52c-41d8877ab8d3\",\"status\":\"Succeeded\",\"startTime\":\"0001-01-01T00:00:00Z\",\"endTime\":\"0001-01-01T00:00:00Z\"}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusPrivateEndpointConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/privateEndpointConnections/86ba0508-893f-4b99-a52c-41d8877ab8d3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "133" ], + "x-ms-client-request-id": [ "015fbd0e-1ea5-45ac-8527-94bd0c74e959" ], + "CommandName": [ "Get-AzServiceBusPrivateEndpointConnection" ], + "FullCommandName": [ "Get-AzServiceBusPrivateEndpointConnection_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1082f2a4-e2e9-4f7f-847b-e66ccc034074_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], + "x-ms-correlation-request-id": [ "4f1d1172-90e9-423e-ac2f-e073c1a37bfa" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080227Z:4f1d1172-90e9-423e-ac2f-e073c1a37bfa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "169" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource 86ba0508-893f-4b99-a52c-41d8877ab8d3 does not exist. CorrelationId: 4f1d1172-90e9-423e-ac2f-e073c1a37bfa\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Tests.ps1 new file mode 100644 index 000000000000..c1f459f3eebd --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusPrivateEndpointConnection.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusPrivateEndpointConnection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusPrivateEndpointConnection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusPrivateEndpointConnection' { + $listOfPrivateEndpoints = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + It 'Delete' { + Remove-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $listOfPrivateEndpoints[0].Name + { Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $listOfPrivateEndpoints[0].Name } | Should -Throw + } + + It 'DeleteViaIdentity' { + $privateEndpoint = Get-AzServiceBusPrivateEndpointConnection -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $listOfPrivateEndpoints[1].Name + Remove-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint + { Get-AzServiceBusPrivateEndpointConnection -InputObject $privateEndpoint } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Recording.json new file mode 100644 index 000000000000..56604dbe4738 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Recording.json @@ -0,0 +1,242 @@ +{ + "Remove-AzServiceBusQueue+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8bd6e487-ff40-4114-b3bb-c70a049c97bc_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], + "x-ms-correlation-request-id": [ "a64c6b16-c1b6-4fb8-b4b9-77227724698a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080243Z:a64c6b16-c1b6-4fb8-b4b9-77227724698a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1047" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove\",\"name\":\"queueToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T08:02:42.36Z\",\"updatedAt\":\"2022-09-27T08:02:42.49Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusQueue+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "135" ], + "x-ms-client-request-id": [ "6bb4289e-7a29-4f87-a5f4-3527e57e3f13" ], + "CommandName": [ "Remove-AzServiceBusQueue" ], + "FullCommandName": [ "Remove-AzServiceBusQueue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5c44a255-efe9-46b3-8bcc-d9a3f244a627_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14991" ], + "x-ms-correlation-request-id": [ "558a0e37-a281-49d3-91df-556db4b30647" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080244Z:558a0e37-a281-49d3-91df-556db4b30647" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:44 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusQueue+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "136" ], + "x-ms-client-request-id": [ "ea958898-b902-4316-bdcc-fcc0fb98124a" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "830e99bb-8b57-49ef-9bd6-15bfc82d54c0_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], + "x-ms-correlation-request-id": [ "27e4353c-bb9a-4648-bb8e-93105648b4c7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080246Z:27e4353c-bb9a-4648-bb8e-93105648b4c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "146" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource queueToRemove does not exist. CorrelationId: 27e4353c-bb9a-4648-bb8e-93105648b4c7\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusQueue+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "65aa05db-51b0-47e5-a5c6-6a6038d4d68d_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], + "x-ms-correlation-request-id": [ "48f17752-2bce-46b7-8ab2-a1547e88a2ec" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080248Z:48f17752-2bce-46b7-8ab2-a1547e88a2ec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1048" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove\",\"name\":\"queueToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T08:02:48.063Z\",\"updatedAt\":\"2022-09-27T08:02:48.14Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusQueue+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "138" ], + "x-ms-client-request-id": [ "ac773683-8982-4d8b-86dc-2c434d71a1e2" ], + "CommandName": [ "Remove-AzServiceBusQueue" ], + "FullCommandName": [ "Remove-AzServiceBusQueue_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "08ff5997-ded2-4334-bdcf-801ffe4794dd_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14990" ], + "x-ms-correlation-request-id": [ "fc788c9b-74a1-4969-a15f-2e4f06aad84a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080249Z:fc788c9b-74a1-4969-a15f-2e4f06aad84a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusQueue+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queueToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "139" ], + "x-ms-client-request-id": [ "94b22e0d-7838-4b34-acd2-6aec345a3237" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ccaa4215-d70e-40da-8d14-f351846f2e08_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], + "x-ms-correlation-request-id": [ "59897f99-6ca9-4192-9369-9001f6c4213e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080251Z:59897f99-6ca9-4192-9369-9001f6c4213e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:02:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "146" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource queueToRemove does not exist. CorrelationId: 59897f99-6ca9-4192-9369-9001f6c4213e\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Tests.ps1 new file mode 100644 index 000000000000..cf547b350ca7 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusQueue.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusQueue')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusQueue.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusQueue' { + It 'Delete' { + New-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queueToRemove + Remove-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queueToRemove + { Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queueToRemove } | Should -Throw + } + + It 'DeleteViaIdentity' { + $queue = New-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queueToRemove + Remove-AzServiceBusQueue -InputObject $queue + { Get-AzServiceBusQueue -InputObject $queue } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Recording.json new file mode 100644 index 000000000000..821d4125a9c4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Recording.json @@ -0,0 +1,242 @@ +{ + "Remove-AzServiceBusRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d383c13b-7380-41dc-bbd9-bbf655f4bdde_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], + "x-ms-correlation-request-id": [ "75f57ef3-f565-45ca-bb7f-dc169dd7d9ef" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080303Z:75f57ef3-f565-45ca-bb7f-dc169dd7d9ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "460" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove\",\"name\":\"sqlRuleToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=1\",\"compatibilityLevel\":20}}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "141" ], + "x-ms-client-request-id": [ "d4f628ea-c9d9-4a49-9b62-c56cb09270d5" ], + "CommandName": [ "Remove-AzServiceBusRule" ], + "FullCommandName": [ "Remove-AzServiceBusRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ce5c4b11-c163-4e43-8d57-bb5d2b90c0e9_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14989" ], + "x-ms-correlation-request-id": [ "a9abea14-2e8f-4c38-bcb1-650ed1e4ac97" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080304Z:a9abea14-2e8f-4c38-bcb1-650ed1e4ac97" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:04 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "142" ], + "x-ms-client-request-id": [ "27393d1b-f52d-422e-b451-e4d86aba9188" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "58971b0c-7416-4c4f-8aeb-c1c3dcd9052c_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], + "x-ms-correlation-request-id": [ "43a5d295-1f3a-47ab-a620-f7cbbd7b36fe" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080306Z:43a5d295-1f3a-47ab-a620-f7cbbd7b36fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "416" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Entity \u0027namespacenamec1leiv:Topic:topic1|subscription1|sqlRuleToRemove\u0027 was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:58971b0c-7416-4c4f-8aeb-c1c3dcd9052c_M6SN1_M6SN1_G6_B42, SystemTracker:namespacenamec1leiv:Topic:topic1|subscription1|sqlRuleToRemove, Timestamp:2022-09-27T08:03:05 CorrelationId: 43a5d295-1f3a-47ab-a620-f7cbbd7b36fe\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "229858b4-ee37-4932-9104-2d65ec37bcab_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], + "x-ms-correlation-request-id": [ "c6955f17-2a7e-436c-b6aa-c154b39d70ed" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080308Z:c6955f17-2a7e-436c-b6aa-c154b39d70ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "460" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove\",\"name\":\"sqlRuleToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=1\",\"compatibilityLevel\":20}}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "144" ], + "x-ms-client-request-id": [ "42575244-933b-43fc-9ac5-6ccc2acf1b3e" ], + "CommandName": [ "Remove-AzServiceBusRule" ], + "FullCommandName": [ "Remove-AzServiceBusRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "27af10d2-b1b1-41fd-b5e6-51ae182e827d_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14988" ], + "x-ms-correlation-request-id": [ "422ec835-8a06-4765-a457-a49ca94c77e8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080309Z:422ec835-8a06-4765-a457-a49ca94c77e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:08 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRuleToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "145" ], + "x-ms-client-request-id": [ "92dd6268-3858-490c-9293-b96ec2dce654" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ee4f3e05-1a6d-4bad-8438-3465ffd0bec7_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], + "x-ms-correlation-request-id": [ "7e6777bb-cfc2-4283-8ea3-5a9ec73d40f5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080310Z:7e6777bb-cfc2-4283-8ea3-5a9ec73d40f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "416" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Entity \u0027namespacenamec1leiv:Topic:topic1|subscription1|sqlRuleToRemove\u0027 was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:ee4f3e05-1a6d-4bad-8438-3465ffd0bec7_M6SN1_M6SN1_G9_B42, SystemTracker:namespacenamec1leiv:Topic:topic1|subscription1|sqlRuleToRemove, Timestamp:2022-09-27T08:03:09 CorrelationId: 7e6777bb-cfc2-4283-8ea3-5a9ec73d40f5\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Tests.ps1 new file mode 100644 index 000000000000..15f582fd8c34 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusRule.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusRule' { + It 'Delete' { + New-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRuleToRemove + Remove-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRuleToRemove + { Get-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRuleToRemove } | Should -Throw + } + + It 'DeleteViaIdentity' { + $rule = New-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRuleToRemove + Remove-AzServiceBusRule -InputObject $rule + { Get-AzServiceBusRule -InputObject $rule } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Recording.json new file mode 100644 index 000000000000..6ca4d3595396 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Recording.json @@ -0,0 +1,242 @@ +{ + "Remove-AzServiceBusSubscription+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "98e83c32-7ae9-4d45-8fe0-7298543e5bff_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], + "x-ms-correlation-request-id": [ "a86ad458-fb95-4653-934b-8c42d0553721" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080325Z:a86ad458-fb95-4653-934b-8c42d0553721" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "955" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove\",\"name\":\"subToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:03:25.2713751Z\",\"updatedAt\":\"2022-09-27T08:03:25.2713751Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusSubscription+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "147" ], + "x-ms-client-request-id": [ "e0997aa3-c810-4ada-918f-4444d71c87ad" ], + "CommandName": [ "Remove-AzServiceBusSubscription" ], + "FullCommandName": [ "Remove-AzServiceBusSubscription_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d1f03f8d-a601-43c6-a782-39df2605503c_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14987" ], + "x-ms-correlation-request-id": [ "c39c7684-6447-4276-9bdf-ccb8d65275ab" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080326Z:c39c7684-6447-4276-9bdf-ccb8d65275ab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:25 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusSubscription+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "148" ], + "x-ms-client-request-id": [ "27d2dac2-9bf3-465e-8215-70b915188db4" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4d0f0efe-7850-49a7-928c-336910c136c8_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], + "x-ms-correlation-request-id": [ "8723aa41-336e-4bdc-be4e-2647a604b3f8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080328Z:8723aa41-336e-4bdc-be4e-2647a604b3f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "380" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Entity \u0027namespacenamec1leiv:Topic:topic1|subToRemove\u0027 was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:4d0f0efe-7850-49a7-928c-336910c136c8_M6SN1_M6SN1_G9_B42, SystemTracker:namespacenamec1leiv:Topic:topic1|subToRemove, Timestamp:2022-09-27T08:03:26 CorrelationId: 8723aa41-336e-4bdc-be4e-2647a604b3f8\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusSubscription+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cbbd9ce7-17a5-4acd-a0ad-1529621c6ee8_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], + "x-ms-correlation-request-id": [ "5bdb05ab-c650-43b7-8e1c-b3ed5b279c55" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080329Z:5bdb05ab-c650-43b7-8e1c-b3ed5b279c55" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "955" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove\",\"name\":\"subToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:03:29.5841095Z\",\"updatedAt\":\"2022-09-27T08:03:29.5841095Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusSubscription+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "150" ], + "x-ms-client-request-id": [ "7aeb17ce-897d-4425-9faa-284ba765f167" ], + "CommandName": [ "Remove-AzServiceBusSubscription" ], + "FullCommandName": [ "Remove-AzServiceBusSubscription_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b4b902f5-bed8-4b78-893b-aa369ec2b3d7_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14986" ], + "x-ms-correlation-request-id": [ "871ace46-972b-4d66-98b9-42e3a1080a3d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080330Z:871ace46-972b-4d66-98b9-42e3a1080a3d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:29 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusSubscription+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "151" ], + "x-ms-client-request-id": [ "dcfe78fc-1bb6-4793-95d7-cf2d9a32d6bd" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "78f30219-bf11-4555-8146-8230dcd6ac8c_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], + "x-ms-correlation-request-id": [ "4a4508b7-9b04-4874-887c-2d37a6ff1565" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080332Z:4a4508b7-9b04-4874-887c-2d37a6ff1565" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "380" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Entity \u0027namespacenamec1leiv:Topic:topic1|subToRemove\u0027 was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:78f30219-bf11-4555-8146-8230dcd6ac8c_M6SN1_M6SN1_G9_B42, SystemTracker:namespacenamec1leiv:Topic:topic1|subToRemove, Timestamp:2022-09-27T08:03:31 CorrelationId: 4a4508b7-9b04-4874-887c-2d37a6ff1565\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Tests.ps1 new file mode 100644 index 000000000000..c1765be27964 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusSubscription.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusSubscription' { + It 'Delete' { + New-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subToRemove + Remove-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subToRemove + { Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subToRemove } | Should -Throw + } + + It 'DeleteViaIdentity' { + $sub = New-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subToRemove + Remove-AzServiceBusSubscription -InputObject $sub + { Get-AzServiceBusSubscription -InputObject $sub } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Recording.json new file mode 100644 index 000000000000..c89ea27dd36f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Recording.json @@ -0,0 +1,242 @@ +{ + "Remove-AzServiceBusTopic+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "103e1af2-4e6c-4b07-8977-d5960f0c5534_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], + "x-ms-correlation-request-id": [ "f0f47cbe-8e2c-4c07-aaf5-9f1e198463bc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080347Z:f0f47cbe-8e2c-4c07-aaf5-9f1e198463bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "967" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove\",\"name\":\"topicToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:03:46.88Z\",\"updatedAt\":\"2022-09-27T08:03:47.027Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusTopic+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "153" ], + "x-ms-client-request-id": [ "af739bd7-9b26-4c78-a2ee-b8a9c1c35a3f" ], + "CommandName": [ "Remove-AzServiceBusTopic" ], + "FullCommandName": [ "Remove-AzServiceBusTopic_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9e56a981-c191-45d0-aba4-08092474a6d7_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14985" ], + "x-ms-correlation-request-id": [ "3bf0bacc-f0dc-42a0-b2a9-e1aa4085c366" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080348Z:3bf0bacc-f0dc-42a0-b2a9-e1aa4085c366" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:48 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusTopic+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "154" ], + "x-ms-client-request-id": [ "919f4803-a23b-4253-a2bb-80e2d025884c" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f42aaa41-b50a-471d-9fc6-880a7aa4245e_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "d8f91968-998b-483d-a616-38235530bfd7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080350Z:d8f91968-998b-483d-a616-38235530bfd7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "146" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource topicToRemove does not exist. CorrelationId: d8f91968-998b-483d-a616-38235530bfd7\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusTopic+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d1064f26-830d-47e3-bd46-6b8e8f4ea2a5_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], + "x-ms-correlation-request-id": [ "2722858c-4df5-48c6-9dd5-0a9a1d4af9c7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080352Z:2722858c-4df5-48c6-9dd5-0a9a1d4af9c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "966" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove\",\"name\":\"topicToRemove\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:03:52.1Z\",\"updatedAt\":\"2022-09-27T08:03:52.173Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Remove-AzServiceBusTopic+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "156" ], + "x-ms-client-request-id": [ "cbce3a09-f26f-48b9-bc11-13cd45664551" ], + "CommandName": [ "Remove-AzServiceBusTopic" ], + "FullCommandName": [ "Remove-AzServiceBusTopic_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "98c85204-07b7-4bc5-9ee5-3ba4f700df95_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14984" ], + "x-ms-correlation-request-id": [ "5e70b6b8-39c6-465d-80bd-e3d9532d7f66" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080354Z:5e70b6b8-39c6-465d-80bd-e3d9532d7f66" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:53 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzServiceBusTopic+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToRemove?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "157" ], + "x-ms-client-request-id": [ "38790138-4699-485d-a9e8-1d534321ed8c" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "48f3d2b1-1bdd-4fb2-a407-7ec1548c2e2e_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "c011ad91-31c7-410d-a74c-c4651868417c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080355Z:c011ad91-31c7-410d-a74c-c4651868417c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:03:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "146" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"The requested resource topicToRemove does not exist. CorrelationId: c011ad91-31c7-410d-a74c-c4651868417c\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Tests.ps1 new file mode 100644 index 000000000000..54365a160655 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Remove-AzServiceBusTopic.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzServiceBusTopic')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzServiceBusTopic.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzServiceBusTopic' { + It 'Delete' { + New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToRemove + Remove-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToRemove + { Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToRemove } | Should -Throw + } + + It 'DeleteViaIdentity' { + $topic = New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToRemove + Remove-AzServiceBusTopic -InputObject $topic + { Get-AzServiceBusTopic -InputObject $topic } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Recording.json new file mode 100644 index 000000000000..2faa09d5c40f --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Recording.json @@ -0,0 +1,639 @@ +{ + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedNamespace+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "158" ], + "x-ms-client-request-id": [ "bcd0827a-b2e7-4687-aac8-136c1effa1f1" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "29a74d74-044a-4337-b6a0-d5b93dd1e7da_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "907f1137-7e28-4dd8-9741-d48b189832a6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080409Z:907f1137-7e28-4dd8-9741-d48b189832a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedNamespace+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\", \"Listen\", \"Manage\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "70" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2832568a-5240-4728-89f3-86b3ee24c24b_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], + "x-ms-correlation-request-id": [ "1f4979b8-ef2b-4293-ab6b-9cfea638cde1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080416Z:1f4979b8-ef2b-4293-ab6b-9cfea638cde1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Listen\",\"Manage\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedQueue+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "160" ], + "x-ms-client-request-id": [ "6525f93a-3025-46dd-800c-1d3e46e799d3" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "601fbff3-fa63-4aa5-9ea1-c07a6061cea2_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "x-ms-correlation-request-id": [ "09c927bb-a2de-4639-ac13-ec5360ab7d03" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080417Z:09c927bb-a2de-4639-ac13-ec5360ab7d03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedQueue+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "50" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "92b47903-c334-4e32-8e23-c90572445d1a_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], + "x-ms-correlation-request-id": [ "e4b3aed9-6ac1-4183-aa48-5eafbcfcca8c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080418Z:e4b3aed9-6ac1-4183-aa48-5eafbcfcca8c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedTopic+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "162" ], + "x-ms-client-request-id": [ "1fece702-5e5a-4f7d-b023-cd0d66c7b900" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "827924a0-6ad5-4987-a0af-0173234bd23f_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "ae6f35ec-e9e5-4847-99a8-3e6df8a84152" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080419Z:ae6f35ec-e9e5-4847-99a8-3e6df8a84152" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Manage\",\"Listen\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetExpandedTopic+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Listen\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "52" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0b7e8a52-885a-4cef-a809-be714285cfaf_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1171" ], + "x-ms-correlation-request-id": [ "bbaf2081-b30c-4fbc-ac4b-b00808188b6d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080420Z:bbaf2081-b30c-4fbc-ac4b-b00808188b6d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "365" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "164" ], + "x-ms-client-request-id": [ "d00fdceb-5920-461b-b1eb-2fc892d42af5" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cf6c1550-1918-4b80-91e9-c5c1785b555a_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "4c3cbc0d-1689-4111-a9da-0a70e9728d38" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080421Z:4c3cbc0d-1689-4111-a9da-0a70e9728d38" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Listen\",\"Manage\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "165" ], + "x-ms-client-request-id": [ "b5dfb1f5-4cde-4e1b-9a78-d9be5b1edc25" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusNamespaceAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1c21409b-d8fe-43e0-8b8a-eb1d1d9daaf5_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "6b48d884-fbc4-44ff-baac-d3c2ddf0d425" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080422Z:6b48d884-fbc4-44ff-baac-d3c2ddf0d425" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "368" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\",\"Listen\",\"Manage\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "50" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0076dc1a-791a-45f1-8fea-ea73994de65c_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1170" ], + "x-ms-correlation-request-id": [ "bf511ee4-d655-40e5-a483-99e5a9499a8b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080428Z:bf511ee4-d655-40e5-a483-99e5a9499a8b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "350" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/AuthorizationRules/namespaceAuthRule1\",\"name\":\"namespaceAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "167" ], + "x-ms-client-request-id": [ "48c21d01-8791-46cb-ab3c-5786c970f48e" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "46011aa4-6b17-4fab-a61f-a6d0a4d41d23_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "1feb7b7c-4f2e-43ec-bb6b-977d813454e2" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080429Z:1feb7b7c-4f2e-43ec-bb6b-977d813454e2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "168" ], + "x-ms-client-request-id": [ "3e2e0b8c-0b22-4651-82d5-15c6a7aec021" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusQueueAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "67a5dd6a-4055-4743-9cb1-1f09eaeb8558_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "x-ms-correlation-request-id": [ "5767cc94-0e5b-480c-9b54-cd74558050a8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080430Z:5767cc94-0e5b-480c-9b54-cd74558050a8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Listen\", \"Manage\", \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "70" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e9156726-8f1a-4622-aa59-f13e8e040d41_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1169" ], + "x-ms-correlation-request-id": [ "cef4ab21-ff19-4090-8afe-bf77d814aab7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080430Z:cef4ab21-ff19-4090-8afe-bf77d814aab7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue1/authorizationRules/queueAuthRule1\",\"name\":\"queueAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "50" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3d65ca1a-8782-4618-b1cd-ccde862ac362_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1168" ], + "x-ms-correlation-request-id": [ "54cd2d56-01a4-4516-aaa3-b515279b3278" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080431Z:54cd2d56-01a4-4516-aaa3-b515279b3278" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "171" ], + "x-ms-client-request-id": [ "018eb343-f474-41d4-95cb-6d332c69f73e" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_Get" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "79395acb-c2e9-46ad-b928-f0abffda2963_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], + "x-ms-correlation-request-id": [ "93660336-5219-4d55-b638-27186815662b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080432Z:93660336-5219-4d55-b638-27186815662b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "172" ], + "x-ms-client-request-id": [ "f4b35c7a-9f03-4cf6-a351-9fdf0ffbca2f" ], + "CommandName": [ "Az.ServiceBus.private\\Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "FullCommandName": [ "Get-AzServiceBusTopicAuthorizationRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8ee30708-195b-4c9b-a613-06a64f1c6046_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], + "x-ms-correlation-request-id": [ "e252caa6-dc9b-4b9d-83b2-d4691f5698ec" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080433Z:e252caa6-dc9b-4b9d-83b2-d4691f5698ec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Send\"]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusAuthorizationRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"rights\": [ \"Listen\", \"Manage\", \"Send\" ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "70" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3cd46300-c109-45df-afa9-eddede7b52bb_M6SN1_M6SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1167" ], + "x-ms-correlation-request-id": [ "7c8e1f09-db59-428b-b6da-e83722a5b877" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080434Z:7c8e1f09-db59-428b-b6da-e83722a5b877" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "381" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/authorizationRules/topicAuthRule1\",\"name\":\"topicAuthRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules\",\"location\":\"North Europe\",\"properties\":{\"rights\":[\"Listen\",\"Manage\",\"Send\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Tests.ps1 new file mode 100644 index 000000000000..a49aad1b57ad --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusAuthorizationRule.Tests.ps1 @@ -0,0 +1,59 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusAuthorizationRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusAuthorizationRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzServiceBusAuthorizationRule' { + It 'SetExpandedNamespace' { + $authRule = Set-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 -Rights @("Send","Listen","Manage") + $authRule.Name | Should -Be "namespaceAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 3 + } + + It 'SetExpandedQueue' { + $authRule = Set-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 -Rights @("Send") + $authRule.Name | Should -Be "queueAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 1 + } + + It 'SetExpandedTopic' { + $authRule = Set-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -Rights @("Listen") + $authRule.Name | Should -Be "topicAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 1 + } + + It 'SetViaIdentityExpanded' { + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name namespaceAuthRule1 + $authRule = Set-AzServiceBusAuthorizationRule -InputObject $authRule -Rights @('Send') + $authRule.Name | Should -Be "namespaceAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 1 + + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -QueueName queue1 -Name queueAuthRule1 + $authRule = Set-AzServiceBusAuthorizationRule -InputObject $authRule -Rights @('Listen','Manage','Send') + $authRule.Name | Should -Be "queueAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 3 + + New-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 -Rights @('Send') + $authRule = Get-AzServiceBusAuthorizationRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name topicAuthRule1 + $authRule = Set-AzServiceBusAuthorizationRule -InputObject $authRule -Rights @('Listen','Manage','Send') + $authRule.Name | Should -Be "topicAuthRule1" + $authRule.ResourceGroupName | Should -Be $env.resourceGroup + $authRule.Rights.Count | Should -Be 3 + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Recording.json new file mode 100644 index 000000000000..5e7bd31af8ea --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Recording.json @@ -0,0 +1,1922 @@ +{ + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "174" ], + "x-ms-client-request-id": [ "e4f45118-2dd8-4621-8e32-6f2bc4194591" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b88e7adb-8181-4bdf-9e95-72894a672418_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11896" ], + "x-ms-correlation-request-id": [ "5f0e51c1-bade-4078-9398-dfa47174c286" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080446Z:5f0e51c1-bade-4078-9398-dfa47174c286" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/breakPairing?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p/breakPairing?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "175" ], + "x-ms-client-request-id": [ "78ab3a2d-7469-4f9f-bb69-0f9ba7c5314b" ], + "CommandName": [ "Az.ServiceBus.private\\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break" ], + "FullCommandName": [ "Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6e4fca34-e494-41f2-830a-c802ec1cae2a_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], + "x-ms-correlation-request-id": [ "79d25b2d-af75-4ac9-b4ac-a0a0aafa7f63" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080446Z:79d25b2d-af75-4ac9-b4ac-a0a0aafa7f63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:46 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "176" ], + "x-ms-client-request-id": [ "c91f9fee-900c-42bc-8273-12602d13780b" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b9cae0e1-cc62-486e-ae7c-2083e6b5196c_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11895" ], + "x-ms-correlation-request-id": [ "96a96464-c30c-4de5-9400-2d7ff0287789" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080447Z:96a96464-c30c-4de5-9400-2d7ff0287789" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "177" ], + "x-ms-client-request-id": [ "5a8c16d8-4267-4695-ab85-f69d7b0bf2ce" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ddf07874-5631-47f3-9c17-4155f5e76f46_M5CH3_M5CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "8629e432-641c-42ba-b651-80a171d87508" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080458Z:8629e432-641c-42ba-b651-80a171d87508" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:04:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "178" ], + "x-ms-client-request-id": [ "01d65be1-4d2a-4b3b-92c4-c7a6a68c65a6" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "947ff960-31f3-4fee-a182-830e10629be8_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11893" ], + "x-ms-correlation-request-id": [ "707bcee8-4d9c-4564-aa8f-9a770ff9b7c3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080510Z:707bcee8-4d9c-4564-aa8f-9a770ff9b7c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:05:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "179" ], + "x-ms-client-request-id": [ "35f343b0-d90b-4e4e-bc78-e8dd842f32d5" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "80ae57d1-4d97-4dfa-9f36-24c6645e1039_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11892" ], + "x-ms-correlation-request-id": [ "ced8e586-485d-488f-93f4-6fd1e33377f2" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080520Z:ced8e586-485d-488f-93f4-6fd1e33377f2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:05:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "180" ], + "x-ms-client-request-id": [ "766f5845-e3e4-41dd-b1d9-7a55f8c6f9fa" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "12b95be2-7abd-4f7b-a626-2c28ab48de38_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11891" ], + "x-ms-correlation-request-id": [ "1f7e6b9d-7e2a-4823-b5cd-62a0bfa865d9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080531Z:1f7e6b9d-7e2a-4823-b5cd-62a0bfa865d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:05:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "181" ], + "x-ms-client-request-id": [ "05526b18-de97-4fd8-bf2a-7c3cbc2660e9" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "592bdc22-4a43-4469-85bd-de68011cdd95_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11890" ], + "x-ms-correlation-request-id": [ "fd159532-3184-4b06-8c8c-b86212d35241" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080542Z:fd159532-3184-4b06-8c8c-b86212d35241" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:05:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "182" ], + "x-ms-client-request-id": [ "db8c0396-de19-450f-83c9-a66e8afe4558" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "56116ebd-e7dd-48ca-b867-12ec9c7b9933_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11889" ], + "x-ms-correlation-request-id": [ "fd9d16e7-d54f-4d48-b30e-811fc569a171" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080552Z:fd9d16e7-d54f-4d48-b30e-811fc569a171" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:05:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "183" ], + "x-ms-client-request-id": [ "9bb2629f-dba8-4baa-ab53-442e4c854be0" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "de7beea9-7c82-4af3-8d8b-2b5ae13d5f8c_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11888" ], + "x-ms-correlation-request-id": [ "a54075c5-9ce4-4ba7-bc57-6788d2cc3342" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080603Z:a54075c5-9ce4-4ba7-bc57-6788d2cc3342" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "184" ], + "x-ms-client-request-id": [ "98ac84bd-63b9-4449-b6f7-e14f79e28786" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4de1882f-4a77-4e44-b817-cee56a5582a2_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11887" ], + "x-ms-correlation-request-id": [ "db997318-800c-40b1-b851-9d0fd1dca4c6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080614Z:db997318-800c-40b1-b851-9d0fd1dca4c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "412" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"partnerNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "206" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0ec61865-1487-4e1f-afd5-289cb0c90f03_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1166" ], + "x-ms-correlation-request-id": [ "ba0410ea-6508-40cb-b9c0-062765cefb73" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080631Z:ba0410ea-6508-40cb-b9c0-062765cefb73" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "186" ], + "x-ms-client-request-id": [ "e4b7da23-3440-40bd-bf0f-ce4d4ed983b8" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c37db75a-91ce-4039-a5be-77197ac3d433_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11886" ], + "x-ms-correlation-request-id": [ "379a4ad1-d038-40b5-9965-8722e8b9b7fa" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080632Z:379a4ad1-d038-40b5-9965-8722e8b9b7fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "187" ], + "x-ms-client-request-id": [ "b3011d35-fae2-43ce-9654-2c080f472572" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "05a51503-0e52-4500-bc4a-9086a0098064_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11885" ], + "x-ms-correlation-request-id": [ "57034956-59bd-4ca6-8480-c63d79e57ae1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080643Z:57034956-59bd-4ca6-8480-c63d79e57ae1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "188" ], + "x-ms-client-request-id": [ "6fe7d4e3-f620-48d8-947d-50e165315e90" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c04c06b5-406c-4afe-910d-176cb9fab963_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11884" ], + "x-ms-correlation-request-id": [ "94ca561e-52e0-464c-99bd-9fba5abea25b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080653Z:94ca561e-52e0-464c-99bd-9fba5abea25b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:06:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "189" ], + "x-ms-client-request-id": [ "b5b9cc3b-f206-480d-8695-0dba29b6803f" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "552011b7-4c18-4c9c-8b1b-e8763f6fcafe_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11883" ], + "x-ms-correlation-request-id": [ "36cf8032-4b28-4cc7-8a43-b24ed26ad99b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080704Z:36cf8032-4b28-4cc7-8a43-b24ed26ad99b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "190" ], + "x-ms-client-request-id": [ "2d32446d-184b-4b98-90bc-42ffa7c1e77c" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e24a2695-802e-432e-b9cb-9a812598462c_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11882" ], + "x-ms-correlation-request-id": [ "30d18fc0-1663-4136-989a-4afb6c214286" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080714Z:30d18fc0-1663-4136-989a-4afb6c214286" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "191" ], + "x-ms-client-request-id": [ "595c87ca-5c4f-41c2-8c5b-8526cba2d25d" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3ba72297-15ad-4ec1-9876-eae1f8717e61_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11881" ], + "x-ms-correlation-request-id": [ "0db979f7-0f56-443e-bc34-7413ab655e9f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080725Z:0db979f7-0f56-443e-bc34-7413ab655e9f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "192" ], + "x-ms-client-request-id": [ "635a08a6-8934-432f-96df-51d12c618ba3" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b3cf60ab-4395-4cbf-b5a7-ff5598e2304d_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11880" ], + "x-ms-correlation-request-id": [ "26be3388-2631-4a85-b8c0-4815bae85385" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080737Z:26be3388-2631-4a85-b8c0-4815bae85385" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "193" ], + "x-ms-client-request-id": [ "b9212f11-0e04-4999-9910-ebce533cde37" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "df2f588c-da8c-412a-94b2-7d1d76d18302_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11879" ], + "x-ms-correlation-request-id": [ "57008509-7e87-4569-85f2-149e5afa6403" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080748Z:57008509-7e87-4569-85f2-149e5afa6403" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "194" ], + "x-ms-client-request-id": [ "412250d6-8725-42b0-bdee-dd3c240fb6b8" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "000a60af-4ae0-4dc4-9a9f-712040f5ea07_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11878" ], + "x-ms-correlation-request-id": [ "060870de-2135-47e0-815e-7a51f1e93f0b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080758Z:060870de-2135-47e0-815e-7a51f1e93f0b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:07:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+Break+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "195" ], + "x-ms-client-request-id": [ "58412517-2287-497f-a21a-a8c45b8e5a67" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "141d8e37-c05f-48a8-b334-bbfece2a5f58_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11877" ], + "x-ms-correlation-request-id": [ "4e521d50-85e5-4df1-99be-03901ac482c4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080809Z:4e521d50-85e5-4df1-99be-03901ac482c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "196" ], + "x-ms-client-request-id": [ "002a2598-a41e-4034-b6e6-434392d73687" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "dd5cec1a-f80f-4bdd-b2fb-c64161e0ee63_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11876" ], + "x-ms-correlation-request-id": [ "d42db04a-8cb4-485a-b663-1954f72f4269" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080820Z:d42db04a-8cb4-485a-b663-1954f72f4269" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "197" ], + "x-ms-client-request-id": [ "53bc1035-3477-40af-bdc9-91498bd4204d" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cb1b000f-c535-43d8-97ce-0235aa6b8bed_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11875" ], + "x-ms-correlation-request-id": [ "ce34ecac-c796-4c2c-90ae-899d4f6e2c7f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080821Z:ce34ecac-c796-4c2c-90ae-899d4f6e2c7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourcegroupautorest8pghli/providers/Microsoft.ServiceBus/namespaces/primarynsf0j2h7/disasterRecoveryConfigs/alias1w402p/breakPairing?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourcegroupautorest8pghli/providers/Microsoft.ServiceBus/namespaces/primarynsf0j2h7/disasterRecoveryConfigs/alias1w402p/breakPairing?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "198" ], + "x-ms-client-request-id": [ "3d64f4ec-c31e-4343-a433-e62ee0e34b65" ], + "CommandName": [ "Az.ServiceBus.private\\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break" ], + "FullCommandName": [ "Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4803006b-2b1d-41d6-9711-75ddd4d11cce_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], + "x-ms-correlation-request-id": [ "88556f17-9611-4128-881f-9406187b381c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080822Z:88556f17-9611-4128-881f-9406187b381c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "199" ], + "x-ms-client-request-id": [ "ba0f4b2b-cad7-40cf-a0d7-5c2c49cab6fd" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f804d35e-d0db-4d4c-8395-4a9c6a83d721_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11874" ], + "x-ms-correlation-request-id": [ "6d524904-98be-4c10-92de-2f5a57fd54fd" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080823Z:6d524904-98be-4c10-92de-2f5a57fd54fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "200" ], + "x-ms-client-request-id": [ "e3d7a163-19d2-440a-8c00-954db2086bef" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6f3df72e-6369-4707-9e08-6ca8d4cdb9c9_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11873" ], + "x-ms-correlation-request-id": [ "bf04d7f4-f715-4946-9765-e712d3ecb9ed" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080833Z:bf04d7f4-f715-4946-9765-e712d3ecb9ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "201" ], + "x-ms-client-request-id": [ "6c085aa9-e190-45a2-a1af-ffb47e1a7fc6" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "719b742c-0209-4fb2-af7d-ca03c3c02a6b_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11872" ], + "x-ms-correlation-request-id": [ "c022b888-0f00-43a4-9566-1c986d6b0fb6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080844Z:c022b888-0f00-43a4-9566-1c986d6b0fb6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "202" ], + "x-ms-client-request-id": [ "8e112484-5b40-412f-945e-85f067b0c85e" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c96e4448-d12e-44fe-bd8e-6d6da45ea921_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11871" ], + "x-ms-correlation-request-id": [ "78625000-79d9-4b01-8d0f-97d1fc97e2cc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080854Z:78625000-79d9-4b01-8d0f-97d1fc97e2cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:08:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "203" ], + "x-ms-client-request-id": [ "6b3803da-7e50-4600-b158-b83638d8054d" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ae9651c9-c46d-4964-82a0-00fa251e45ca_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11870" ], + "x-ms-correlation-request-id": [ "30ce87b2-cea2-43ee-93c0-ff3d1d410828" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080905Z:30ce87b2-cea2-43ee-93c0-ff3d1d410828" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "204" ], + "x-ms-client-request-id": [ "ede4618d-8976-45d0-adf5-1d536953c931" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fc977335-4e63-4abb-b2b9-86a7bc15d6c9_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11869" ], + "x-ms-correlation-request-id": [ "b8c08fb9-58de-41cc-8abc-8e0aebd44028" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080916Z:b8c08fb9-58de-41cc-8abc-8e0aebd44028" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "205" ], + "x-ms-client-request-id": [ "5bb70beb-7cc0-4693-aadb-f7ccca794d14" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7db1b117-2886-41f4-a85e-a15c1f52738c_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11868" ], + "x-ms-correlation-request-id": [ "8c99e646-1009-422c-a8aa-f0e8324c1fd8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080926Z:8c99e646-1009-422c-a8aa-f0e8324c1fd8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "206" ], + "x-ms-client-request-id": [ "7ef58a32-a2a4-46b9-95c0-335897b86def" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3bddb00b-0cac-4691-a82c-0e5227c9b8e0_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11867" ], + "x-ms-correlation-request-id": [ "8beb756e-3808-442f-b4f2-a766866ed394" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080937Z:8beb756e-3808-442f-b4f2-a766866ed394" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "207" ], + "x-ms-client-request-id": [ "056f7f0a-8c00-41e3-919d-85fc33dc1825" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b474f5a1-256a-4f8f-9581-e4a6bd3ac4f2_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11866" ], + "x-ms-correlation-request-id": [ "c0dcf13f-d0bd-453f-9f34-a9615a64d41d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080948Z:c0dcf13f-d0bd-453f-9f34-a9615a64d41d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "411" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "208" ], + "x-ms-client-request-id": [ "47fdc466-a1a2-4a04-96f3-fe07bd3e0b2a" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "84e93fec-0917-4f0c-b374-91396208d5cd_M4CH3_M4CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11865" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "0a180633-8fb4-4b82-b431-6e0f929ba654" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T080959Z:0a180633-8fb4-4b82-b431-6e0f929ba654" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:09:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "412" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"partnerNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "206" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "867fe0c3-deac-4428-9758-bbda6114045c_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1165" ], + "x-ms-correlation-request-id": [ "f7d1ce5b-5f2e-415b-9dd6-fdcbb8f91375" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081016Z:f7d1ce5b-5f2e-415b-9dd6-fdcbb8f91375" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "210" ], + "x-ms-client-request-id": [ "ad75c188-5315-401e-8d23-0d6c7cc30a5f" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5f327992-ed44-43a1-8417-1b4d7f8d0a01_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11864" ], + "x-ms-correlation-request-id": [ "0c7c3a57-54e0-4927-9e0b-b80e12119f90" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081017Z:0c7c3a57-54e0-4927-9e0b-b80e12119f90" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "211" ], + "x-ms-client-request-id": [ "748312bd-f0f8-4fc0-a5d1-997a7d38be54" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f13035fc-cd62-4044-a28f-e3fcbcdfdde2_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11863" ], + "x-ms-correlation-request-id": [ "77f9984d-9057-41f0-a6f9-5c8179aaf927" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081027Z:77f9984d-9057-41f0-a6f9-5c8179aaf927" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "212" ], + "x-ms-client-request-id": [ "efefacbb-6a5b-4f6a-ab91-671ef70d4a3e" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "466fb684-6bfe-49f2-a41a-2f33185df652_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11862" ], + "x-ms-correlation-request-id": [ "fba7c400-96c1-4fe4-bfb6-c666b2318a67" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081038Z:fba7c400-96c1-4fe4-bfb6-c666b2318a67" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "213" ], + "x-ms-client-request-id": [ "f9f60aa2-5c89-4840-9847-b7a9f5aa9ce6" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1d76a074-bde5-44a7-9a8b-05bad620aea9_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11861" ], + "x-ms-correlation-request-id": [ "46796238-62b7-4d5c-b06a-cad4ef3bc24f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081049Z:46796238-62b7-4d5c-b06a-cad4ef3bc24f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "214" ], + "x-ms-client-request-id": [ "cb0b6896-c778-4cca-84c5-dce3bb2ff15a" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3dfa03ab-4675-4955-898e-5116a548b541_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11860" ], + "x-ms-correlation-request-id": [ "ddf3616c-3ab4-4364-9dce-a7cf2d550812" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081100Z:ddf3616c-3ab4-4364-9dce-a7cf2d550812" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:10:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "215" ], + "x-ms-client-request-id": [ "1c7df8ec-7e70-49e2-ae3a-5852e17b6157" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ec31ef4-a41c-483d-a7bc-02130e0df5ff_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11859" ], + "x-ms-correlation-request-id": [ "69c3e786-9632-4dd4-a9f1-31a70bc1602d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081110Z:69c3e786-9632-4dd4-a9f1-31a70bc1602d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:11:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "216" ], + "x-ms-client-request-id": [ "a6421359-d562-41ae-9fbc-e48b55f728bd" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a5946ed5-d852-474a-8b39-f3448304f137_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11858" ], + "x-ms-correlation-request-id": [ "088bda30-8fa6-4c45-bdde-a691a3a9b023" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081121Z:088bda30-8fa6-4c45-bdde-a691a3a9b023" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:11:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "217" ], + "x-ms-client-request-id": [ "ef93741a-7ac1-403f-9212-3cbf133011a9" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "05d5bca4-3a5d-4635-ae5c-246bc8ac7f58_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11857" ], + "x-ms-correlation-request-id": [ "e5c99eec-3976-4057-9b8a-50d616f8b6ac" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081132Z:e5c99eec-3976-4057-9b8a-50d616f8b6ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:11:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "218" ], + "x-ms-client-request-id": [ "da5a7ae5-e70e-43a1-9b2b-8c06e5cb0930" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "116db66c-9371-4456-8526-c5a4b71fee8e_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11856" ], + "x-ms-correlation-request-id": [ "044246dc-6e03-4c12-a461-798fb2fa14a7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081143Z:044246dc-6e03-4c12-a461-798fb2fa14a7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:11:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationBreakPair+[NoContext]+BreakViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "219" ], + "x-ms-client-request-id": [ "678a0ce5-1b22-4ea7-a235-a2a461d35179" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3a75770c-c916-4b47-84dc-8808efa88629_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11855" ], + "x-ms-correlation-request-id": [ "93b31484-f8f5-4ad1-8c0a-0088838adc2c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081154Z:93b31484-f8f5-4ad1-8c0a-0088838adc2c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:11:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Tests.ps1 new file mode 100644 index 000000000000..65df4ee091db --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationBreakPair.Tests.ps1 @@ -0,0 +1,69 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusGeoDRConfigurationBreakPair')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusGeoDRConfigurationBreakPair.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzServiceBusGeoDRConfigurationBreakPair' { + It 'Break' { + Set-AzServiceBusGeoDRConfigurationBreakPair -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace -Name $env.alias + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } + + $drConfig.Name | Should -Be $env.alias + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.PartnerNamespace | Should -Be "" + $drConfig.Role | Should -Be "PrimaryNotReplicating" + + $drConfig = New-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace -PartnerNamespace $env.secondaryNamespaceResourceId + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } + } + + It 'BreakViaIdentity' { + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + + Set-AzServiceBusGeoDRConfigurationBreakPair -InputObject $drConfig + + do{ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } while($drConfig.ProvisioningState -ne "Succeeded") + + $drConfig.Name | Should -Be $env.alias + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.PartnerNamespace | Should -Be "" + $drConfig.Role | Should -Be "PrimaryNotReplicating" + + $drConfig = New-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace -PartnerNamespace $env.secondaryNamespaceResourceId + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Recording.json new file mode 100644 index 000000000000..8c6130578052 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Recording.json @@ -0,0 +1,1537 @@ +{ + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "220" ], + "x-ms-client-request-id": [ "0b56e4ba-52f8-4966-a703-fa22edd098cd" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "24dadef9-efcb-4492-bd6b-9bc99e85c755_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11854" ], + "x-ms-correlation-request-id": [ "aeaecd9a-8e54-4ffd-a608-d99cd629b355" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081215Z:aeaecd9a-8e54-4ffd-a608-d99cd629b355" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p/failover?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p/failover?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b2cba4ec-c59d-447a-9db5-f0a10329cbaa_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], + "x-ms-correlation-request-id": [ "1418d4b7-78cf-4646-8d2e-0a767dc0b7ac" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081216Z:1418d4b7-78cf-4646-8d2e-0a767dc0b7ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "222" ], + "x-ms-client-request-id": [ "367aef08-fe2a-47d1-955e-108b0229ad14" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4cfaa016-1ef3-4fc6-b045-b5179aec0bd1_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11853" ], + "x-ms-correlation-request-id": [ "4d9b98da-72e1-4203-b0ac-2eb4edf5afc7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081216Z:4d9b98da-72e1-4203-b0ac-2eb4edf5afc7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "223" ], + "x-ms-client-request-id": [ "725c8c31-4b47-4cc9-8fae-a000dfa7ccd7" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1887622c-3108-404f-a7af-6c7e4a0f3a4a_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11852" ], + "x-ms-correlation-request-id": [ "3b1fbccd-b9f1-44c7-bb3d-d1b6cb1cd437" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081228Z:3b1fbccd-b9f1-44c7-bb3d-d1b6cb1cd437" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "224" ], + "x-ms-client-request-id": [ "6e5c702c-33ef-4519-b874-6f659be96888" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0b65f225-71d6-4238-97e6-8fbf9b4d63d6_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11851" ], + "x-ms-correlation-request-id": [ "847cb82b-3632-402b-a49a-0d1a2152dbba" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081239Z:847cb82b-3632-402b-a49a-0d1a2152dbba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "225" ], + "x-ms-client-request-id": [ "1c47b02b-a175-4da9-8618-854be9b78395" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ac7224b-18b5-4862-968b-bc228238c319_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11850" ], + "x-ms-correlation-request-id": [ "5ea52658-6614-4993-b53a-404e75371f0a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081250Z:5ea52658-6614-4993-b53a-404e75371f0a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:12:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "226" ], + "x-ms-client-request-id": [ "6c62d1a5-8688-47c2-803d-8aa3cb9e5530" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4694a2e9-bdfb-4fcd-8ab8-0c46d5449fca_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11849" ], + "x-ms-correlation-request-id": [ "3965cf84-bb47-45df-b301-6e692ce7f981" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081301Z:3965cf84-bb47-45df-b301-6e692ce7f981" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "227" ], + "x-ms-client-request-id": [ "1cc036bf-a1ed-449c-af1c-8177fed0e4c4" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "235aef85-6535-48fd-85c4-2a95d81e56f2_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11848" ], + "x-ms-correlation-request-id": [ "4ebafaa7-4f67-4ca8-93c5-f91e28a95105" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081312Z:4ebafaa7-4f67-4ca8-93c5-f91e28a95105" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "228" ], + "x-ms-client-request-id": [ "0b4b8b7e-c51c-42e9-a877-823a6d59bfae" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7168eb95-98a0-4b5c-bdd6-f0b943d23981_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11847" ], + "x-ms-correlation-request-id": [ "c5a79ff7-795b-400d-b230-228d37655118" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081323Z:c5a79ff7-795b-400d-b230-228d37655118" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "229" ], + "x-ms-client-request-id": [ "ab5cbabd-11c1-494b-91f8-700855ba7b06" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "88b58a8b-c0f0-482e-b665-398d89a18b0f_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11846" ], + "x-ms-correlation-request-id": [ "e40c217e-25c3-40de-a13f-6b072ccd26ed" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081334Z:e40c217e-25c3-40de-a13f-6b072ccd26ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "230" ], + "x-ms-client-request-id": [ "aada4cd8-6e44-4c4d-9815-3c5150d405ac" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "19845638-2cf0-423c-ab0b-704624c5ffcd_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11845" ], + "x-ms-correlation-request-id": [ "4d647e8e-bbdf-4f29-9be0-b4d08fdee8a9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081345Z:4d647e8e-bbdf-4f29-9be0-b4d08fdee8a9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "414" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "231" ], + "x-ms-client-request-id": [ "3211dac1-2d3d-4ec2-9eeb-a270b7852e5c" ], + "CommandName": [ "Remove-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Remove-AzServiceBusGeoDRConfiguration_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9ab1c89d-342d-4813-a7b8-79c54a3c1824_M0SN1_M0SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14983" ], + "x-ms-correlation-request-id": [ "bfd71e4b-2076-435b-af9f-1220f82cba86" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081355Z:bfd71e4b-2076-435b-af9f-1220f82cba86" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:13:55 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"partnerNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "206" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "05169972-5514-4317-9d12-63a2733a1528_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "7af675ba-1a4b-47e8-be18-d0b71272ce62" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081705Z:7af675ba-1a4b-47e8-be18-d0b71272ce62" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "233" ], + "x-ms-client-request-id": [ "f420a9da-a3f2-45af-8361-9a8963835bda" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "725a039e-9611-4444-95cb-26799f9ba429_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "d9750bc9-8c2d-4903-9344-0f54f5eac95f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081706Z:d9750bc9-8c2d-4903-9344-0f54f5eac95f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "234" ], + "x-ms-client-request-id": [ "d0b011bb-6591-4495-b0a5-eb6d6c3ef049" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d59dd4fc-0f66-4367-aa6d-50c62984f8f4_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "0dff353b-1067-4e33-b1fa-a49c49d98761" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081717Z:0dff353b-1067-4e33-b1fa-a49c49d98761" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "235" ], + "x-ms-client-request-id": [ "1cdc4d12-29fe-42d4-a136-6aa820029d1d" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4c2d06ed-a039-4fcc-be8e-024f0c2ee043_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "ea4c058e-cda8-4460-87b6-8b8c556820ef" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081728Z:ea4c058e-cda8-4460-87b6-8b8c556820ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "236" ], + "x-ms-client-request-id": [ "461f9924-397f-4d4d-b76b-dfdf38d55683" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "334a5823-3518-4a09-aa43-0d83d2bac01e_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "cc0b10eb-4582-4187-8df3-c2d2770f90ba" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081739Z:cc0b10eb-4582-4187-8df3-c2d2770f90ba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "237" ], + "x-ms-client-request-id": [ "93e0c2cd-b9d7-4f39-980a-2a907474c57c" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9bf79312-266d-46ae-b7b8-fae73d28d3e1_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "624b42fc-e495-4088-918a-335d1a8b1137" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081749Z:624b42fc-e495-4088-918a-335d1a8b1137" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:17:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "238" ], + "x-ms-client-request-id": [ "1cf6689a-0f5b-4400-9816-a08d9b10bfab" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "db14c676-11c0-4454-8c28-8a329ca5e352_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "fef8315d-074a-4f8f-b469-53bd74b29856" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081800Z:fef8315d-074a-4f8f-b469-53bd74b29856" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "239" ], + "x-ms-client-request-id": [ "7b2df7f4-6ac0-4940-8db8-874baaa69b41" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a93bfd40-0941-43b5-abcc-f1a02d6e3481_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "508a1885-109e-4252-b712-ec735a87809a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081811Z:508a1885-109e-4252-b712-ec735a87809a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "240" ], + "x-ms-client-request-id": [ "7af6b4c2-c26a-4073-addb-7580fa1c1c9c" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2cd4ce4a-3d02-46c0-a420-22e69e4b8486_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "55bc09cd-1a59-499b-824b-97191604d85e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081822Z:55bc09cd-1a59-499b-824b-97191604d85e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "241" ], + "x-ms-client-request-id": [ "85576970-a02f-48b7-867d-6a0fba2bf3b3" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d1c9d1df-6d2e-4978-b78b-a6c788e8dab5_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "816f059c-28ab-42f4-92b9-5588542b533c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081833Z:816f059c-28ab-42f4-92b9-5588542b533c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+Fail+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "242" ], + "x-ms-client-request-id": [ "c9ee6f5a-d4f6-4be5-b017-5489f5864ae7" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "14d06bd7-c602-4351-99ca-4251eac8cd88_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "12b2b666-4632-4641-b68a-abdbff3a2df3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081844Z:12b2b666-4632-4641-b68a-abdbff3a2df3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "590" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v\",\"role\":\"Primary\",\"type\":\"MetadataReplication\",\"pendingReplicationOperationsCount\":0}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "243" ], + "x-ms-client-request-id": [ "5eb1f162-3e08-4c95-b94f-9cfd8c849160" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7bb9a879-877c-46ef-8fbb-bb5d2abca41c_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "59827267-3c54-4215-bebb-f771e72646a9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081855Z:59827267-3c54-4215-bebb-f771e72646a9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "244" ], + "x-ms-client-request-id": [ "c5dee1be-9ce0-46aa-af50-b7f43f255c4b" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a7b49360-c29d-4ea9-9f0f-2e12fb419e37_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "fb9fd9a9-478c-495f-9ccd-7250e9582306" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081856Z:fb9fd9a9-478c-495f-9ccd-7250e9582306" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourcegroupautorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondarynstem26v/disasterRecoveryConfigs/alias1w402p/failover?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourcegroupautorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondarynstem26v/disasterRecoveryConfigs/alias1w402p/failover?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "46d46af2-4d02-4aab-bf9a-ad0ad8f64196_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "fc74ed5d-e6cd-4cd9-bb69-d7f350ef70cc" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081856Z:fc74ed5d-e6cd-4cd9-bb69-d7f350ef70cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:56 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "246" ], + "x-ms-client-request-id": [ "2057d51b-dde3-4cee-b2e2-74bb6fd8ebcb" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "98841eee-51e5-483c-ac61-1b57f80ff26e_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "db72eeed-6bc7-47f3-a5df-d683b45a909f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081857Z:db72eeed-6bc7-47f3-a5df-d683b45a909f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:18:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "247" ], + "x-ms-client-request-id": [ "927cfe19-ef63-424b-b362-e80bd7ab6bf5" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b7daaf64-cc17-4e40-b88f-8e2dd487c492_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "5b8544d6-2af5-4c2d-a74b-13efe6085a08" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081908Z:5b8544d6-2af5-4c2d-a74b-13efe6085a08" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:19:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "248" ], + "x-ms-client-request-id": [ "48543aaf-28ea-4355-a157-1eb0744fb41c" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eb1b74be-7b22-4077-b943-9025795db087_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "023b2dcd-7a46-4f9f-987c-48f27cca0356" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081919Z:023b2dcd-7a46-4f9f-987c-48f27cca0356" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:19:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "249" ], + "x-ms-client-request-id": [ "4f71461e-67e3-4dcb-ab0e-6f2b31512d78" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "203b6705-8f03-4a83-80fb-649112f0cb46_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "39ec016a-1280-4e08-8ae0-eddf86d5f041" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081930Z:39ec016a-1280-4e08-8ae0-eddf86d5f041" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:19:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "250" ], + "x-ms-client-request-id": [ "b738ac1b-6b51-4439-a479-8b6899082951" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f08765a7-2ba1-423c-9934-179bc3d5a909_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "483dd9d8-f4e1-4b83-a2b1-cdefdee8e75f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081941Z:483dd9d8-f4e1-4b83-a2b1-cdefdee8e75f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:19:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "251" ], + "x-ms-client-request-id": [ "0ebd7b59-b573-48c5-8e69-34e5d7c525bd" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "32f220c0-7b44-4769-9bcd-a96611ed55ad_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "12d650cb-5cc8-4198-8803-7e61017d17f3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T081952Z:12d650cb-5cc8-4198-8803-7e61017d17f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:19:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "252" ], + "x-ms-client-request-id": [ "9b9f7a3d-09ad-4b55-8db4-ba7cb3d0f6ed" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b9d3cd3f-49f2-47a1-abc8-bb4f8b329204_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "7ffe1fee-dc73-4178-99fa-b9d0fdaa1eae" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082002Z:7ffe1fee-dc73-4178-99fa-b9d0fdaa1eae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:20:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "253" ], + "x-ms-client-request-id": [ "26f1c420-a1b6-400e-8b20-13ad711f6c6e" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "abb6ccec-c4e6-4026-b1c7-b688c1dc96d0_M3SN1_M3SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "b164717c-8b33-4dcb-bb7e-3e8af21c2b19" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082013Z:b164717c-8b33-4dcb-bb7e-3e8af21c2b19" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:20:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "553" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Accepted\",\"partnerNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7\",\"role\":\"Secondary\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "254" ], + "x-ms-client-request-id": [ "f3aa8f5b-69c4-46a4-a34f-85343173069b" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3a035275-7b04-4bb9-ba4b-e8e11613c5be_M0CH3_M0CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "19ecfd2c-e09e-470c-8845-58852b87467a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082025Z:19ecfd2c-e09e-470c-8845-58852b87467a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:20:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "414" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p\",\"name\":\"alias1w402p\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "255" ], + "x-ms-client-request-id": [ "8083feb8-a17b-4d0f-ae96-d7d92ae32086" ], + "CommandName": [ "Remove-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Remove-AzServiceBusGeoDRConfiguration_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0eed55e9-a315-45e2-95b8-4ddba7d4e605_M0CH3_M0CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "628a69d3-7695-4d5a-9489-b63980388d4b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082036Z:628a69d3-7695-4d5a-9489-b63980388d4b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:20:36 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Set-AzServiceBusGeoDRConfigurationFailOver+[NoContext]+FailViaIdentity+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7/disasterRecoveryConfigs/alias1w402p?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "256" ], + "x-ms-client-request-id": [ "df81544e-b5f9-4125-85c1-339c038f5b69" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3e93b98a-9c92-4efd-9c85-da83d12c8dbc_M5SN1_M5SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "222c3ba7-5920-4fa8-8c95-e2cbd7caddc4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082336Z:222c3ba7-5920-4fa8-8c95-e2cbd7caddc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:23:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Alias \u0027alias1w402p\u0027 does not exist or is not associated with namespace \u0027primaryNSf0j2h7\u0027. CorrelationId: 222c3ba7-5920-4fa8-8c95-e2cbd7caddc4\",\"code\":\"NotFound\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Tests.ps1 new file mode 100644 index 000000000000..6129c634e588 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusGeoDRConfigurationFailOver.Tests.ps1 @@ -0,0 +1,71 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusGeoDRConfigurationFailOver')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusGeoDRConfigurationFailOver.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzServiceBusGeoDRConfigurationFailOver' { + It 'Fail' { + Set-AzServiceBusGeoDRConfigurationFailOver -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace -Name $env.alias + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } + + $drConfig.Name | Should -Be $env.alias + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.PartnerNamespace | Should -Be "" + $drConfig.Role | Should -Be "PrimaryNotReplicating" + + $drConfig = Remove-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 180 + } + $drConfig = New-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace -PartnerNamespace $env.secondaryNamespaceResourceId + + while($drConfig.ProvisioningState -ne "Succeeded"){ + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } + } + It 'FailViaIdentity' { + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + + Set-AzServiceBusGeoDRConfigurationFailOver -InputObject $drConfig + + do { + $drConfig = Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + if ($TestMode -ne 'playback') { + Start-Sleep 10 + } + } while($drConfig.ProvisioningState -ne "Succeeded") + + $drConfig.Name | Should -Be $env.alias + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.PartnerNamespace | Should -Be "" + $drConfig.Role | Should -Be "PrimaryNotReplicating" + + $drConfig = Remove-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.secondaryNamespace + + if ($TestMode -ne 'playback') { + Start-Sleep 180 + } + + { Get-AzServiceBusGeoDRConfiguration -Name $env.alias -ResourceGroupName $env.resourceGroup -NamespaceName $env.primaryNamespace } | Should -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Recording.json new file mode 100644 index 000000000000..ffe1aa49d356 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Recording.json @@ -0,0 +1,481 @@ +{ + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "257" ], + "x-ms-client-request-id": [ "290a5c60-d408-4b42-9470-39f06794fc04" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "10c0a7d7-7bba-40d3-b28f-de3127f70173_M5SN1_M5SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "2d0c0b6a-b057-4c7b-935a-befb3b1c3ffb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082350Z:2d0c0b6a-b057-4c7b-935a-befb3b1c3ffb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:23:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "398" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Allow\",\"virtualNetworkRules\":[],\"ipRules\":[]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultAction\": \"Allow\",\n \"virtualNetworkRules\": [\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"\n }\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"\n }\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"\n }\n }\n ],\n \"ipRules\": [\n {\n \"ipMask\": \"1.1.1.1\",\n \"action\": \"Allow\"\n },\n {\n \"ipMask\": \"2.2.2.2\",\n \"action\": \"Allow\"\n }\n ],\n \"publicNetworkAccess\": \"Enabled\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1013" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8c2977b9-9d47-41f7-b4aa-04d333b9879e_M5SN1_M5SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "74f2d182-3970-4ce6-b62b-73ed09bc94e4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082358Z:74f2d182-3970-4ce6-b62b-73ed09bc94e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:23:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Allow\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "259" ], + "x-ms-client-request-id": [ "b73b8556-b89d-460b-af78-a513688172c2" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ef3820d4-4d8e-409c-8785-4ea2dd465461_M5SN1_M5SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "bfa3ceaf-905b-47f2-9c7f-35d3d45db003" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082359Z:bfa3ceaf-905b-47f2-9c7f-35d3d45db003" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:23:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Allow\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultAction\": \"Deny\",\n \"virtualNetworkRules\": [\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n }\n ],\n \"ipRules\": [\n {\n \"ipMask\": \"1.1.1.1\",\n \"action\": \"Allow\"\n },\n {\n \"ipMask\": \"2.2.2.2\",\n \"action\": \"Allow\"\n }\n ],\n \"publicNetworkAccess\": \"Enabled\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1165" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "703c09d5-d375-4f4b-8fc6-ec1488602e42_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "968840ea-e7d3-48e1-b195-d7c8e79e477e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082407Z:968840ea-e7d3-48e1-b195-d7c8e79e477e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1178" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "261" ], + "x-ms-client-request-id": [ "686e907f-5f9b-4d0c-971f-360421c4bde0" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6a12d32e-19f3-45c5-bfd5-1d07ac7aa04c_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "6892b1e5-d7ff-4ab4-88dd-5d7aacacf138" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082409Z:6892b1e5-d7ff-4ab4-88dd-5d7aacacf138" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1178" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Enabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultAction\": \"Deny\",\n \"virtualNetworkRules\": [\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n }\n ],\n \"ipRules\": [\n {\n \"ipMask\": \"1.1.1.1\",\n \"action\": \"Allow\"\n },\n {\n \"ipMask\": \"2.2.2.2\",\n \"action\": \"Allow\"\n }\n ],\n \"publicNetworkAccess\": \"Disabled\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1166" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c6878c3b-5e53-4bfa-9e52-55f83afd008b_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "3fb54471-718d-426e-b608-10b141b13783" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082416Z:3fb54471-718d-426e-b608-10b141b13783" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "263" ], + "x-ms-client-request-id": [ "f62e0b57-3dd6-4bc5-861a-d39d94d0b073" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "beeb3fc2-bf9c-4897-bb17-38fa93200e1a_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "1475e2cd-c313-4aac-a054-c8ff7bbf32b9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082417Z:1475e2cd-c313-4aac-a054-c8ff7bbf32b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"trustedServiceAccessEnabled\": true,\n \"defaultAction\": \"Deny\",\n \"virtualNetworkRules\": [\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n }\n ],\n \"ipRules\": [\n {\n \"ipMask\": \"1.1.1.1\",\n \"action\": \"Allow\"\n },\n {\n \"ipMask\": \"2.2.2.2\",\n \"action\": \"Allow\"\n }\n ],\n \"publicNetworkAccess\": \"Disabled\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1207" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "61425008-d4ac-4779-869f-8efaac4dded0_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "ee90303d-881a-4c5d-abcb-8a66c802ad0e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082423Z:ee90303d-881a-4c5d-abcb-8a66c802ad0e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1214" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}],\"trustedServiceAccessEnabled\":true}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "265" ], + "x-ms-client-request-id": [ "f725af2e-2750-4239-ac72-f40a84dd8546" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "799d7fe3-2547-435d-847e-1b454d601e91_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "9aa7b8df-ff91-4ddf-bd86-5e518e94e1c5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082424Z:9aa7b8df-ff91-4ddf-bd86-5e518e94e1c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1214" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}],\"trustedServiceAccessEnabled\":true}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "266" ], + "x-ms-client-request-id": [ "dd576239-bb00-4340-9584-2dc3ba2be8ac" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ff3d70a3-3e12-4488-ba02-095ab3726603_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "ae36f405-0320-4f80-9514-cf97d6c894e5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082426Z:ae36f405-0320-4f80-9514-cf97d6c894e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1214" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}],\"trustedServiceAccessEnabled\":true}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"trustedServiceAccessEnabled\": false,\n \"defaultAction\": \"Deny\",\n \"virtualNetworkRules\": [\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n },\n {\n \"subnet\": {\n \"id\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"\n },\n \"ignoreMissingVnetServiceEndpoint\": false\n }\n ],\n \"ipRules\": [\n {\n \"ipMask\": \"1.1.1.1\",\n \"action\": \"Allow\"\n },\n {\n \"ipMask\": \"2.2.2.2\",\n \"action\": \"Allow\"\n }\n ],\n \"publicNetworkAccess\": \"Disabled\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1208" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9492073a-8370-4430-b437-b72ba148ff67_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "dc27e54e-ab19-422d-b2ae-4d744d4b4308" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082433Z:dc27e54e-ab19-422d-b2ae-4d744d4b4308" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusNetworkRuleSet+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "268" ], + "x-ms-client-request-id": [ "3210fc52-03c0-4ea9-8421-9baccc635fe5" ], + "CommandName": [ "Get-AzServiceBusNetworkRuleSet" ], + "FullCommandName": [ "Get-AzServiceBusNetworkRuleSet_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "41e9b794-1223-4c1b-8013-31424ce7d0ef_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "341c61c0-ea45-4be7-a85d-730894ccffcb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082434Z:341c61c0-ea45-4be7-a85d-730894ccffcb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1179" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/networkRuleSets/default\",\"name\":\"default\",\"type\":\"Microsoft.ServiceBus/Namespaces/NetworkRuleSets\",\"location\":\"North Europe\",\"properties\":{\"publicNetworkAccess\":\"Disabled\",\"defaultAction\":\"Deny\",\"virtualNetworkRules\":[{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2\"},\"ignoreMissingVnetServiceEndpoint\":false},{\"subnet\":{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourcegroups/automatedpowershelltesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3\"},\"ignoreMissingVnetServiceEndpoint\":false}],\"ipRules\":[{\"ipMask\":\"1.1.1.1\",\"action\":\"Allow\"},{\"ipMask\":\"2.2.2.2\",\"action\":\"Allow\"}]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Tests.ps1 new file mode 100644 index 000000000000..1a49b718de43 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusNetworkRuleSet.Tests.ps1 @@ -0,0 +1,67 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusNetworkRuleSet')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusNetworkRuleSet.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Set-AzServiceBusNetworkRuleSet' { + It 'SetExpanded' { + $ipRule1 = New-AzServiceBusIPRuleConfig -IPMask 1.1.1.1 -Action Allow + $ipRule2 = New-AzServiceBusIPRuleConfig -IPMask 2.2.2.2 -Action Allow + + $virtualNetworkRule1 = New-AzServiceBusVirtualNetworkRuleConfig -SubnetId $env.subnetId1 + $virtualNetworkRule2 = New-AzServiceBusVirtualNetworkRuleConfig -SubnetId $env.subnetId2 + $virtualNetworkRule3 = New-AzServiceBusVirtualNetworkRuleConfig -SubnetId $env.subnetId3 + + $networkRuleSet = Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -IPRule $ipRule1,$ipRule2 -VirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2,$virtualNetworkRule3 + $networkRuleSet.DefaultAction | Should -Be "Allow" + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 3 + $networkRuleSet.IPRule.Count | Should -Be 2 + $networkRuleSet.PublicNetworkAccess | Should -Be "Enabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $null + + $networkRuleSet = Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -DefaultAction Deny + $networkRuleSet.DefaultAction | Should -Be "Deny" + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 3 + $networkRuleSet.IPRule.Count | Should -Be 2 + $networkRuleSet.PublicNetworkAccess | Should -Be "Enabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $null + + $networkRuleSet = Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -PublicNetworkAccess Disabled + $networkRuleSet.DefaultAction | Should -Be "Deny" + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 3 + $networkRuleSet.IPRule.Count | Should -Be 2 + $networkRuleSet.PublicNetworkAccess | Should -Be "Disabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $null + + $networkRuleSet = Set-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TrustedServiceAccessEnabled + $networkRuleSet.DefaultAction | Should -Be "Deny" + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 3 + $networkRuleSet.IPRule.Count | Should -Be 2 + $networkRuleSet.PublicNetworkAccess | Should -Be "Disabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $true + + } + + It 'SetViaIdentityExpanded' { + $networkRuleSet = Get-AzServiceBusNetworkRuleSet -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace + $networkRuleSet = Set-AzServiceBusNetworkRuleSet -InputObject $networkRuleSet -TrustedServiceAccessEnabled:$false + $networkRuleSet.DefaultAction | Should -Be "Deny" + $networkRuleSet.VirtualNetworkRule.Count | Should -Be 3 + $networkRuleSet.IPRule.Count | Should -Be 2 + $networkRuleSet.PublicNetworkAccess | Should -Be "Disabled" + $networkRuleSet.TrustedServiceAccessEnabled | Should -Be $null + + { Set-AzServiceBusNetworkRuleSet -InputObject $networkRuleSet } | Should -Throw 'Please specify the property you want to update on the -InputObject' + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Recording.json new file mode 100644 index 000000000000..49728e79fa80 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Recording.json @@ -0,0 +1,1355 @@ +{ + "Set-AzServiceBusQueue+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "269" ], + "x-ms-client-request-id": [ "9a339f21-b181-4d54-93f3-e211ca1b6b77" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1808bfe2-3ea9-44ad-82f2-8fb238681ebd_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "71948195-14d5-46f9-8aee-17a5a9b5d7d7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082446Z:71948195-14d5-46f9-8aee-17a5a9b5d7d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1017" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P7D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:38.609617Z\",\"updatedAt\":\"2022-09-27T07:58:38.609617Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "270" ], + "x-ms-client-request-id": [ "b3d493e6-2bcc-4079-b78c-498298c92922" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c9069e49-8605-47fd-80a6-a79eb95d06a9_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "db64803f-ab82-43e3-a2d8-7b433cfd3468" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082447Z:db64803f-ab82-43e3-a2d8-7b433cfd3468" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1017" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P7D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:38.609617Z\",\"updatedAt\":\"2022-09-27T07:58:38.609617Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"requiresSession\": true,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P1DT3M4S\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "524" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cd67514f-5e2a-421c-b651-20be93f809d8_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "9f482753-d059-4756-bc2b-5be782848830" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082448Z:9f482753-d059-4756-bc2b-5be782848830" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "992" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P1DT3M4S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "272" ], + "x-ms-client-request-id": [ "8761b33b-77f4-4471-a4ec-469d15807d79" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0508abea-404f-403a-b74a-6c0080c74420_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "ad38feec-fe8a-4568-9ddc-3eecfd7441be" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082449Z:ad38feec-fe8a-4568-9ddc-3eecfd7441be" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P1DT3M4S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:38.609617Z\",\"updatedAt\":\"2022-09-27T08:24:48.2897864Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"requiresSession\": true,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 10,\n \"status\": \"ReceiveDisabled\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P1DT3M4S\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "533" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5d142f49-d710-4dc7-8696-1f9c8a93a182_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "b9bfda88-b492-4f25-9e81-dabb829f038c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082450Z:b9bfda88-b492-4f25-9e81-dabb829f038c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1001" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue3\",\"name\":\"queue3\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"ReceiveDisabled\",\"autoDeleteOnIdle\":\"P1DT3M4S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "274" ], + "x-ms-client-request-id": [ "592426b0-d10c-4476-bf6e-070645334fcb" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5c0e4a83-8018-4dde-8ca5-1057ab20db51_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "3a9738a7-8943-426f-a6d6-d9d553a6a834" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082450Z:3a9738a7-8943-426f-a6d6-d9d553a6a834" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1091" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT4M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T07:58:35.765839Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "275" ], + "x-ms-client-request-id": [ "e68c4324-9c94-407f-b329-a5b98c223a9f" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5e24e063-b2c4-4be4-9a73-a08f20bd66d7_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "0562ec30-8870-4766-8a36-c4ff05b7f861" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082451Z:0562ec30-8870-4766-8a36-c4ff05b7f861" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1091" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT4M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T07:58:35.765839Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 4096,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P428DT3H11M10S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "605" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b6f20eaa-135b-4b6a-83b1-fc6db88d8b25_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "1194cf90-004e-499a-8a30-4fc95b220679" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082452Z:1194cf90-004e-499a-8a30-4fc95b220679" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1061" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "277" ], + "x-ms-client-request-id": [ "bb394072-90b6-4711-bf43-0a2a1c088fd3" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b4a0a306-022f-4c97-9a63-fec6d1e4968f_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "c917c194-3ce9-46fa-b246-1c8cd38e59fa" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082453Z:c917c194-3ce9-46fa-b246-1c8cd38e59fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1092" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:52.1023293Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 4096,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "46fc97a2-d1d8-4fe7-8172-5c074e11c862_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "d066542a-f2a2-46fc-8348-fbaa044882ad" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082453Z:d066542a-f2a2-46fc-8348-fbaa044882ad" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1055" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "279" ], + "x-ms-client-request-id": [ "11f31dc9-ebf1-4d1f-8d13-d3a0131825ba" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e39c9066-eb7f-433f-8a95-22966149763e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "e1817f2a-5f71-4819-b0fc-5e6a6b7c03ee" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082454Z:e1817f2a-5f71-4819-b0fc-5e6a6b7c03ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1086" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":4096,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:53.5242961Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3d53d5ba-18a0-4c54-8982-78a6d881f6d2_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "x-ms-correlation-request-id": [ "2d352214-2600-4ba4-9494-b41648c1dd24" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082455Z:2d352214-2600-4ba4-9494-b41648c1dd24" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1055" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "281" ], + "x-ms-client-request-id": [ "f604b40f-7d9c-4dca-9058-40b16906ccbf" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9a6c5683-cd6d-4f5a-88cf-70d4071ae990_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "6828b777-14ee-415b-a63e-9b13478fb6e8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082455Z:6828b777-14ee-415b-a63e-9b13478fb6e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1086" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:54.9305605Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "598" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "40740976-d974-4c37-8788-8a1a8a5e1b85_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "x-ms-correlation-request-id": [ "2d9d3b3d-3c3f-4dac-963a-a1abe94b1191" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082456Z:2d9d3b3d-3c3f-4dac-963a-a1abe94b1191" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1054" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "283" ], + "x-ms-client-request-id": [ "cc53cbc7-2a74-4edf-b015-1f2dacd632a1" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1f18181b-d05a-41f6-8034-ee786966e4b0_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "e4147791-4314-4830-8f85-e9d37816b065" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082457Z:e4147791-4314-4830-8f85-e9d37816b065" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1085" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:56.3680791Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3a414861-6ce4-44ba-96c7-4e51cead40a6_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-correlation-request-id": [ "521248c3-ad06-4c35-a99d-26b3569d6bd5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082457Z:521248c3-ad06-4c35-a99d-26b3569d6bd5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1055" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "285" ], + "x-ms-client-request-id": [ "37d086b7-af18-40d3-88a8-0f216f852b08" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6e5aff4d-4b29-4526-8da6-7498d1a33db3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "fbddeff5-9fd1-45e2-a77a-a64105d9fc12" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082458Z:fbddeff5-9fd1-45e2-a77a-a64105d9fc12" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1086" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:57.7743473Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": true,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "598" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3ef4d853-ac12-49dc-bc69-b2c51619179e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-correlation-request-id": [ "ede8f91f-cd97-4d83-aacc-dc27c9428562" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082459Z:ede8f91f-cd97-4d83-aacc-dc27c9428562" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1054" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "287" ], + "x-ms-client-request-id": [ "4ebbfb37-f0ab-4fc0-ae95-4657ba66bcff" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f7c6bb80-91dc-4ac1-80f7-23523ec0ad61_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "92a0a0c4-ac7f-49f8-80c1-771a4062e98b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082500Z:92a0a0c4-ac7f-49f8-80c1-771a4062e98b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:24:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1084" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:24:59.227491Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "599" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a8997a70-354e-47ea-9649-8466872cf206_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-correlation-request-id": [ "5f382b0c-4ece-42b0-b431-b5f28e95f943" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082501Z:5f382b0c-4ece-42b0-b431-b5f28e95f943" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1055" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "289" ], + "x-ms-client-request-id": [ "947bbcb0-3352-4062-9450-e5828237acc2" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "740fab34-f602-441c-a8ef-7d8aa4f994fe_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "1d18718c-0f53-4953-9ffa-fa9b882306a0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082501Z:1d18718c-0f53-4953-9ffa-fa9b882306a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1086" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":8,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:25:00.8836917Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 15,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "600" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6ad2c49c-70cb-4e80-b2cb-ad8a46967b20_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], + "x-ms-correlation-request-id": [ "267bac6f-d92d-4c4e-887c-6f5a7800bd07" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082502Z:267bac6f-d92d-4c4e-887c-6f5a7800bd07" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1056" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "291" ], + "x-ms-client-request-id": [ "529209b9-f515-4f40-801c-ea6c3c97d03d" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c9ad6a21-d3eb-4448-a294-35bd18cabeec_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "21bc65cb-47c4-407b-ad47-2851370fc5fd" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082503Z:21bc65cb-47c4-407b-ad47-2851370fc5fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1087" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:25:02.3994079Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 15,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "600" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c907b588-1e52-4686-860d-716b41287e14_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], + "x-ms-correlation-request-id": [ "66747008-2084-4a4d-bf75-36400e9244fe" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082504Z:66747008-2084-4a4d-bf75-36400e9244fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1056" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "293" ], + "x-ms-client-request-id": [ "972ecb13-771e-4361-86c9-11ec94ceee86" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "908555d3-bf4a-4900-9ff6-7d498a3a8ebc_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "0db980d4-b3f7-4522-8a9c-430293a91d7e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082505Z:0db980d4-b3f7-4522-8a9c-430293a91d7e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1087" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:25:03.8525513Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 15,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"topic1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "600" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0c0c5d24-43cf-41b3-bdff-8a8e82b9cfb2_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], + "x-ms-correlation-request-id": [ "9fb961ca-8729-4fc6-a3ef-628dbf7556de" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082505Z:9fb961ca-8729-4fc6-a3ef-628dbf7556de" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1056" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "295" ], + "x-ms-client-request-id": [ "46d0f07c-7619-4185-97ac-b745399b8afe" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4576af9d-cb82-41a2-a6b4-532bde22325c_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "d10fb750-927b-4a50-b6a8-115d744b7f5a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082506Z:d10fb750-927b-4a50-b6a8-115d744b7f5a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1087" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:35.765839Z\",\"updatedAt\":\"2022-09-27T08:25:05.6025736Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview+23": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT2M\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 102400,\n \"requiresDuplicateDetection\": true,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT8M\",\n \"maxDeliveryCount\": 15,\n \"status\": \"SendDisabled\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false,\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"topic1\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "606" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a1ab7c6e-016a-45b2-be86-95552ff346a5_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], + "x-ms-correlation-request-id": [ "c891ee57-8210-4ed1-a558-287423067773" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082507Z:c891ee57-8210-4ed1-a558-287423067773" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1062" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/queues/queue2\",\"name\":\"queue2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":102400,\"lockDuration\":\"PT2M\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":true,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT8M\",\"maxDeliveryCount\":15,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"SendDisabled\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "297" ], + "x-ms-client-request-id": [ "9019c082-5558-4120-83d2-295dff78cc87" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "aacd5cbe-9c89-4b49-b1cb-899da671a353_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "619bf8f9-1ec4-43be-80d4-567047c89b53" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082508Z:619bf8f9-1ec4-43be-80d4-567047c89b53" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1041" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:42.2762465Z\",\"updatedAt\":\"2022-09-27T07:58:42.2762465Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "298" ], + "x-ms-client-request-id": [ "89c38026-899b-4a6f-b1b3-ff768a5f8264" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5740d621-2822-45fd-8e98-88aaa6be96fe_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "1b264f52-9440-4208-9f8c-fdca60f701c4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082508Z:1b264f52-9440-4208-9f8c-fdca60f701c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1041" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:42.2762465Z\",\"updatedAt\":\"2022-09-27T07:58:42.2762465Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+26": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 256,\n \"requiresDuplicateDetection\": false,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "526" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5a935d07-931d-4542-89ca-6f84a91ed643_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], + "x-ms-correlation-request-id": [ "743be841-318e-4892-a194-b78d3f309eb0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082509Z:743be841-318e-4892-a194-b78d3f309eb0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "994" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "300" ], + "x-ms-client-request-id": [ "c352648c-4160-4a1e-931a-0ddd02cd33af" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a714e92f-3dc5-4b07-98bd-3a1e536d46a5_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "34a793dd-27e4-491b-9e10-6e8f7e52a093" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082510Z:34a793dd-27e4-491b-9e10-6e8f7e52a093" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1010" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:42.2762465Z\",\"updatedAt\":\"2022-09-27T08:25:09.2658121Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+28": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 256,\n \"requiresDuplicateDetection\": false,\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnMessageExpiration\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "525" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "128a8888-c096-4792-921b-2bc29a9aef13_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], + "x-ms-correlation-request-id": [ "31318732-7646-423e-bc90-d20561e0f868" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082510Z:31318732-7646-423e-bc90-d20561e0f868" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "993" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":true,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusQueue+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "302" ], + "x-ms-client-request-id": [ "e2121c75-a812-4d42-83c8-46754b11bd49" ], + "CommandName": [ "Get-AzServiceBusQueue" ], + "FullCommandName": [ "Get-AzServiceBusQueue_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "957bfa3a-b04a-4830-ab62-cfc6a93b201f_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "211719d1-13b0-4fc6-8ca7-38cddd65c6ca" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082511Z:211719d1-13b0-4fc6-8ca7-38cddd65c6ca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1009" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/queues/queue1\",\"name\":\"queue1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Queues\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"lockDuration\":\"PT1M\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"enableBatchedOperations\":true,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"maxDeliveryCount\":10,\"sizeInBytes\":0,\"messageCount\":0,\"status\":\"Active\",\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":true,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"createdAt\":\"2022-09-27T07:58:42.2762465Z\",\"updatedAt\":\"2022-09-27T08:25:10.6721745Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Tests.ps1 new file mode 100644 index 000000000000..0f6d8302a4d4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusQueue.Tests.ps1 @@ -0,0 +1,148 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusQueue')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusQueue.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +function AssertQueueUpdates{ + param([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue]$expectedQueue,[Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbQueue]$actualQueue) + $expectedQueue.Name | Should -Be $actualQueue.Name + $expectedQueue.ResourceGroupName | Should -Be $actualQueue.ResourceGroupName + $expectedQueue.MaxSizeInMegabytes | Should -Be $actualQueue.MaxSizeInMegabytes + $expectedQueue.RequiresDuplicateDetection | Should -Be $actualQueue.RequiresDuplicateDetection + $expectedQueue.DeadLetteringOnMessageExpiration | Should -Be $actualQueue.DeadLetteringOnMessageExpiration + $expectedQueue.MaxDeliveryCount | Should -Be $actualQueue.MaxDeliveryCount + $expectedQueue.EnableBatchedOperations | Should -Be $actualQueue.EnableBatchedOperations + $expectedQueue.ForwardTo | Should -Be $actualQueue.ForwardTo + $expectedQueue.ForwardDeadLetteredMessagesTo | Should -Be $actualQueue.ForwardDeadLetteredMessagesTo + $expectedQueue.MaxMessageSizeInKilobytes | Should -Be $actualQueue.MaxMessageSizeInKilobytes + $expectedQueue.EnablePartitioning | Should -Be $actualQueue.EnablePartitioning + $expectedQueue.EnableExpress | Should -Be $actualQueue.EnableExpress + $expectedQueue.RequiresSession | Should -Be $actualQueue.RequiresSession + + if ($expectedQueue.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)){ + $actualQueue.DefaultMessageTimeToLive | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualQueue.DefaultMessageTimeToLive | Should -Be $expectedQueue.DefaultMessageTimeToLive + } + + if ($expectedQueue.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)){ + $actualQueue.DuplicateDetectionHistoryTimeWindow | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualQueue.DuplicateDetectionHistoryTimeWindow | Should -Be $expectedQueue.DuplicateDetectionHistoryTimeWindow + } + + if ($expectedQueue.LockDuration -gt (New-TimeSpan -Days 10675197)){ + $actualQueue.LockDuration | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualQueue.LockDuration | Should -Be $expectedQueue.LockDuration + } + + if ($expectedQueue.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)){ + $actualQueue.AutoDeleteOnIdle | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualQueue.AutoDeleteOnIdle | Should -Be $expectedQueue.AutoDeleteOnIdle + } +} + +Describe 'Set-AzServiceBusQueue' { + It 'SetExpanded' { + $currentQueue = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue3 + + $updatedQueue = Set-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue3 -AutoDeleteOnIdle (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + $currentQueue.AutoDeleteOnIdle = (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue3 -Status ReceiveDisabled + $currentQueue.Status = "ReceiveDisabled" + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + } + + It 'SetViaIdentityExpanded' { + $currentQueue = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name queue2 + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -LockDuration (New-TimeSpan -Minutes 2) + $currentQueue.LockDuration = (New-TimeSpan -Minutes 2) + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -DefaultMessageTimeToLive (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + $currentQueue.DefaultMessageTimeToLive = (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -MaxSizeInMegabytes 2048 + $currentQueue.MaxSizeInMegabytes = 2048 + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -EnableBatchedOperations + $currentQueue.EnableBatchedOperations = $true + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -EnableBatchedOperations:$false + $currentQueue.EnableBatchedOperations = $false + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -DuplicateDetectionHistoryTimeWindow (New-TimeSpan -Minutes 8) + $currentQueue.DuplicateDetectionHistoryTimeWindow = (New-TimeSpan -Minutes 8) + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -DeadLetteringOnMessageExpiration:$false + $currentQueue.DeadLetteringOnMessageExpiration = $false + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -MaxDeliveryCount 15 + $currentQueue.MaxDeliveryCount = 15 + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -ForwardTo topic1 + $currentQueue.ForwardTo = "topic1" + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -ForwardDeadLetteredMessagesTo topic1 + $currentQueue.ForwardDeadLetteredMessagesTo = "topic1" + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -Status SendDisabled + $currentQueue.Status = "SendDisabled" + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $currentQueue = Get-AzServiceBusQueue -ResourceGroupName $env.resourceGroup -NamespaceName $env.standardNamespace -Name queue1 + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -EnableExpress:$false + $currentQueue.EnableExpress = $false + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + $updatedQueue = Set-AzServiceBusQueue -InputObject $currentQueue -EnableExpress + $currentQueue.EnableExpress = $true + AssertQueueUpdates $currentQueue $updatedQueue + $currentQueue = $updatedQueue + + { Set-AzServiceBusQueue -InputObject $currentQueue } | Should -Throw 'Please specify the property you want to update on the -InputObject' + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Recording.json new file mode 100644 index 000000000000..85ee6cb6cf76 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Recording.json @@ -0,0 +1,876 @@ +{ + "Set-AzServiceBusRule+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "303" ], + "x-ms-client-request-id": [ "5a435b1b-fb07-4589-a2cd-264265d8d37f" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "01b80a0a-b0cc-48db-8eb1-ea58ff6270be_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "57db51bf-88f3-4a64-8d80-95238c9fc0d6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082526Z:57db51bf-88f3-4a64-8d80-95238c9fc0d6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "527" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2\",\"name\":\"sqlRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{\"sqlExpression\":\"SET a=b\",\"compatibilityLevel\":20,\"parameters\":{}},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"1=2\",\"compatibilityLevel\":20,\"parameters\":{}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"action\": {\n \"sqlExpression\": \"SET a=b\",\n \"compatibilityLevel\": 20\n },\n \"sqlFilter\": {\n \"sqlExpression\": \"x=y\",\n \"compatibilityLevel\": 20\n },\n \"filterType\": \"SqlFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "230" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "66d1fbde-49c6-4597-b9c5-058e09e01ebd_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], + "x-ms-correlation-request-id": [ "acda47ab-c08a-4016-9a99-2e21c79a80b7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082527Z:acda47ab-c08a-4016-9a99-2e21c79a80b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "495" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/sqlRule2\",\"name\":\"sqlRule2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{\"sqlExpression\":\"SET a=b\",\"compatibilityLevel\":20},\"filterType\":\"SqlFilter\",\"sqlFilter\":{\"sqlExpression\":\"x=y\",\"compatibilityLevel\":20}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "305" ], + "x-ms-client-request-id": [ "a76a2217-5dc9-439c-848d-c143169f9ae5" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "386190f6-09a3-4d39-b52c-f3a38a66fb70_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "fcf995b5-d863-48ed-8d9b-bc00383fa413" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082528Z:fcf995b5-d863-48ed-8d9b-bc00383fa413" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"correlationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"contenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "306" ], + "x-ms-client-request-id": [ "56d95525-1c58-4a9e-a0b7-2113eb41def3" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "59ef2be4-5561-49ad-b3bf-729e94bcf74b_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "d1d10d8e-3254-4016-be44-31f20162c3e0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082528Z:d1d10d8e-3254-4016-be44-31f20162c3e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"correlationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"contenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"c\": \"d\",\n \"a\": \"b\"\n },\n \"correlationId\": \"correlationid\",\n \"messageId\": \"messageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"label\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "406" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "205ef1a2-f892-4234-b1aa-3e79a2d75f59_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], + "x-ms-correlation-request-id": [ "f3d0dcb2-7c10-413b-b37d-7b636a865627" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082530Z:f3d0dcb2-7c10-413b-b37d-7b636a865627" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "651" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"correlationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "308" ], + "x-ms-client-request-id": [ "a572e500-99d6-49e8-bf4a-183c39175022" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "133fa4c9-3a26-4706-b8ba-db6c34ef6638_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "6ed8c65f-61b7-4dc0-9e6e-22b28c93fb9e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082530Z:6ed8c65f-61b7-4dc0-9e6e-22b28c93fb9e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "651" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"correlationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"c\": \"d\",\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"messageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"label\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "412" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "52f54981-12ab-41e7-ac79-4e556709d28b_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], + "x-ms-correlation-request-id": [ "fb0a42fa-267e-4051-a4fc-d242d4789cc9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082531Z:fb0a42fa-267e-4051-a4fc-d242d4789cc9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "657" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "310" ], + "x-ms-client-request-id": [ "37d7d2d5-940c-4031-a856-0b8947895024" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "80a76902-4d1d-49f7-926d-874c13af4f7b_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "9ded3a39-63e3-4213-a006-41e697a5f8a3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082532Z:9ded3a39-63e3-4213-a006-41e697a5f8a3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "657" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"label\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"c\": \"d\",\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"messageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "418" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7647b8ad-0487-47f4-bb53-460cea24ad15_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], + "x-ms-correlation-request-id": [ "8af713c0-8b5f-49a7-898a-d6be894b0d24" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082533Z:8af713c0-8b5f-49a7-898a-d6be894b0d24" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "663" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "312" ], + "x-ms-client-request-id": [ "9aac54b5-4ffa-4a79-ae65-d0d6efc81a22" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "96be282f-3167-4dee-9a76-5a206f930665_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "56bf69a8-83ec-4cc0-8e70-916604b3b825" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082534Z:56bf69a8-83ec-4cc0-8e70-916604b3b825" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "663" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"messageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"c\": \"d\",\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "424" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5725db8d-9201-4651-85de-fbf16609d1fe_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], + "x-ms-correlation-request-id": [ "bc48ad93-78b0-4cc0-aa7d-06f723f88cf0" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082534Z:bc48ad93-78b0-4cc0-aa7d-06f723f88cf0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "314" ], + "x-ms-client-request-id": [ "653ac0d4-68ed-40e3-8b12-8edad01a06e4" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "969b4059-ae9e-459d-b0d7-b1184d48109e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "1d8d31b9-c1bb-4081-b73e-34771994f7f6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082535Z:1d8d31b9-c1bb-4081-b73e-34771994f7f6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"c\":\"d\",\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"replyTo\": \"replyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "406" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "17770fe1-173a-4910-a94c-0192d07183e1_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], + "x-ms-correlation-request-id": [ "16de5192-0e8c-4d94-b41c-021f1a930499" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082536Z:16de5192-0e8c-4d94-b41c-021f1a930499" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "661" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "316" ], + "x-ms-client-request-id": [ "fde6dc6b-3062-4a70-8131-009f801a7e2b" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d88fb35a-ea43-48d1-acba-f8181447b341_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "d0102ada-ddff-4944-b991-9d63cc997bee" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082537Z:d0102ada-ddff-4944-b991-9d63cc997bee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "661" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"replyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"replyTo\": \"secondreplyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"replytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "412" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "058e7eac-db7d-4b2d-ae89-42d55e0b1d94_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1171" ], + "x-ms-correlation-request-id": [ "ba23815f-0b76-4e08-8a09-57f00e65db84" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082538Z:ba23815f-0b76-4e08-8a09-57f00e65db84" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "667" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "318" ], + "x-ms-client-request-id": [ "4fe4639a-707f-4237-ade6-2c42461e7ecb" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7fc5f6f6-48f3-47bc-a229-bd796522ad5d_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "f45b20bd-cb4a-4724-bf43-16fe6a28ff60" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082539Z:f45b20bd-cb4a-4724-bf43-16fe6a28ff60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "667" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"replytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"replyTo\": \"secondreplyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"sessionid\",\n \"replyToSessionId\": \"secondreplytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "418" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "66c28309-e860-44da-b775-70e3c79d2eac_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1170" ], + "x-ms-correlation-request-id": [ "d71a269f-93f1-470d-a112-5ed880859d63" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082540Z:d71a269f-93f1-470d-a112-5ed880859d63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "673" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "320" ], + "x-ms-client-request-id": [ "538b6640-2d27-42f9-8526-c7700b95498d" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "28d1e157-c180-4354-b65d-0eb154c207dc_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "464320b5-c0d7-4f3d-9be4-8b7beed49e67" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082540Z:464320b5-c0d7-4f3d-9be4-8b7beed49e67" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "673" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"sessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"replyTo\": \"secondreplyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"secondsessionid\",\n \"replyToSessionId\": \"secondreplytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "424" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "239b84ad-9787-423f-997e-a54b6d74c928_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1169" ], + "x-ms-correlation-request-id": [ "61fc0168-b657-4c25-96f0-8ca1f3d3e6b1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082541Z:61fc0168-b657-4c25-96f0-8ca1f3d3e6b1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "679" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"secondsessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "322" ], + "x-ms-client-request-id": [ "b78636d9-a3e5-4ab8-bbb4-3f93d0b1aafa" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d4d89a4f-5f7b-416e-83e8-c4f44c1f4fc5_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "x-ms-correlation-request-id": [ "cd2d64da-c9d1-49f0-9472-8fc4cdfd076d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082542Z:cd2d64da-c9d1-49f0-9472-8fc4cdfd076d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "679" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"secondsessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"correlationFilter\": {\n \"properties\": {\n \"a\": \"b\"\n },\n \"correlationId\": \"secondcorrelationid\",\n \"messageId\": \"secondmessageid\",\n \"to\": \"secondto\",\n \"replyTo\": \"secondreplyto\",\n \"label\": \"secondlabel\",\n \"sessionId\": \"secondsessionid\",\n \"replyToSessionId\": \"secondreplytosessionid\",\n \"contentType\": \"secondcontenttype\"\n },\n \"filterType\": \"CorrelationFilter\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "448" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "235908e1-4c12-4dd6-9db3-584b799bf71f_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1168" ], + "x-ms-correlation-request-id": [ "a3c37fa9-2464-4a3c-a3d2-c72827bf80f7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082543Z:a3c37fa9-2464-4a3c-a3d2-c72827bf80f7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"to\":\"secondto\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"secondsessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusRule+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "324" ], + "x-ms-client-request-id": [ "51135731-c019-42b3-b41f-72c283418da4" ], + "CommandName": [ "Get-AzServiceBusRule" ], + "FullCommandName": [ "Get-AzServiceBusRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7c183f04-eb59-4e35-beeb-5b662ad1b5b1_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-correlation-request-id": [ "273b4d1e-7c8d-4fd1-9660-cf09b2dbd741" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082544Z:273b4d1e-7c8d-4fd1-9660-cf09b2dbd741" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "695" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription1/rules/correlationRule1\",\"name\":\"correlationRule1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules\",\"location\":\"North Europe\",\"properties\":{\"action\":{},\"filterType\":\"CorrelationFilter\",\"correlationFilter\":{\"correlationId\":\"secondcorrelationid\",\"messageId\":\"secondmessageid\",\"to\":\"secondto\",\"replyTo\":\"secondreplyto\",\"label\":\"secondlabel\",\"sessionId\":\"secondsessionid\",\"replyToSessionId\":\"secondreplytosessionid\",\"contentType\":\"secondcontenttype\",\"properties\":{\"a\":\"b\"}}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Tests.ps1 new file mode 100644 index 000000000000..427035599b49 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusRule.Tests.ps1 @@ -0,0 +1,94 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +function AssertCorrelationFilterUpdates{ + param([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule]$expectedRule,[Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.IRule]$actualRule) + $expectedRule.Name | Should -Be $actualRule.Name + $expectedRule.ResourceGroupName | Should -Be $actualRule.ResourceGroupName + $expectedRule.ContentType | Should -Be $actualRule.ContentType + $expectedRule.CorrelationId | Should -Be $actualRule.CorrelationId + $expectedRule.Label | Should -Be $actualRule.Label + $expectedRule.MessageId | Should -Be $actualRule.MessageId + $expectedRule.CorrelationFilterProperty.Count | Should -Be $actualRule.CorrelationFilterProperty.Count + $expectedRule.ReplyTo | Should -Be $actualRule.ReplyTo + $expectedRule.ReplyToSessionId | Should -Be $actualRule.ReplyToSessionId + $expectedRule.CorrelationFilterRequiresPreprocessing | Should -Be $actualRule.CorrelationFilterRequiresPreprocessing + $expectedRule.SessionId | Should -Be $actualRule.SessionId + $expectedRule.To | Should -Be $actualRule.To + $expectedRule.FilterType | Should -Be $actualRule.FilterType +} + +Describe 'Set-AzServiceBusRule' { + It 'SetExpanded' { + $rule1 = Set-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name sqlRule2 -FilterType SqlFilter -SqlExpression x=y + $rule1.Name | Should -Be "sqlRule2" + $rule1.ResourceGroupName | Should -Be $env.resourceGroup + $rule1.FilterType | Should -Be "SqlFilter" + $rule1.SqlExpression | Should -Be "x=y" + $rule1.ActionSqlExpression | Should -Be "SET a=b" + } + + It 'SetViaIdentityExpanded' { + $currentRule = Get-AzServiceBusRule -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -SubscriptionName subscription1 -Name correlationRule1 + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -ContentType secondcontenttype + $currentRule.ContentType = "secondcontenttype" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -CorrelationId secondcorrelationid + $currentRule.CorrelationId = "secondcorrelationid" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -Label secondlabel + $currentRule.Label = "secondlabel" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -MessageId secondmessageid + $currentRule.MessageId = "secondmessageid" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -CorrelationFilterProperty @{a='b'} + $currentRule.CorrelationFilterProperty = @{a='b'} + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -ReplyTo secondreplyto + $currentRule.ReplyTo = "secondreplyto" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -ReplyToSessionId secondreplytosessionid + $currentRule.ReplyToSessionId = "secondreplytosessionid" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -SessionId secondsessionid + $currentRule.SessionId = "secondsessionid" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + $updatedRule = Set-AzServiceBusRule -InputObject $currentRule -To secondto + $currentRule.To = "secondto" + AssertCorrelationFilterUpdates $currentRule $updatedRule + $currentRule = $updatedRule + + { Set-AzServiceBusRule -InputObject $currentRule } | Should -Throw 'Please specify the property you want to update on the -InputObject' + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Recording.json new file mode 100644 index 000000000000..6436fb5a876e --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Recording.json @@ -0,0 +1,1034 @@ +{ + "Set-AzServiceBusSubscription+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "325" ], + "x-ms-client-request-id": [ "259b7905-9e8e-4a4e-a9cd-6f05b8359c26" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9f7da8c9-5c42-41c5-bb39-25ffffb6a7bc_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "x-ms-correlation-request-id": [ "5bcb4412-53aa-4611-bfa3-0744defe7e06" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082556Z:5bcb4412-53aa-4611-bfa3-0744defe7e06" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1026" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:17.9538532Z\",\"updatedAt\":\"2022-09-27T07:59:17.9538532Z\",\"accessedAt\":\"2022-09-27T07:59:17.953Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "326" ], + "x-ms-client-request-id": [ "eb4ffad9-ac08-439f-8505-a668aba17030" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fa0fe647-ad8b-43f8-b9db-80ae8c4b7a02_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], + "x-ms-correlation-request-id": [ "da4e31e9-8ddf-4895-85ca-1e1d2909a8d7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082557Z:da4e31e9-8ddf-4895-85ca-1e1d2909a8d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1026" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:17.9538532Z\",\"updatedAt\":\"2022-09-27T07:59:17.9538532Z\",\"accessedAt\":\"2022-09-27T07:59:17.953Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"clientAffineProperties\": {\n \"clientId\": \"clientid\",\n \"isDurable\": true,\n \"isShared\": true\n },\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": true,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnFilterEvaluationExceptions\": false,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P7D\",\n \"isClientAffine\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "495" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0803a059-074a-4346-910c-f09ca2066734_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1167" ], + "x-ms-correlation-request-id": [ "36fe8794-86dd-4edb-94f4-1d87c67b6178" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082557Z:36fe8794-86dd-4edb-94f4-1d87c67b6178" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1005" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":false,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:25:57.646295Z\",\"updatedAt\":\"2022-09-27T08:25:57.646295Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3%24%24D?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "328" ], + "x-ms-client-request-id": [ "dbbfe68c-e68a-41fb-bf58-3fbc78f1b79e" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "210bd2c6-761e-460a-912f-6471915a971c_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "x-ms-correlation-request-id": [ "38d07019-a0d5-44b0-b01c-20875fce3297" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082558Z:38d07019-a0d5-44b0-b01c-20875fce3297" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1026" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:17.9538532Z\",\"updatedAt\":\"2022-09-27T07:59:17.9538532Z\",\"accessedAt\":\"2022-09-27T07:59:17.953Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"clientAffineProperties\": {\n \"clientId\": \"clientid\",\n \"isDurable\": true,\n \"isShared\": true\n },\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": true,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P7D\",\n \"isClientAffine\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "494" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ce996bae-c109-4f6c-a774-451bf2cef9fb_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1166" ], + "x-ms-correlation-request-id": [ "3eaa2ea5-9b74-4241-84af-90e437e6fa0a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082559Z:3eaa2ea5-9b74-4241-84af-90e437e6fa0a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1006" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription3$$D\",\"name\":\"subscription3$$D\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":true,\"clientAffineProperties\":{\"clientId\":\"clientid\",\"isDurable\":true,\"isShared\":true},\"lockDuration\":\"PT1M\",\"requiresSession\":true,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:25:59.2564858Z\",\"updatedAt\":\"2022-09-27T08:25:59.2564858Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P7D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "330" ], + "x-ms-client-request-id": [ "4073d187-0d13-4fbf-a3b5-dafa7373c7c3" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5948b2dc-10dd-44f1-9b47-37517066b1d5_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "x-ms-correlation-request-id": [ "63203e91-8fba-4cb6-a65c-80163322ce0e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082600Z:63203e91-8fba-4cb6-a65c-80163322ce0e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:25:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1012" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T07:59:15.8757223Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "331" ], + "x-ms-client-request-id": [ "8ac70f1c-df2c-455f-9acb-ed1dc999e98f" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "767a50d3-1f20-4def-8842-5e1449205bed_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-correlation-request-id": [ "ad382639-6d36-44ed-b350-a6a9a50fdb85" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082600Z:ad382639-6d36-44ed-b350-a6a9a50fdb85" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1012" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P428DT3H11M10S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T07:59:15.8757223Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT3M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": true,\n \"maxDeliveryCount\": 12,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "457" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6958dcae-fad2-40f8-ba3c-4dac435840d1_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1165" ], + "x-ms-correlation-request-id": [ "f563b5e5-eebc-4266-b731-47ae0eaa6ec5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082601Z:f563b5e5-eebc-4266-b731-47ae0eaa6ec5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1002" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:01.4908936Z\",\"updatedAt\":\"2022-09-27T08:26:01.4908936Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "333" ], + "x-ms-client-request-id": [ "112278f1-d071-4f09-ad2e-108cc69f3e82" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ab2b413-5a05-4e3d-acbd-0e60f4106344_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "x-ms-correlation-request-id": [ "b00d4795-7ad2-4240-811b-18af1456d934" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082602Z:b00d4795-7ad2-4240-811b-18af1456d934" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1006" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":true,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:01.5105059Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT3M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 12,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "458" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b3934fdd-c113-4fad-966a-77a64d9f9102_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1164" ], + "x-ms-correlation-request-id": [ "2f961363-cdb1-442c-937a-da0d511e7083" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082603Z:2f961363-cdb1-442c-937a-da0d511e7083" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1003" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:02.9440392Z\",\"updatedAt\":\"2022-09-27T08:26:02.9440392Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "335" ], + "x-ms-client-request-id": [ "65b6b615-17e2-4bd6-a2af-11173bceac59" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8e0109a5-ac7e-412a-bdab-796015e94815_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-correlation-request-id": [ "40ff89df-8d9e-4838-9578-4460e1ba4a34" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082603Z:40ff89df-8d9e-4838-9578-4460e1ba4a34" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT3M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:02.9480588Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 12,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "458" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ec37ffc8-8214-45af-8fd4-e22a949a02b2_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1163" ], + "x-ms-correlation-request-id": [ "70dceed4-c6c7-41d9-ba2f-ce996b18ebc8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082604Z:70dceed4-c6c7-41d9-ba2f-ce996b18ebc8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1003" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:04.3190579Z\",\"updatedAt\":\"2022-09-27T08:26:04.3190579Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "337" ], + "x-ms-client-request-id": [ "32289c6c-4571-4011-97ca-f3a3e9788e12" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "869204ee-cd4b-477a-9f81-b86d8211de94_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "ae3ea3d8-0e2f-420c-ac24-87aba2bbaed6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082605Z:ae3ea3d8-0e2f-420c-ac24-87aba2bbaed6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":12,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:04.3386981Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "457" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f8640809-6919-42fc-9b74-2d60846b2c4e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1162" ], + "x-ms-correlation-request-id": [ "7022ed58-d787-4bfc-ae85-4d42297d49e8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082605Z:7022ed58-d787-4bfc-ae85-4d42297d49e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1002" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:05.7724453Z\",\"updatedAt\":\"2022-09-27T08:26:05.7724453Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "339" ], + "x-ms-client-request-id": [ "d30516e5-7f9b-409f-ae1e-eeac8d9fb555" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a730ec94-84f0-4927-8ffe-3e0f471d99e2_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "ba1c54cd-b324-4d1a-8837-420a4a6d35f3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082607Z:ba1c54cd-b324-4d1a-8837-420a4a6d35f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1006" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:05.7761871Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"queue1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "458" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "49ec51b2-fd81-46f0-bcdb-34fde792e0ef_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1161" ], + "x-ms-correlation-request-id": [ "59f907ac-4019-478f-8086-817cf77adb42" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082607Z:59f907ac-4019-478f-8086-817cf77adb42" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1003" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T08:26:07.7204715Z\",\"updatedAt\":\"2022-09-27T08:26:07.7204715Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "341" ], + "x-ms-client-request-id": [ "29060c75-f357-4571-beeb-3e435a0f72ef" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9e8236a9-470a-46be-a51f-8eaf0bf37d35_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-correlation-request-id": [ "2034f776-98e4-448a-a566-f9b92542dcba" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082608Z:2034f776-98e4-448a-a566-f9b92542dcba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:07.7293605Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"queue1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"queue1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "458" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d15161e5-1527-4c61-9c17-8fd8482a4179_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1160" ], + "x-ms-correlation-request-id": [ "dc937e88-cda5-4e7f-9802-75bb6e077beb" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082609Z:dc937e88-cda5-4e7f-9802-75bb6e077beb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1003" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T08:26:09.3977477Z\",\"updatedAt\":\"2022-09-27T08:26:09.3977477Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "343" ], + "x-ms-client-request-id": [ "a6aba588-fdea-4b5e-ba31-91dcc4a4731a" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "32ea4cab-605c-4431-b7b0-7ecbdb796576_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], + "x-ms-correlation-request-id": [ "9bad09a4-f51d-4db1-b474-121c4f47fe56" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082610Z:9bad09a4-f51d-4db1-b474-121c4f47fe56" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:09.4012577Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"queue1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 8,\n \"status\": \"Active\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"topic1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "458" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d20d0686-c260-47b7-98cd-5fe625d2ce9a_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1159" ], + "x-ms-correlation-request-id": [ "f741ef21-c372-4bb6-a3c0-87d873e998bd" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082611Z:f741ef21-c372-4bb6-a3c0-87d873e998bd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1003" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T08:26:11.2205179Z\",\"updatedAt\":\"2022-09-27T08:26:11.2205179Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "345" ], + "x-ms-client-request-id": [ "fefbe8b5-e332-4754-94c5-68842248261d" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "03452af9-a2ce-473c-9c20-851e80d940f9_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], + "x-ms-correlation-request-id": [ "f448db12-4e38-46d5-8e92-8cf3aabefea5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082612Z:f448db12-4e38-46d5-8e92-8cf3aabefea5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1007" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"Active\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T07:59:15.8757223Z\",\"updatedAt\":\"2022-09-27T08:26:11.2293361Z\",\"accessedAt\":\"2022-09-27T07:59:15.875Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P1DT3M4S\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 8,\n \"status\": \"ReceiveDisabled\",\n \"enableBatchedOperations\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"forwardTo\": \"topic1\",\n \"forwardDeadLetteredMessagesTo\": \"topic1\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "467" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3ed1d782-269f-435c-88a6-c53a07524bad_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1158" ], + "x-ms-correlation-request-id": [ "e8d8f9ef-e00b-49eb-86dd-ef8e4cb3351e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082613Z:e8d8f9ef-e00b-49eb-86dd-ef8e4cb3351e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1012" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription2\",\"name\":\"subscription2\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P1DT3M4S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":8,\"status\":\"ReceiveDisabled\",\"enableBatchedOperations\":false,\"createdAt\":\"2022-09-27T08:26:12.8455419Z\",\"updatedAt\":\"2022-09-27T08:26:12.8455419Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"forwardTo\":\"topic1\",\"forwardDeadLetteredMessagesTo\":\"topic1\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cfdb92e3-59ee-4b83-b110-c8d6d5072bba_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1157" ], + "x-ms-correlation-request-id": [ "d49ab450-e0b0-4e66-96f7-3d101435c6af" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082614Z:d49ab450-e0b0-4e66-96f7-3d101435c6af" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "959" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4\",\"name\":\"subscription4\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:14.7049445Z\",\"updatedAt\":\"2022-09-27T08:26:14.7049445Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "348" ], + "x-ms-client-request-id": [ "428643e4-cbcf-4954-87b0-c79d0cdb92fd" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d4ca4602-0931-4db4-a583-9f03421a72ea_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], + "x-ms-correlation-request-id": [ "94e9280b-82ec-4b26-974f-f2d7d7b77a76" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082615Z:94e9280b-82ec-4b26-974f-f2d7d7b77a76" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "964" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4\",\"name\":\"subscription4\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:14.713807Z\",\"updatedAt\":\"2022-09-27T08:26:14.713807Z\",\"accessedAt\":\"2022-09-27T08:26:14.713807Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"lockDuration\": \"PT1M\",\n \"requiresSession\": false,\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"deadLetteringOnFilterEvaluationExceptions\": true,\n \"deadLetteringOnMessageExpiration\": false,\n \"maxDeliveryCount\": 10,\n \"status\": \"Active\",\n \"enableBatchedOperations\": true,\n \"autoDeleteOnIdle\": \"P5D\",\n \"isClientAffine\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "379" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f7c417ee-5d30-42a3-9ba7-9f3a46dac52e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1156" ], + "x-ms-correlation-request-id": [ "a4d54d69-28b7-420c-9338-b7b1e731494f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082616Z:a4d54d69-28b7-420c-9338-b7b1e731494f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4\",\"name\":\"subscription4\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:16.1580862Z\",\"updatedAt\":\"2022-09-27T08:26:16.1580862Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P5D\"}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusSubscription+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "350" ], + "x-ms-client-request-id": [ "6a0a578c-1ff9-4c04-aff9-52bd1f1cbe42" ], + "CommandName": [ "Get-AzServiceBusSubscription" ], + "FullCommandName": [ "Get-AzServiceBusSubscription_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e03db4c7-2bcd-4dce-9452-880424444436_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], + "x-ms-correlation-request-id": [ "392080b1-fa47-49cf-b1d7-820d57e6ddc9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082617Z:392080b1-fa47-49cf-b1d7-820d57e6ddc9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "923" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topic1/subscriptions/subscription4\",\"name\":\"subscription4\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions\",\"location\":\"North Europe\",\"properties\":{\"isClientAffine\":false,\"lockDuration\":\"PT1M\",\"requiresSession\":false,\"defaultMessageTimeToLive\":\"P10675197D\",\"deadLetteringOnMessageExpiration\":false,\"deadLetteringOnFilterEvaluationExceptions\":true,\"messageCount\":0,\"maxDeliveryCount\":10,\"status\":\"Active\",\"enableBatchedOperations\":true,\"createdAt\":\"2022-09-27T08:26:14.713807Z\",\"updatedAt\":\"2022-09-27T08:26:16.1669043Z\",\"accessedAt\":\"2022-09-27T08:26:14.713Z\",\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0},\"autoDeleteOnIdle\":\"P5D\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Tests.ps1 new file mode 100644 index 000000000000..818cea5d2ec4 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusSubscription.Tests.ps1 @@ -0,0 +1,126 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +function AssertSubscriptionUpdates{ + param([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription]$expectedSub,[Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbSubscription]$actualSub) + $expectedSub.Name | Should -Be $actualSub.Name + $expectedSub.ResourceGroupName | Should -Be $actualSub.ResourceGroupName + $expectedSub.DeadLetteringOnMessageExpiration | Should -Be $actualSub.DeadLetteringOnMessageExpiration + $expectedSub.MaxDeliveryCount | Should -Be $actualSub.MaxDeliveryCount + $expectedSub.Status | Should -Be $actualSub.Status + $expectedSub.EnableBatchedOperations | Should -Be $actualSub.EnableBatchedOperations + $expectedSub.ForwardTo | Should -Be $actualSub.ForwardTo + $expectedSub.ForwardDeadLetteredMessagesTo | Should -Be $actualSub.ForwardDeadLetteredMessagesTo + $expectedSub.DeadLetteringOnFilterEvaluationException | Should -Be $actualSub.DeadLetteringOnFilterEvaluationException + $expectedSub.IsClientAffine | Should -Be $actualSub.IsClientAffine + $expectedSub.ClientId | Should -Be $actualSub.ClientId + $expectedSub.IsShared | Should -Be $actualSub.IsShared + $expectedSub.IsDurable | Should -Be $actualSub.IsDurable + + if ($expectedSub.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)){ + $actualSub.DefaultMessageTimeToLive | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualSub.DefaultMessageTimeToLive | Should -Be $expectedSub.DefaultMessageTimeToLive + } + + if ($expectedSub.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)){ + $actualSub.DuplicateDetectionHistoryTimeWindow | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualSub.DuplicateDetectionHistoryTimeWindow | Should -Be $expectedSub.DuplicateDetectionHistoryTimeWindow + } + + if ($expectedSub.LockDuration -gt (New-TimeSpan -Days 10675197)){ + $actualSub.LockDuration | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualSub.LockDuration | Should -Be $expectedSub.LockDuration + } + + if ($expectedSub.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)){ + $actualSub.AutoDeleteOnIdle | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualSub.AutoDeleteOnIdle | Should -Be $expectedSub.AutoDeleteOnIdle + } +} + +Describe 'Set-AzServiceBusSubscription' { + It 'SetExpanded' { + $currentSub = Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name 'subscription3$$D' + $updatedSub = Set-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name 'subscription3$$D' -DeadLetteringOnFilterEvaluationException:$false + $currentSub.DeadLetteringOnFilterEvaluationException = $false + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name 'subscription3$$D' -DeadLetteringOnFilterEvaluationException + $currentSub.DeadLetteringOnFilterEvaluationException = $true + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + } + + It 'SetViaIdentityExpanded' { + $currentSub = Get-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subscription2 + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -DefaultMessageTimeToLive (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + $currentSub.DefaultMessageTimeToLive = (New-TimeSpan -Days 1 -Minutes 3 -Seconds 4) + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -DeadLetteringOnMessageExpiration:$false + $currentSub.DeadLetteringOnMessageExpiration = $false + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -LockDuration (New-TimeSpan -Minutes 1) + $currentSub.LockDuration = (New-TimeSpan -Minutes 1) + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -MaxDeliveryCount 8 + $currentSub.MaxDeliveryCount = 8 + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -EnableBatchedOperations:$false + $currentSub.EnableBatchedOperations = $false + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -ForwardTo topic1 + $currentSub.ForwardTo = "topic1" + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -ForwardDeadLetteredMessagesTo topic1 + $currentSub.ForwardDeadLetteredMessagesTo = "topic1" + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -Status ReceiveDisabled + $currentSub.Status = "ReceiveDisabled" + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + $currentSub = New-AzServiceBusSubscription -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -TopicName topic1 -Name subscription4 + $updatedSub = Set-AzServiceBusSubscription -InputObject $currentSub -AutoDeleteOnIdle (New-TimeSpan -Days 5) + $currentSub.AutoDeleteOnIdle = (New-TimeSpan -Days 5) + AssertSubscriptionUpdates $currentSub $updatedSub + $currentSub = $updatedSub + + { Set-AzServiceBusSubscription -InputObject $currentSub } | Should -Throw 'Please specify the property you want to update on the -InputObject' + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Recording.json new file mode 100644 index 000000000000..8ca89c4f12da --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Recording.json @@ -0,0 +1,1034 @@ +{ + "Set-AzServiceBusTopic+[NoContext]+[NoScenario]+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ab7f8a59-6943-46f0-9f8b-d6c7c5e541b3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1155" ], + "x-ms-correlation-request-id": [ "23608e4d-8dfb-4ed7-ac9c-858b8073b642" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082632Z:23608e4d-8dfb-4ed7-ac9c-858b8073b642" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "967" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:31.43Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "352" ], + "x-ms-client-request-id": [ "b6d0d0fc-e196-42b6-9cb7-69aa8c5d0c1a" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2f16d41b-729e-4f95-81f3-d0b2f67eeb36_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], + "x-ms-correlation-request-id": [ "746c8514-1e0f-4357-be15-aa5284276911" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082632Z:746c8514-1e0f-4357-be15-aa5284276911" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "967" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:31.43Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "416" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "00b14eae-b32e-4c31-8293-c8325b3c91e4_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1154" ], + "x-ms-correlation-request-id": [ "9021ce32-d5f9-450f-8732-c8d50e04308d" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082633Z:9021ce32-d5f9-450f-8732-c8d50e04308d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "921" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "354" ], + "x-ms-client-request-id": [ "4258c58d-04e4-49c5-a0cd-d0100eb3c0b1" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a3549e37-a08a-46e2-ba56-b6c4db6e53d2_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], + "x-ms-correlation-request-id": [ "e772b06b-8e15-4e4b-b265-bc5ffa36cfa7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082634Z:e772b06b-8e15-4e4b-b265-bc5ffa36cfa7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "929" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:33.267Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": false,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "417" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e3c86d9b-81fa-4e05-b84c-1db666f6d644_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1153" ], + "x-ms-correlation-request-id": [ "9788825f-ccca-4458-b84e-3ffee4faf838" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082634Z:9788825f-ccca-4458-b84e-3ffee4faf838" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "922" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":false,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "356" ], + "x-ms-client-request-id": [ "54a604c4-8179-494f-b15c-6b2843da766a" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "049afff1-ca17-4aef-862a-defd57952b7d_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], + "x-ms-correlation-request-id": [ "4ca3f578-5e50-4729-baf0-1107c6012aec" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082635Z:4ca3f578-5e50-4729-baf0-1107c6012aec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "930" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":false,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:34.707Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "416" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f1e2b4ee-7739-4cc8-8183-3624b1d1139e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1152" ], + "x-ms-correlation-request-id": [ "7af5c5be-8acd-4126-8ba6-85833049f087" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082636Z:7af5c5be-8acd-4126-8ba6-85833049f087" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "921" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "358" ], + "x-ms-client-request-id": [ "d5d96b03-c9bb-4faa-b760-ecc678eedad9" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "75d0b196-db88-4988-8286-eaaf9f944943_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], + "x-ms-correlation-request-id": [ "64feec91-acec-4004-8560-7da7af7b4014" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082637Z:64feec91-acec-4004-8560-7da7af7b4014" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "929" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:36.347Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "359" ], + "x-ms-client-request-id": [ "0db144b9-0ec1-40a8-bfec-fd95807e7ba1" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3db708e7-ef57-45c8-a93c-ceec9bd85f1e_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], + "x-ms-correlation-request-id": [ "9a327570-ee75-43ac-bccb-f7c99b0f3bdf" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082637Z:9a327570-ee75-43ac-bccb-f7c99b0f3bdf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "929" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:36.347Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "416" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3f7adbae-d2d3-4790-8048-a2250e7bf641_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1151" ], + "x-ms-correlation-request-id": [ "770b8ee4-371e-4c67-90d1-303874c504a4" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082638Z:770b8ee4-371e-4c67-90d1-303874c504a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "921" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "361" ], + "x-ms-client-request-id": [ "26036679-575c-4123-9476-aef625b0bf1d" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "27085383-191a-4ed0-b45e-3b2b5ce8351b_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], + "x-ms-correlation-request-id": [ "07af6b58-ac56-48e8-ab6a-8afc4be63ab8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082639Z:07af6b58-ac56-48e8-ab6a-8afc4be63ab8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "929" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:38.693Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "417" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "73945f5b-bafc-49bf-84a3-e089384b69b3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1150" ], + "x-ms-correlation-request-id": [ "85be5055-f34f-482e-bd54-317c0c75c81b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082640Z:85be5055-f34f-482e-bd54-317c0c75c81b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "922" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "363" ], + "x-ms-client-request-id": [ "c58f33af-b3dc-45a2-a1db-95d5e3aa2ccc" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "48b7516a-1d98-4edf-9fec-2520515015fc_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-correlation-request-id": [ "87ec79bd-6288-4192-a144-3e5f53ea5b45" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082641Z:87ec79bd-6288-4192-a144-3e5f53ea5b45" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "930" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:40.343Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": false,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "417" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "803f10f5-f31f-4d10-9b1e-2986a3c6e653_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1149" ], + "x-ms-correlation-request-id": [ "4cda3404-3b57-427d-9db7-94b6314c5102" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082642Z:4cda3404-3b57-427d-9db7-94b6314c5102" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "922" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "365" ], + "x-ms-client-request-id": [ "63bf6707-c882-4dd7-9b00-3c9c5182e37b" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2a97d968-2d38-4de5-bad1-a3a6044b353a_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-correlation-request-id": [ "ce1806ef-2e80-48d3-aedc-2493c8e1c03a" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082642Z:ce1806ef-2e80-48d3-aedc-2493c8e1c03a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "929" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:42.11Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": false,\n \"autoDeleteOnIdle\": \"P428DT3H11M2S\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "420" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "97ad4461-5603-4177-8945-b7197bdf9319_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1148" ], + "x-ms-correlation-request-id": [ "40525a32-12cf-4b6a-9d88-0ff0e15bd9b7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082643Z:40525a32-12cf-4b6a-9d88-0ff0e15bd9b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "925" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "367" ], + "x-ms-client-request-id": [ "ff029086-4b92-4bae-a307-455aece24265" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ee2e285c-cc04-4ced-8f10-04b5bdadfe1c_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-correlation-request-id": [ "8ba74880-59e5-4ad1-b8ea-74b9ec867a17" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082644Z:8ba74880-59e5-4ad1-b8ea-74b9ec867a17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "932" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:43.51Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"SendDisabled\",\n \"supportOrdering\": false,\n \"autoDeleteOnIdle\": \"P428DT3H11M2S\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "426" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "76156316-fad3-43de-a1aa-942df80523e3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1147" ], + "x-ms-correlation-request-id": [ "71abd6ce-4087-4099-9b99-be826b9c0bb6" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082645Z:71abd6ce-4087-4099-9b99-be826b9c0bb6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "931" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"SendDisabled\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "369" ], + "x-ms-client-request-id": [ "63bd80be-4cdd-4558-a20a-1ab7345a4794" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a2d38548-bb5d-4ac0-8674-93d57739fd26_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], + "x-ms-correlation-request-id": [ "9aec27c4-ffd1-4dd1-bd1a-42094cd6e8b7" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082646Z:9aec27c4-ffd1-4dd1-bd1a-42094cd6e8b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "938" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"SendDisabled\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T08:26:31.337Z\",\"updatedAt\":\"2022-09-27T08:26:45.14Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P7D\",\n \"maxSizeInMegabytes\": 2048,\n \"maxMessageSizeInKilobytes\": 1024,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT3M\",\n \"enableBatchedOperations\": true,\n \"status\": \"SendDisabled\",\n \"supportOrdering\": false,\n \"autoDeleteOnIdle\": \"P428DT3H11M2S\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "425" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3184e646-4933-4976-bc11-fac94a6cfee3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1146" ], + "x-ms-correlation-request-id": [ "d0a10e9d-144c-4b77-8690-961fc6e6a3ab" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082646Z:d0a10e9d-144c-4b77-8690-961fc6e6a3ab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "930" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/topics/topicToUpdate\",\"name\":\"topicToUpdate\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":1024,\"defaultMessageTimeToLive\":\"P7D\",\"maxSizeInMegabytes\":2048,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT3M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"SendDisabled\",\"supportOrdering\":false,\"autoDeleteOnIdle\":\"P428DT3H11M2S\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "371" ], + "x-ms-client-request-id": [ "8ce4eeae-76fb-41f4-9b23-47fe3fa04e64" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f8601dd3-6126-4be6-8abe-0f2bd6ba0f83_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], + "x-ms-correlation-request-id": [ "8e827f8d-3488-4894-bbab-f1bfb18e08ee" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082647Z:8e827f8d-3488-4894-bbab-f1bfb18e08ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "958" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"createdAt\":\"2022-09-27T07:59:40.273283Z\",\"updatedAt\":\"2022-09-27T07:59:40.273283Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "372" ], + "x-ms-client-request-id": [ "98570a1d-7461-4190-a331-867615f992ad" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d3905c83-835d-4efd-8eee-314772059854_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], + "x-ms-correlation-request-id": [ "e020c658-4fa6-4118-9313-2df5c0942450" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082648Z:e020c658-4fa6-4118-9313-2df5c0942450" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "958" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675199DT2H48M5.4775807S\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675199DT2H48M5.4775807S\",\"enablePartitioning\":false,\"enableExpress\":true,\"createdAt\":\"2022-09-27T07:59:40.273283Z\",\"updatedAt\":\"2022-09-27T07:59:40.273283Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 256,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": false\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "422" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b5c788a4-07f1-4a1f-b9b9-35d78a74c1f3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1145" ], + "x-ms-correlation-request-id": [ "d5fafe3e-7b3b-4aa8-ad98-b6584e9deb0c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082649Z:d5fafe3e-7b3b-4aa8-ad98-b6584e9deb0c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "913" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675197D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "374" ], + "x-ms-client-request-id": [ "e4407c5b-0504-4d73-9654-36040d462edc" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fa1543e5-9117-42b2-9b32-62f23bbbe9fc_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], + "x-ms-correlation-request-id": [ "11e697c6-70a6-48c8-8bc1-30bd5a0edd30" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082650Z:11e697c6-70a6-48c8-8bc1-30bd5a0edd30" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "928" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675197D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":false,\"createdAt\":\"2022-09-27T07:59:40.273283Z\",\"updatedAt\":\"2022-09-27T08:26:49.6549784Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"defaultMessageTimeToLive\": \"P10675197D\",\n \"maxSizeInMegabytes\": 1024,\n \"maxMessageSizeInKilobytes\": 256,\n \"requiresDuplicateDetection\": false,\n \"duplicateDetectionHistoryTimeWindow\": \"PT10M\",\n \"enableBatchedOperations\": true,\n \"status\": \"Active\",\n \"supportOrdering\": true,\n \"autoDeleteOnIdle\": \"P10675197D\",\n \"enablePartitioning\": false,\n \"enableExpress\": true\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "421" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d0014ce4-1610-49d7-8038-b4f0ae2c3ee3_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1144" ], + "x-ms-correlation-request-id": [ "a5a43481-3d85-4a83-af26-5e17525fdf21" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082651Z:a5a43481-3d85-4a83-af26-5e17525fdf21" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "912" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675197D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":true,\"createdAt\":\"0001-01-01T00:00:00Z\",\"updatedAt\":\"0001-01-01T00:00:00Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + }, + "Set-AzServiceBusTopic+[NoContext]+SetViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "376" ], + "x-ms-client-request-id": [ "791de456-3b98-4e4f-9e15-e448a03a5c86" ], + "CommandName": [ "Get-AzServiceBusTopic" ], + "FullCommandName": [ "Get-AzServiceBusTopic_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d55a5802-972b-41be-b266-fdf65c03312c_M3CH3_M3CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], + "x-ms-correlation-request-id": [ "6fee8a73-43c9-4b41-b319-47ae7b360422" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082652Z:6fee8a73-43c9-4b41-b319-47ae7b360422" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:26:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "927" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamereiw5s/topics/topic1\",\"name\":\"topic1\",\"type\":\"Microsoft.ServiceBus/Namespaces/Topics\",\"location\":\"North Europe\",\"properties\":{\"maxMessageSizeInKilobytes\":256,\"defaultMessageTimeToLive\":\"P10675197D\",\"maxSizeInMegabytes\":1024,\"requiresDuplicateDetection\":false,\"duplicateDetectionHistoryTimeWindow\":\"PT10M\",\"enableBatchedOperations\":true,\"sizeInBytes\":0,\"status\":\"Active\",\"supportOrdering\":true,\"autoDeleteOnIdle\":\"P10675197D\",\"enablePartitioning\":false,\"enableExpress\":true,\"createdAt\":\"2022-09-27T07:59:40.273283Z\",\"updatedAt\":\"2022-09-27T08:26:51.6394581Z\",\"accessedAt\":\"0001-01-01T00:00:00Z\",\"subscriptionCount\":0,\"countDetails\":{\"activeMessageCount\":0,\"deadLetterMessageCount\":0,\"scheduledMessageCount\":0,\"transferMessageCount\":0,\"transferDeadLetterMessageCount\":0}}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Tests.ps1 new file mode 100644 index 000000000000..a67914192714 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Set-AzServiceBusTopic.Tests.ps1 @@ -0,0 +1,117 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Set-AzServiceBusTopic')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzServiceBusTopic.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +function AssertTopicUpdates{ + param([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic]$expectedTopic,[Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.ISbTopic]$actualTopic) + $expectedTopic.Name | Should -Be $actualTopic.Name + $expectedTopic.ResourceGroupName | Should -Be $actualTopic.ResourceGroupName + $expectedTopic.MaxSizeInMegabytes | Should -Be $actualTopic.MaxSizeInMegabytes + $expectedTopic.RequiresDuplicateDetection | Should -Be $actualTopic.RequiresDuplicateDetection + $expectedTopic.EnableBatchedOperations | Should -Be $actualTopic.EnableBatchedOperations + $expectedTopic.MaxMessageSizeInKilobytes | Should -Be $actualTopic.MaxMessageSizeInKilobytes + $expectedTopic.EnablePartitioning | Should -Be $actualTopic.EnablePartitioning + $expectedTopic.EnableExpress | Should -Be $actualTopic.EnableExpress + $expectedTopic.SupportOrdering | Should -Be $actualTopic.SupportOrdering + + if ($expectedTopic.DefaultMessageTimeToLive -gt (New-TimeSpan -Days 10675197)){ + $actualTopic.DefaultMessageTimeToLive | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualTopic.DefaultMessageTimeToLive | Should -Be $expectedTopic.DefaultMessageTimeToLive + } + + if ($expectedTopic.DuplicateDetectionHistoryTimeWindow -gt (New-TimeSpan -Days 10675197)){ + $actualTopic.DuplicateDetectionHistoryTimeWindow | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualTopic.DuplicateDetectionHistoryTimeWindow | Should -Be $expectedTopic.DuplicateDetectionHistoryTimeWindow + } + + if ($expectedTopic.AutoDeleteOnIdle -gt (New-TimeSpan -Days 10675197)){ + $actualTopic.AutoDeleteOnIdle | Should -BeGreaterOrEqual (New-TimeSpan -Days 10675197) + } + else{ + $actualTopic.AutoDeleteOnIdle | Should -Be $expectedTopic.AutoDeleteOnIdle + } +} + +Describe 'Set-AzServiceBusTopic' { + $currentTopic = New-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToUpdate + + It 'SetExpanded' { + $updatedTopic = Set-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToUpdate -DefaultMessageTimeToLive (New-TimeSpan -Days 7) + $currentTopic.DefaultMessageTimeToLive = (New-TimeSpan -Days 7) + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToUpdate -EnableBatchedOperations:$false + $currentTopic.EnableBatchedOperations = $false + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToUpdate -EnableBatchedOperations + $currentTopic.EnableBatchedOperations = $true + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + } + + It 'SetViaIdentityExpanded' { + $currentTopic = Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name topicToUpdate + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -SupportOrdering + $currentTopic.SupportOrdering = $true + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -SupportOrdering:$false + $currentTopic.SupportOrdering = $false + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -MaxSizeInMegabytes 2048 + $currentTopic.MaxSizeInMegabytes = 2048 + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -AutoDeleteOnIdle (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 2) + $currentTopic.AutoDeleteOnIdle = (New-TimeSpan -Days 428 -Hours 3 -Minutes 11 -Seconds 2) + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -Status SendDisabled + $currentTopic.Status = "SendDisabled" + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -DuplicateDetectionHistoryTimeWindow (New-TimeSpan -Minutes 3) + $currentTopic.DuplicateDetectionHistoryTimeWindow = (New-TimeSpan -Minutes 3) + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $currentTopic = Get-AzServiceBusTopic -ResourceGroupName $env.resourceGroup -NamespaceName $env.standardNamespace -Name topic1 + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -EnableExpress:$false + $currentTopic.EnableExpress = $false + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + $updatedTopic = Set-AzServiceBusTopic -InputObject $currentTopic -EnableExpress + $currentTopic.EnableExpress = $true + AssertTopicUpdates $currentTopic $updatedTopic + $currentTopic = $updatedTopic + + { Set-AzServiceBusTopic -InputObject $currentTopic } | Should -Throw 'Please specify the property you want to update on the -InputObject' + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Recording.json new file mode 100644 index 000000000000..e5bfa1ce0af7 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Recording.json @@ -0,0 +1,1082 @@ +{ + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"targetNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\n \"postMigrationName\": \"postMigrationfsa0ky\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "253" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "5f7e536c-2ea2-4b04-ad40-971229ae68eb_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1143" ], + "x-ms-correlation-request-id": [ "5daa58e8-876c-4564-81e0-e0a57db155d8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082714Z:5daa58e8-876c-4564-81e0-e0a57db155d8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:27:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "378" ], + "x-ms-client-request-id": [ "408da1be-f1e5-44d9-bc75-d4cb4c2cdae7" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f970d220-3156-42ad-a62d-d58c284f2d62_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], + "x-ms-correlation-request-id": [ "9f82568e-8658-452c-b31c-80b577933211" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082745Z:9f82568e-8658-452c-b31c-80b577933211" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:27:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "379" ], + "x-ms-client-request-id": [ "408da1be-f1e5-44d9-bc75-d4cb4c2cdae7" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2660473b-9bcc-45bd-acb2-efb7b02758d7_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], + "x-ms-correlation-request-id": [ "bbfb7a2a-0f9c-4daa-b17c-1dd97d015503" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082815Z:bbfb7a2a-0f9c-4daa-b17c-1dd97d015503" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:28:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "380" ], + "x-ms-client-request-id": [ "408da1be-f1e5-44d9-bc75-d4cb4c2cdae7" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c4e7b63e-43c7-4a19-8af3-7622f0bb4187_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], + "x-ms-correlation-request-id": [ "bab8d34d-672c-441e-b3fc-84e83350c5fa" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082846Z:bab8d34d-672c-441e-b3fc-84e83350c5fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:28:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "381" ], + "x-ms-client-request-id": [ "408da1be-f1e5-44d9-bc75-d4cb4c2cdae7" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fdd5879f-82a4-4449-bc73-efb256674794_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "002ce1b5-576a-4313-8c0f-89347110e285" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082847Z:002ce1b5-576a-4313-8c0f-89347110e285" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:28:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "382" ], + "x-ms-client-request-id": [ "d96b82b0-1227-48fa-bae0-7d7c2709d216" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "11c5ccc1-6ae2-473b-95eb-f9fe4f2fc2b6_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], + "x-ms-correlation-request-id": [ "6b24cb66-44a8-466d-b8c8-7d33ac26895b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082849Z:6b24cb66-44a8-466d-b8c8-7d33ac26895b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:28:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default/revert?api-version=2022-01-01-preview+7": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default/revert?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "383" ], + "x-ms-client-request-id": [ "8b5abcdd-9897-472b-aedf-233885486f59" ], + "CommandName": [ "Stop-AzServiceBusMigration" ], + "FullCommandName": [ "Stop-AzServiceBusMigration_Revert" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f478b03d-ef09-45a1-8781-a015a791a7ae_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "54833a1f-f384-4575-9a3b-9e7a0348c994" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082900Z:54833a1f-f384-4575-9a3b-9e7a0348c994" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:00 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "384" ], + "x-ms-client-request-id": [ "61277300-6dcf-4c78-954e-118bf7dbb3f2" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e72b75d6-b264-41d5-b1be-2958b7aa802f_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], + "x-ms-correlation-request-id": [ "aa96ab02-97ad-4613-b751-f722808852d1" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082901Z:aa96ab02-97ad-4613-b751-f722808852d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "385" ], + "x-ms-client-request-id": [ "bf178aaf-889e-4a17-b0c8-b9c33a3b1a7b" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "bc84c0d9-65f9-4d54-aa58-396ad0a06222_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], + "x-ms-correlation-request-id": [ "f30c9224-1af1-41a3-819c-a7b96a72eae5" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082912Z:f30c9224-1af1-41a3-819c-a7b96a72eae5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "386" ], + "x-ms-client-request-id": [ "6efd96db-a988-45ee-b057-8d372dc48fb9" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2645a7f8-c4ab-4d87-a222-d8a93243716e_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], + "x-ms-correlation-request-id": [ "df48d3a1-cf10-47d9-8ff4-fd9aa59c0d93" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082923Z:df48d3a1-cf10-47d9-8ff4-fd9aa59c0d93" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "387" ], + "x-ms-client-request-id": [ "bf76335d-5eb0-4307-9fda-1b51f8e391a7" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1c463136-f166-4b08-b760-5382f4bc21c2_M8SN1_M8SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], + "x-ms-correlation-request-id": [ "dc178458-838b-47d5-8c52-8138d44b828b" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082933Z:dc178458-838b-47d5-8c52-8138d44b828b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "388" ], + "x-ms-client-request-id": [ "b67754c1-b1b8-4dff-86ba-40eae25827c6" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a1eacdb6-f2c2-4024-b5d1-70d0b2c060bc_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], + "x-ms-correlation-request-id": [ "20e56a9d-2b80-40e1-a89f-e50888fe2455" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082944Z:20e56a9d-2b80-40e1-a89f-e50888fe2455" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "389" ], + "x-ms-client-request-id": [ "eaea34f0-63f8-4db6-a888-21bd489b44f4" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "06e7188b-e87a-43ca-8aa1-933389ee0445_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], + "x-ms-correlation-request-id": [ "7b912337-8ec5-4584-8747-06d4797ed2ff" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T082955Z:7b912337-8ec5-4584-8747-06d4797ed2ff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:29:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "390" ], + "x-ms-client-request-id": [ "140ce8b8-61a6-45bb-aaf4-da53e1b8101f" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "2198a6e3-0054-4fae-aa68-7b7e1a0470ee_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "00f9ccb8-96d0-42d2-a49c-0594dd18ed9f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083006Z:00f9ccb8-96d0-42d2-a49c-0594dd18ed9f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "391" ], + "x-ms-client-request-id": [ "7dd481e6-4ed2-49cf-9132-fd734d3a90e9" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "18d582ac-7c33-4052-b77c-9a958086f774_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "3a093c94-ae2c-4ff0-9ea6-05a24c33675f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083017Z:3a093c94-ae2c-4ff0-9ea6-05a24c33675f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "576" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Reverting\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "392" ], + "x-ms-client-request-id": [ "acc57ec6-fe76-4f8b-8c2e-7599d0114a2a" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6e236f2a-7971-47d9-b3d1-c720e0e5d0fe_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "11341492-e344-4447-a79e-ed873a5f4710" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083028Z:11341492-e344-4447-a79e-ed873a5f4710" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "419" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "393" ], + "x-ms-client-request-id": [ "1b8d7028-034d-4231-bc28-1ab16fb51224" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "4a606e34-2e3a-46e0-9490-b724956fc34d_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "x-ms-correlation-request-id": [ "d9d1c0bc-3142-4402-b21d-1f352bae1e62" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083038Z:d9d1c0bc-3142-4402-b21d-1f352bae1e62" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "420" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+18": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "394" ], + "x-ms-client-request-id": [ "09dbe581-a5cc-4cf8-9477-b8634c7b893a" ], + "CommandName": [ "Remove-AzServiceBusMigration" ], + "FullCommandName": [ "Remove-AzServiceBusMigration_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 400, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "cd9edab1-e563-47cb-a7fb-60fa4f75124c_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "1ed88cab-808a-4cc2-928d-334933a53bc3" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083049Z:1ed88cab-808a-4cc2-928d-334933a53bc3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "150" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"message\":\"Cannot delete as Alias and Primary Namespace are same. CorrelationId: 1ed88cab-808a-4cc2-928d-334933a53bc3\",\"code\":\"BadRequest\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+19": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": "{\n \"properties\": {\n \"targetNamespace\": \"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\n \"postMigrationName\": \"postMigrationfsa0ky\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "253" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c87cfe8c-fa07-446e-8a2c-e331f0c5296d_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1142" ], + "x-ms-correlation-request-id": [ "1edbeb7f-bcbb-4dd9-ab23-65f05cf61a6f" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083057Z:1edbeb7f-bcbb-4dd9-ab23-65f05cf61a6f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:30:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "396" ], + "x-ms-client-request-id": [ "6227e5d5-d306-4e59-923e-3cb1538723ec" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d6930b61-a9b1-48b4-bf7b-23ea2d3a8607_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "b3087a8d-4682-4e58-9070-5d8a9de02ee9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083128Z:b3087a8d-4682-4e58-9070-5d8a9de02ee9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:31:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "397" ], + "x-ms-client-request-id": [ "6227e5d5-d306-4e59-923e-3cb1538723ec" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c4fbf1c9-eb2b-454f-9a60-c953e23a5da7_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "16ce1296-e234-4e68-a828-7bc8a22b40f8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083159Z:16ce1296-e234-4e68-a828-7bc8a22b40f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:31:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "577" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Accepted\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"migrationState\":\"Initiating\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "398" ], + "x-ms-client-request-id": [ "6227e5d5-d306-4e59-923e-3cb1538723ec" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8d2390d6-9e92-4e1c-a7af-a05dc1bc7f22_M1SN1_M1SN1" ], + "Server-SB": [ "Service-Bus-Resource-Provider/SN1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "Server": [ "Service-Bus-Resource-Provider/SN1", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "cce45024-e623-4816-88e9-3ad88dc8d3e8" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083231Z:cce45024-e623-4816-88e9-3ad88dc8d3e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:32:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "399" ], + "x-ms-client-request-id": [ "6227e5d5-d306-4e59-923e-3cb1538723ec" ], + "CommandName": [ "Start-AzServiceBusMigration" ], + "FullCommandName": [ "Start-AzServiceBusMigration_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d8f7ba18-a584-411d-9732-272d7befca03_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "b505ba3a-b8c7-468a-a175-a7e84fdc9f24" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083233Z:b505ba3a-b8c7-468a-a175-a7e84fdc9f24" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:32:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "400" ], + "x-ms-client-request-id": [ "f07fb8e2-7dd5-4dd1-ad5c-bea1415f963d" ], + "CommandName": [ "Get-AzServiceBusMigration" ], + "FullCommandName": [ "Get-AzServiceBusMigration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "da83f666-e3e2-4941-86ae-a7302b51e4ed_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "x-ms-correlation-request-id": [ "ced66758-def6-4d5a-9da7-696e3bb4a77e" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083234Z:ced66758-def6-4d5a-9da7-696e3bb4a77e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "612" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/$default\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/migrationconfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetNamespace\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz\",\"postMigrationName\":\"postMigrationfsa0ky\",\"pendingReplicationOperationsCount\":0,\"migrationState\":\"Active\"}}", + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default/upgrade?api-version=2022-01-01-preview+25": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np/migrationConfigurations/%24default/upgrade?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "401" ], + "x-ms-client-request-id": [ "52d49dc8-c54d-44f2-a7fe-546e461660c9" ], + "CommandName": [ "Complete-AzServiceBusMigration" ], + "FullCommandName": [ "Complete-AzServiceBusMigration_Complete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e32d95dc-15d4-4541-83fc-e3bf74272db7_M2CH3_M2CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "a01db477-d696-4e2f-a15c-5078bc6fe86c" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083245Z:a01db477-d696-4e2f-a15c-5078bc6fe86c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:32:45 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Start-AzServiceBusMigration+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz/disasterRecoveryConfigs/primaryNSdh58np?api-version=2022-01-01-preview+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz/disasterRecoveryConfigs/primaryNSdh58np?api-version=2022-01-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "402" ], + "x-ms-client-request-id": [ "6b256177-bbb3-4a26-9429-cc65bd8edc53" ], + "CommandName": [ "Get-AzServiceBusGeoDRConfiguration" ], + "FullCommandName": [ "Get-AzServiceBusGeoDRConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceBus/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e6f49c63-2111-4119-aeaf-df2cd88b9053_M11CH3_M11CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "ba538867-6299-47ea-8dbe-394925564c00" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083647Z:ba538867-6299-47ea-8dbe-394925564c00" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:36:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "422" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz/disasterRecoveryConfigs/primaryNSdh58np\",\"name\":\"primaryNSdh58np\",\"type\":\"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs\",\"properties\":{\"provisioningState\":\"Succeeded\",\"partnerNamespace\":\"\",\"role\":\"PrimaryNotReplicating\",\"type\":\"MetadataReplication\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Tests.ps1 new file mode 100644 index 000000000000..d66ad0bbbc43 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Start-AzServiceBusMigration.Tests.ps1 @@ -0,0 +1,61 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Start-AzServiceBusMigration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Start-AzServiceBusMigration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Start-AzServiceBusMigration' { + It 'CreateExpanded' { + $migrationConfig = Start-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace -PostMigrationName $env.postMigrationName -TargetNamespace $env.migrationSecondaryNamespaceResourceId + $migrationConfig.Name | Should -Be $env.migrationPrimaryNamespace + $migrationConfig.PostMigrationName | Should -Be $env.postMigrationName + $migrationConfig.TargetNamespace | Should -Be $env.migrationSecondaryNamespaceResourceId + + do { + $migrationConfig = Get-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace + Start-Sleep 10 + } while($migrationConfig.ProvisioningState -ne 'Succeeded') + + Stop-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace + + do { + $migrationConfig = Get-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace + Start-Sleep 10 + } while($migrationConfig.ProvisioningState -ne 'Succeeded') + + $migrationConfig.TargetNamespace | Should -Be "" + + { Remove-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace } | Should -Throw + + $migrationConfig = Start-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace -PostMigrationName $env.postMigrationName -TargetNamespace $env.migrationSecondaryNamespaceResourceId + $migrationConfig.Name | Should -Be $env.migrationPrimaryNamespace + $migrationConfig.PostMigrationName | Should -Be $env.postMigrationName + $migrationConfig.TargetNamespace | Should -Be $env.migrationSecondaryNamespaceResourceId + + do { + $migrationConfig = Get-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace + Start-Sleep 10 + } while($migrationConfig.ProvisioningState -ne 'Succeeded') + + Complete-AzServiceBusMigration -ResourceGroupName $env.resourceGroup -NamespaceName $env.migrationPrimaryNamespace + + Start-Sleep 240 + + $drConfig = Get-AzServiceBusGeoDRConfiguration -ResourceGroupName $env.resourceGroup -Name $env.migrationPrimaryNamespace -NamespaceName $env.migrationSecondaryNamespace + $drConfig.Name | Should -Be $env.migrationPrimaryNamespace + $drConfig.ResourceGroupName | Should -Be $env.resourceGroup + $drConfig.PartnerNamespace | Should -Be "" + $drConfig.Role | Should -Be "PrimaryNotReplicating" + + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Stop-AzServiceBusMigration.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Stop-AzServiceBusMigration.Tests.ps1 new file mode 100644 index 000000000000..7865c93f7283 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Stop-AzServiceBusMigration.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Stop-AzServiceBusMigration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Stop-AzServiceBusMigration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Stop-AzServiceBusMigration' { + It 'Revert' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'RevertViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusDisasterRecoveryConfigNameAvailability.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusDisasterRecoveryConfigNameAvailability.Tests.ps1 new file mode 100644 index 000000000000..9d312c785fba --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusDisasterRecoveryConfigNameAvailability.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Test-AzServiceBusDisasterRecoveryConfigNameAvailability')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Test-AzServiceBusDisasterRecoveryConfigNameAvailability.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Test-AzServiceBusDisasterRecoveryConfigNameAvailability' { + It 'CheckExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Check' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CheckViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CheckViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Recording.json b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Recording.json new file mode 100644 index 000000000000..b5a0de832405 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Recording.json @@ -0,0 +1,76 @@ +{ + "Test-AzServiceBusName+[NoContext]+NamespaceAvailability+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2022-01-01-preview", + "Content": "{\n \"name\": \"namespaceNamec1leiv\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "35" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "edd01eea-712e-45cb-a0a9-61a6df32e470_M11CH3_M11CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "3efdb806-75f3-4bc5-bd02-36fa67185856" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083732Z:3efdb806-75f3-4bc5-bd02-36fa67185856" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:37:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"nameAvailable\":false,\"reason\":\"NameInUse\",\"message\":\"The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions.\"}", + "isContentBase64": false + } + }, + "Test-AzServiceBusName+[NoContext]+AliasAvailability+$POST+https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/disasterRecoveryConfigs/CheckNameAvailability?api-version=2022-01-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv/disasterRecoveryConfigs/CheckNameAvailability?api-version=2022-01-01-preview", + "Content": "{\n \"name\": \"alias1w402p\"\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "27" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "93242681-2e34-4f2e-9d0a-a0199f7e6513_M11CH3_M11CH3" ], + "Server-SB": [ "Service-Bus-Resource-Provider/CH3" ], + "Server": [ "Service-Bus-Resource-Provider/CH3", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "9ceab8b9-013c-46f8-a7fc-d352c151a2e9" ], + "x-ms-routing-request-id": [ "KOREACENTRAL:20220927T083733Z:9ceab8b9-013c-46f8-a7fc-d352c151a2e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Sep 2022 08:37:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "38" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"nameAvailable\":true,\"reason\":\"None\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Tests.ps1 new file mode 100644 index 000000000000..00fb3a446a79 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusName.Tests.ps1 @@ -0,0 +1,27 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Test-AzServiceBusName')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Test-AzServiceBusName.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Test-AzServiceBusName' { + It 'NamespaceAvailability' { + $checkName = Test-AzServiceBusName -NamespaceName $env.namespace + $checkName.NameAvailable | Should -Be $false + } + + It 'AliasAvailability' { + $checkName = Test-AzServiceBusName -NamespaceName $env.namespace -ResourceGroupName $env.resourceGroup -AliasName $env.alias + $checkName.NameAvailable | Should -Be $true + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusNamespaceNameAvailability.Tests.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusNamespaceNameAvailability.Tests.ps1 new file mode 100644 index 000000000000..cf8d9d14570e --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/Test-AzServiceBusNamespaceNameAvailability.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Test-AzServiceBusNamespaceNameAvailability')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Test-AzServiceBusNamespaceNameAvailability.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Test-AzServiceBusNamespaceNameAvailability' { + It 'CheckExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Check' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CheckViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CheckViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryParameter.json b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryParameter.json new file mode 100644 index 000000000000..6d07b352ba61 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryParameter.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "primarynamespace_name": { + "value": "primaryNSf0j2h7" + }, + "secondarynamespace_name": { + "value": "secondaryNStem26v" + }, + "migrationPrimaryNamespace": { + "value": "primaryNSdh58np" + }, + "migrationSecondaryNamespace": { + "value": "secondaryNShbi0fz" + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryTemplate.json b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryTemplate.json new file mode 100644 index 000000000000..2bb59fad4bed --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/DisasterRecoveryTemplate.json @@ -0,0 +1,90 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "primarynamespace_name": { + "defaultValue": "AutomatedPSTesting", + "type": "String" + }, + "secondarynamespace_name": { + "defaultValue": "testnamespace", + "type": "String" + }, + "migrationPrimaryNamespace": { + "defaultValue": "testnamespace", + "type": "String" + }, + "migrationSecondaryNamespace": { + "defaultValue": "testnamespace", + "type": "String" + } + }, + "variables": { + }, + "resources": [ + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('primarynamespace_name')]", + "location": "East US", + "sku": { + "name": "Premium", + "tier": "Premium" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + }, + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('secondarynamespace_name')]", + "location": "West US", + "sku": { + "name": "Premium", + "tier": "Premium" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + }, + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('migrationPrimaryNamespace')]", + "location": "East US", + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + }, + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('migrationSecondaryNamespace')]", + "location": "West US", + "sku": { + "name": "Premium", + "tier": "Premium" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + } + ] +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/parameter.json b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/parameter.json new file mode 100644 index 000000000000..436ead7bd2d3 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/parameter.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "namespace_name": { + "value": "namespaceNamec1leiv" + }, + "standard_namespace_name": { + "value": "namespaceNamereiw5s" + }, + "namespaceResourceId": { + "value": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv" + }, + "peName1": { + "value": "pe1pfd7tg" + }, + "peName2": { + "value": "pe2o9yp1q" + } + } +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/pre-created-resources/parameter.json b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/pre-created-resources/parameter.json new file mode 100644 index 000000000000..d6ff31869251 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/pre-created-resources/parameter.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "virtualNetworkId": { + "value": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default" + }, + "virtualNetworkId2": { + "value": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2" + }, + "virtualNetworkId3": { + "value": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3" + } + } +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/template.json b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/template.json new file mode 100644 index 000000000000..589ccfa20476 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/deployment-template/template.json @@ -0,0 +1,301 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "namespace_name": { + "defaultValue": "testSBARMTemplate", + "type": "String" + }, + "standard_namespace_name": { + "defaultValue": "testSBARMTemplate", + "type": "String" + }, + "namespaceResourceId": { + "defaultValue": "/", + "type": "String" + }, + "peName1": { + "defaultValue": "/", + "type": "String" + }, + "peName2": { + "defaultValue": "/", + "type": "String" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('namespace_name')]", + "location": "northeurope", + "sku": { + "name": "Premium", + "tier": "Premium" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + }, + { + "type": "Microsoft.ServiceBus/namespaces", + "apiVersion": "2022-01-01-preview", + "name": "[parameters('standard_namespace_name')]", + "location": "northeurope", + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "properties": { + "minimumTlsVersion": "1.2", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": false, + "zoneRedundant": false + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/AuthorizationRules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/namespaceAuthRule1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/AuthorizationRules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/namespaceAuthRule2')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/AuthorizationRules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/RootManageSharedAccessKey')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Listen", + "Manage", + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/networkRuleSets", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/default')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "publicNetworkAccess": "Enabled", + "defaultAction": "Allow", + "virtualNetworkRules": [], + "ipRules": [] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/queues", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/queue1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/topics", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/topic1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/queues/authorizationrules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/queue1/queueAuthRule1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/queues', parameters('namespace_name'), 'queue1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/queues/authorizationrules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/queue1/queueAuthRule2')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/queues', parameters('namespace_name'), 'queue1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/topics/authorizationrules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/topic1/topicAuthRule1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/topics', parameters('namespace_name'), 'topic1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Manage", + "Listen", + "Send" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/topics/authorizationrules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/topic1/topicAuthRule2')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/topics', parameters('namespace_name'), 'topic1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "rights": [ + "Listen" + ] + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/topics/subscriptions", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/topic1/subscription1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/topics', parameters('namespace_name'), 'topic1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + } + }, + { + "type": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules", + "apiVersion": "2022-01-01-preview", + "name": "[concat(parameters('namespace_name'), '/topic1/subscription1/sqlRule1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces/topics/subscriptions', parameters('namespace_name'), 'topic1', 'subscription1')]", + "[resourceId('Microsoft.ServiceBus/namespaces/topics', parameters('namespace_name'), 'topic1')]", + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "action": {}, + "filterType": "SqlFilter", + "sqlFilter": { + "sqlExpression": "1=2", + "compatibilityLevel": 20 + } + } + }, + { + "type": "Microsoft.Network/privateEndpoints", + "apiVersion": "2020-11-01", + "name": "[parameters('peName1')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "name": "connection1", + "properties": { + "privateLinkServiceId": "[parameters('namespaceResourceId')]", + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Pending" + }, + "requestMessage": "Hello" + } + } + ], + "subnet": { + "id": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default" + } + } + }, + { + "type": "Microsoft.Network/privateEndpoints", + "apiVersion": "2020-11-01", + "name": "[parameters('peName2')]", + "location": "northeurope", + "dependsOn": [ + "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespace_name'))]" + ], + "properties": { + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "name": "connection2", + "properties": { + "privateLinkServiceId": "[parameters('namespaceResourceId')]", + "groupIds": [ + "namespace" + ], + "privateLinkServiceConnectionState": { + "status": "Pending" + }, + "requestMessage": "Hello" + } + } + ], + "subnet": { + "id": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default" + } + } + } + ] +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/env.json b/src/ServiceBus/ServiceBus.Autorest/test/env.json new file mode 100644 index 000000000000..a6d6c2092e66 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/env.json @@ -0,0 +1,29 @@ +{ + "secondaryNamespaceResourceId": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNStem26v", + "topicPrimaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "pe2": "pe2o9yp1q", + "namespaceSecondaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "namespacePrimaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "SubscriptionId": "326100e2-f69d-4268-8503-075374f62b6e", + "postMigrationName": "postMigrationfsa0ky", + "subnetId2": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default2", + "migrationPrimaryNamespaceResourceId": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSdh58np", + "namespaceResourceId": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/namespaceNamec1leiv", + "queuePrimaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "migrationSecondaryNamespaceResourceId": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/secondaryNShbi0fz", + "subnetId3": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default3", + "subnetId1": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/AutomatedPowershellTesting/providers/Microsoft.Network/virtualNetworks/test-vn-northeurope/subnets/default", + "alias": "alias1w402p", + "pe1": "pe1pfd7tg", + "topicSecondaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "standardNamespace": "namespaceNamereiw5s", + "resourceGroup": "resourceGroupAutorest8pghli", + "secondaryNamespace": "secondaryNStem26v", + "queueSecondaryKey": "g4IAuMa6GaHOVvUw8FaBI2wy/Az/HUCUQFuFch1jtJY=", + "namespace": "namespaceNamec1leiv", + "primaryNamespace": "primaryNSf0j2h7", + "migrationSecondaryNamespace": "secondaryNShbi0fz", + "migrationPrimaryNamespace": "primaryNSdh58np", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "primaryNamespaceResourceId": "/subscriptions/326100e2-f69d-4268-8503-075374f62b6e/resourceGroups/resourceGroupAutorest8pghli/providers/Microsoft.ServiceBus/namespaces/primaryNSf0j2h7" +} diff --git a/src/ServiceBus/ServiceBus.Autorest/test/loadEnv.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/loadEnv.ps1 new file mode 100644 index 000000000000..5f079e89615e --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/loadEnv.ps1 @@ -0,0 +1,29 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/ServiceBus/ServiceBus.Autorest/test/utils.ps1 b/src/ServiceBus/ServiceBus.Autorest/test/utils.ps1 new file mode 100644 index 000000000000..5278e8c4196c --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/test/utils.ps1 @@ -0,0 +1,120 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +if ($UsePreviousConfigForRecord) { + $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json + $previousEnv.psobject.properties | Foreach-Object { $env[$_.Name] = $_.Value } +} +# Add script method called AddWithCache to $env, when useCache is set true, it will try to get the value from the $env first. +# example: $val = $env.AddWithCache('key', $val, $true) +$env | Add-Member -Type ScriptMethod -Value { param( [string]$key, [object]$val, [bool]$useCache) if ($this.Contains($key) -and $useCache) { return $this[$key] } else { $this[$key] = $val; return $val } } -Name 'AddWithCache' +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $resourceGroup = "resourceGroupAutorest" + (RandomString -allChars $false -len 6) + $namespaceName = "namespaceName" + (RandomString -allChars $false -len 6) + $standardNamespaceName = "namespaceName" + (RandomString -allChars $false -len 6) + $namespaceResourceId = "/subscriptions/" + $env.SubscriptionId + "/resourceGroups/" + $resourceGroup + "/providers/Microsoft.ServiceBus/namespaces/" + $namespaceName + $primaryNamespaceName = "primaryNS" + (RandomString -allChars $false -len 6) + $primaryNamespaceResourceId = "/subscriptions/" + $env.SubscriptionId + "/resourceGroups/" + $resourceGroup + "/providers/Microsoft.ServiceBus/namespaces/" + $primaryNamespaceName + $secondaryNamespaceName = "secondaryNS" + (RandomString -allChars $false -len 6) + $secondaryNamespaceResourceId = "/subscriptions/" + $env.SubscriptionId + "/resourceGroups/" + $resourceGroup + "/providers/Microsoft.ServiceBus/namespaces/" + $secondaryNamespaceName + $migrationPrimaryNamespaceName = "primaryNS" + (RandomString -allChars $false -len 6) + $migrationPrimaryNamespaceResourceId = "/subscriptions/" + $env.SubscriptionId + "/resourceGroups/" + $resourceGroup + "/providers/Microsoft.ServiceBus/namespaces/" + $migrationPrimaryNamespaceName + $migrationSecondaryNamespaceName = "secondaryNS" + (RandomString -allChars $false -len 6) + $migrationSecondaryNamespaceResourceId = "/subscriptions/" + $env.SubscriptionId + "/resourceGroups/" + $resourceGroup + "/providers/Microsoft.ServiceBus/namespaces/" + $migrationSecondaryNamespaceName + $peName1 = "pe1" + (RandomString -allChars $false -len 6) + $peName2 = "pe2" + (RandomString -allChars $false -len 6) + $alias = "alias" + (RandomString -allChars $false -len 6) + $postMigrationName = "postMigration" + (RandomString -allChars $false -len 6) + + $env.Add('resourceGroup', $resourceGroup) + $env.Add('namespace', $namespaceName) + $env.Add('standardNamespace', $standardNamespaceName) + $env.Add('namespaceResourceId', $namespaceResourceId) + $env.Add('primaryNamespace', $primaryNamespaceName) + $env.Add('secondaryNamespace', $secondaryNamespaceName) + $env.Add('primaryNamespaceResourceId', $primaryNamespaceResourceId) + $env.Add('secondaryNamespaceResourceId', $secondaryNamespaceResourceId) + $env.Add('migrationPrimaryNamespace', $migrationPrimaryNamespaceName) + $env.Add('migrationSecondaryNamespace', $migrationSecondaryNamespaceName) + $env.Add('migrationPrimaryNamespaceResourceId', $migrationPrimaryNamespaceResourceId) + $env.Add('migrationSecondaryNamespaceResourceId', $migrationSecondaryNamespaceResourceId) + $env.Add('postMigrationName', $postMigrationName) + $env.Add('pe1', $peName1) + $env.Add('pe2', $peName2) + $env.Add('alias', $alias) + + $namespacePrimaryKey = GenerateSASKey + $namespaceSecondaryKey = GenerateSASKey + $queuePrimaryKey = GenerateSASKey + $queueSecondaryKey = GenerateSASKey + $topicPrimaryKey = GenerateSASKey + $topicSecondaryKey = GenerateSASKey + + $env.Add('namespacePrimaryKey', $namespacePrimaryKey) + $env.Add('namespaceSecondaryKey', $namespaceSecondaryKey) + $env.Add('queuePrimaryKey', $queuePrimaryKey) + $env.Add('queueSecondaryKey', $queueSecondaryKey) + $env.Add('topicPrimaryKey', $topicPrimaryKey) + $env.Add('topicSecondaryKey', $topicSecondaryKey) + + New-AzResourceGroup -Name $resourceGroup -Location eastus + + $serviceBusTemplate = Get-Content .\test\deployment-template\parameter.json | ConvertFrom-Json + $serviceBusTemplate.parameters.namespace_name.value = $namespaceName + $serviceBusTemplate.parameters.standard_namespace_name.value = $standardNamespaceName + $serviceBusTemplate.parameters.namespaceResourceId.value = $namespaceResourceId + $serviceBusTemplate.parameters.peName1.value = $peName1 + $serviceBusTemplate.parameters.peName2.value = $peName2 + Set-Content -Path .\test\deployment-template\parameter.json -Value (ConvertTo-Json $serviceBusTemplate) + $rg = New-AzResourceGroupDeployment -TemplateFile .\test\deployment-template\template.json -TemplateParameterFile .\test\deployment-template\parameter.json -Name serviceBusTemplate -ResourceGroupName $resourceGroup + + $serviceBusTemplate = Get-Content .\test\deployment-template\DisasterRecoveryParameter.json | ConvertFrom-Json + $serviceBusTemplate.parameters.primarynamespace_name.value = $primaryNamespaceName + $serviceBusTemplate.parameters.secondarynamespace_name.value = $secondaryNamespaceName + $serviceBusTemplate.parameters.migrationPrimaryNamespace.value = $migrationPrimaryNamespaceName + $serviceBusTemplate.parameters.migrationSecondaryNamespace.value = $migrationSecondaryNamespaceName + Set-Content -Path .\test\deployment-template\DisasterRecoveryParameter.json -Value (ConvertTo-Json $serviceBusTemplate) + $rg = New-AzResourceGroupDeployment -TemplateFile .\test\deployment-template\DisasterRecoveryTemplate.json -TemplateParameterFile .\test\deployment-template\DisasterRecoveryParameter.json -Name disasterRecoveryTemplate -ResourceGroupName $resourceGroup + + $resourceNames = Get-Content .\test\deployment-template\pre-created-resources\parameter.json | ConvertFrom-Json + $env.Add("subnetId1", $resourceNames.parameters.virtualNetworkId.Value) + $env.Add("subnetId2", $resourceNames.parameters.virtualNetworkId2.Value) + $env.Add("subnetId3", $resourceNames.parameters.virtualNetworkId3.Value) + + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} + +function GenerateSASKey { + [Reflection.Assembly]::LoadWithPartialName("System.Web")| out-null + $URI="myNamespace.servicebus.windows.net/myEventHub" + $Access_Policy_Name="RootManageSharedAccessKey" + $Access_Policy_Key="myPrimaryKey" + #Token expires now+300 + $Expires=([DateTimeOffset]::Now.ToUnixTimeSeconds())+300 + $SignatureString=[System.Web.HttpUtility]::UrlEncode($URI)+ "`n" + [string]$Expires + $HMAC = New-Object System.Security.Cryptography.HMACSHA256 + $HMAC.key = [Text.Encoding]::ASCII.GetBytes($Access_Policy_Key) + $Signature = $HMAC.ComputeHash([Text.Encoding]::ASCII.GetBytes($SignatureString)) + $Signature = [Convert]::ToBase64String($Signature) + $Signature +} + +function cleanupEnv() { + # Clean resources you create for testing + Remove-AzResourceGroup -Name $env.resourceGroup +} + diff --git a/src/ServiceBus/ServiceBus.Autorest/utils/Unprotect-SecureString.ps1 b/src/ServiceBus/ServiceBus.Autorest/utils/Unprotect-SecureString.ps1 new file mode 100644 index 000000000000..cb05b51a6220 --- /dev/null +++ b/src/ServiceBus/ServiceBus.Autorest/utils/Unprotect-SecureString.ps1 @@ -0,0 +1,16 @@ +#This script converts securestring to plaintext + +param( + [Parameter(Mandatory, ValueFromPipeline)] + [System.Security.SecureString] + ${SecureString} +) + +$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) +try { + $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) +} finally { + [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) +} + +return $plaintext \ No newline at end of file diff --git a/tools/StaticAnalysis/Exceptions/Az.ServiceBus/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ServiceBus/BreakingChangeIssues.csv index 5d02be53dcea..739c732c496b 100644 --- a/tools/StaticAnalysis/Exceptions/Az.ServiceBus/BreakingChangeIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.ServiceBus/BreakingChangeIssues.csv @@ -1,4 +1,472 @@ "AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","1030","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer implements SupportsShouldProcess.","Make sure the cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' implements SupportsShouldProcess." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","1020","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'.","Make cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","2000","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Approve-AzServiceBusPrivateEndpointConnection', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","2020","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointPropertiesSet' for cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointPropertiesSet' back to cmdlet 'Approve-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.ApproveAzureServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointResourceIdParameterSet' for cmdlet 'Approve-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointResourceIdParameterSet' back to cmdlet 'Approve-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","1060","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Complete-AzServiceBusMigration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Complete-AzServiceBusMigration' back to 'MigrationConfigurationPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2000","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Complete-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2020","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2000","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Complete-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2020","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2010","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","2010","The cmdlet 'Complete-AzServiceBusMigration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","1050","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Complete-AzServiceBusMigration' has been removed.","Add parameter set 'MigrationConfigurationPropertiesSet' back to cmdlet 'Complete-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'Complete-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'Complete-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","1050","The parameter set 'NamespaceResourceIdParameterSet' for cmdlet 'Complete-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceResourceIdParameterSet' back to cmdlet 'Complete-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","1030","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer implements SupportsShouldProcess.","Make sure the cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' implements SupportsShouldProcess." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","1020","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'.","Make cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","2000","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Deny-AzServiceBusPrivateEndpointConnection', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","2020","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointPropertiesSet' for cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointPropertiesSet' back to cmdlet 'Deny-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RejectAzureServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointResourceIdParameterSet' for cmdlet 'Deny-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointResourceIdParameterSet' back to cmdlet 'Deny-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","1020","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'.","Make cmdlet 'Get-AzServiceBusAuthorizationRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'Get-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Get-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Get-AzServiceBusAuthorizationRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusAuthorizationRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'Get-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'Get-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'Get-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'Get-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","1050","The parameter set 'AliasAuthoRuleSet' for cmdlet 'Get-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'AliasAuthoRuleSet' back to cmdlet 'Get-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1020","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'.","Make cmdlet 'Get-AzServiceBusGeoDRConfiguration' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzServiceBusGeoDRConfiguration' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzServiceBusGeoDRConfiguration' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2020","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNamespaceAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSNamespaceAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Get-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2020","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'Get-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'GeoDRPropertiesSet' back to cmdlet 'Get-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'Get-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'ResourceIdParameterSet' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'ResourceIdParameterSet' back to cmdlet 'Get-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.GetServiceBusGeoDRConfiguration","Get-AzServiceBusGeoDRConfiguration","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2000","The cmdlet 'Get-AzServiceBusKey' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2000","The cmdlet 'Get-AzServiceBusKey' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'Get-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2000","The cmdlet 'Get-AzServiceBusKey' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Get-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2020","The cmdlet 'Get-AzServiceBusKey' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2010","The cmdlet 'Get-AzServiceBusKey' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","2010","The cmdlet 'Get-AzServiceBusKey' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusKey' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'Get-AzServiceBusKey' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'Get-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'Get-AzServiceBusKey' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'Get-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusKey","Get-AzServiceBusKey","0","1050","The parameter set 'AliasAuthoRuleSet' for cmdlet 'Get-AzServiceBusKey' has been removed.","Add parameter set 'AliasAuthoRuleSet' back to cmdlet 'Get-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","1020","The cmdlet 'Get-AzServiceBusMigration' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusMigrationConfigurationAttributes'.","Make cmdlet 'Get-AzServiceBusMigration' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusMigrationConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","1060","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Get-AzServiceBusMigration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzServiceBusMigration' back to 'MigrationConfigurationPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2000","The cmdlet 'Get-AzServiceBusMigration' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Get-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2020","The cmdlet 'Get-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNamespaceAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSNamespaceAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2000","The cmdlet 'Get-AzServiceBusMigration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Get-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2020","The cmdlet 'Get-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2010","The cmdlet 'Get-AzServiceBusMigration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","2010","The cmdlet 'Get-AzServiceBusMigration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","1050","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Get-AzServiceBusMigration' has been removed.","Add parameter set 'MigrationConfigurationPropertiesSet' back to cmdlet 'Get-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'Get-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'Get-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.GetAzureServiceBusMigrationConfiguration","Get-AzServiceBusMigration","0","1050","The parameter set 'ResourceIdParameterSet' for cmdlet 'Get-AzServiceBusMigration' has been removed.","Add parameter set 'ResourceIdParameterSet' back to cmdlet 'Get-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","1020","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes'.","Make cmdlet 'Get-AzServiceBusNetworkRuleSet' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","1060","The parameter set 'NetworkRuleSetPropertiesSet' for cmdlet 'Get-AzServiceBusNetworkRuleSet' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzServiceBusNetworkRuleSet' back to 'NetworkRuleSetPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","2000","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusNetworkRuleSet', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","2000","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Get-AzServiceBusNetworkRuleSet', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","2020","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","2010","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","2010","The cmdlet 'Get-AzServiceBusNetworkRuleSet' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetPropertiesSet' for cmdlet 'Get-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetPropertiesSet' back to cmdlet 'Get-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetNamespacePropertiesSet' for cmdlet 'Get-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetNamespacePropertiesSet' back to cmdlet 'Get-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.GetAzureServiceBusNetworkRuleSet","Get-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetResourceIdParameterSet' for cmdlet 'Get-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetResourceIdParameterSet' back to cmdlet 'Get-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","1030","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer implements SupportsShouldProcess.","Make sure the cmdlet 'Get-AzServiceBusPrivateEndpointConnection' implements SupportsShouldProcess." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","1020","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'.","Make cmdlet 'Get-AzServiceBusPrivateEndpointConnection' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateEndpointConnectionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","1060","The parameter set 'PrivateEndpointPropertiesSet' for cmdlet 'Get-AzServiceBusPrivateEndpointConnection' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzServiceBusPrivateEndpointConnection' back to 'PrivateEndpointPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","2000","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Get-AzServiceBusPrivateEndpointConnection', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","2020","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Get-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointPropertiesSet' for cmdlet 'Get-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointPropertiesSet' back to cmdlet 'Get-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.GetAzureServiceBusPrivateEndpointConnection","Get-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointResourceIdParameterSet' for cmdlet 'Get-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointResourceIdParameterSet' back to cmdlet 'Get-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","1030","The cmdlet 'Get-AzServiceBusPrivateLink' no longer implements SupportsShouldProcess.","Make sure the cmdlet 'Get-AzServiceBusPrivateLink' implements SupportsShouldProcess." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","1020","The cmdlet 'Get-AzServiceBusPrivateLink' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateLinkResourceAttributes'.","Make cmdlet 'Get-AzServiceBusPrivateLink' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusPrivateLinkResourceAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","2020","The cmdlet 'Get-AzServiceBusPrivateLink' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","2010","The cmdlet 'Get-AzServiceBusPrivateLink' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","2010","The cmdlet 'Get-AzServiceBusPrivateLink' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","1050","The parameter set 'PrivateLinkPropertiesSet' for cmdlet 'Get-AzServiceBusPrivateLink' has been removed.","Add parameter set 'PrivateLinkPropertiesSet' back to cmdlet 'Get-AzServiceBusPrivateLink'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateLinks.GetAzureServiceBusPrivateLinks","Get-AzServiceBusPrivateLink","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusPrivateLink' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusPrivateLink'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","1020","The cmdlet 'Get-AzServiceBusQueue' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'.","Make cmdlet 'Get-AzServiceBusQueue' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2010","The cmdlet 'Get-AzServiceBusQueue' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2000","The cmdlet 'Get-AzServiceBusQueue' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2000","The cmdlet 'Get-AzServiceBusQueue' no longer supports the parameter 'MaxCount' and no alias was found for the original parameter name.","Add the parameter 'MaxCount' back to the cmdlet 'Get-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2020","The cmdlet 'Get-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2010","The cmdlet 'Get-AzServiceBusQueue' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","2010","The cmdlet 'Get-AzServiceBusQueue' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.GetAzureRmServiceBusQueue","Get-AzServiceBusQueue","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusQueue' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","1020","The cmdlet 'Get-AzServiceBusRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'.","Make cmdlet 'Get-AzServiceBusRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2010","The cmdlet 'Get-AzServiceBusRule' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2000","The cmdlet 'Get-AzServiceBusRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2000","The cmdlet 'Get-AzServiceBusRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Get-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2000","The cmdlet 'Get-AzServiceBusRule' no longer supports the parameter 'Subscription' and no alias was found for the original parameter name.","Add the parameter 'Subscription' back to the cmdlet 'Get-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2000","The cmdlet 'Get-AzServiceBusRule' no longer supports the parameter 'MaxCount' and no alias was found for the original parameter name.","Add the parameter 'MaxCount' back to the cmdlet 'Get-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2020","The cmdlet 'Get-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2010","The cmdlet 'Get-AzServiceBusRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","2010","The cmdlet 'Get-AzServiceBusRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.GetAzureRmServiceBusRule","Get-AzServiceBusRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","1020","The cmdlet 'Get-AzServiceBusSubscription' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'.","Make cmdlet 'Get-AzServiceBusSubscription' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2010","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2000","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2000","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Get-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2000","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the parameter 'MaxCount' and no alias was found for the original parameter name.","Add the parameter 'MaxCount' back to the cmdlet 'Get-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2020","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2010","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","2010","The cmdlet 'Get-AzServiceBusSubscription' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.GetAzureRmServiceBusSubscription","Get-AzServiceBusSubscription","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusSubscription' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","1020","The cmdlet 'Get-AzServiceBusTopic' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'.","Make cmdlet 'Get-AzServiceBusTopic' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2010","The cmdlet 'Get-AzServiceBusTopic' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2000","The cmdlet 'Get-AzServiceBusTopic' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Get-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2000","The cmdlet 'Get-AzServiceBusTopic' no longer supports the parameter 'MaxCount' and no alias was found for the original parameter name.","Add the parameter 'MaxCount' back to the cmdlet 'Get-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2020","The cmdlet 'Get-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2010","The cmdlet 'Get-AzServiceBusTopic' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","2010","The cmdlet 'Get-AzServiceBusTopic' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.GetAzureRmServiceBusTopic","Get-AzServiceBusTopic","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzServiceBusTopic' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","1020","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'.","Make cmdlet 'New-AzServiceBusAuthorizationRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'New-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'New-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2110","The element type for parameter 'Rights' has been changed from 'System.String' to 'Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights'.","Change the element type for parameter 'Rights' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'New-AzServiceBusAuthorizationRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusAuthorizationRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","1050","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'New-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'NamespaceAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'New-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'New-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","1020","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'.","Make cmdlet 'New-AzServiceBusGeoDRConfiguration' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'InputObject' and no alias was found for the original parameter name.","Add the parameter 'InputObject' back to the cmdlet 'New-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'New-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'New-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2020","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'New-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'GeoDRPropertiesSet' for cmdlet 'New-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'GeoDRPropertiesSet' back to cmdlet 'New-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'New-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'New-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'NamespaceResourceIdParameterSet' for cmdlet 'New-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'NamespaceResourceIdParameterSet' back to cmdlet 'New-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.NewAzureRmEventHubGeoDRConfiguration","New-AzServiceBusGeoDRConfiguration","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2000","The cmdlet 'New-AzServiceBusKey' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2000","The cmdlet 'New-AzServiceBusKey' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'New-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2000","The cmdlet 'New-AzServiceBusKey' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'New-AzServiceBusKey', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2020","The cmdlet 'New-AzServiceBusKey' no longer supports the type 'System.String' for parameter 'RegenerateKey'.","Change the type for parameter 'RegenerateKey' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2020","The cmdlet 'New-AzServiceBusKey' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2010","The cmdlet 'New-AzServiceBusKey' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","2010","The cmdlet 'New-AzServiceBusKey' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusKey' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","1050","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'New-AzServiceBusKey' has been removed.","Add parameter set 'NamespaceAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'New-AzServiceBusKey' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NewAzureServiceBusKey","New-AzServiceBusKey","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'New-AzServiceBusKey' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'New-AzServiceBusKey'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","1020","The cmdlet 'New-AzServiceBusQueue' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'.","Make cmdlet 'New-AzServiceBusQueue' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2010","The cmdlet 'New-AzServiceBusQueue' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2000","The cmdlet 'New-AzServiceBusQueue' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnablePartitioning'.","Change the type for parameter 'EnablePartitioning' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.String' for parameter 'LockDuration'.","Change the type for parameter 'LockDuration' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.String' for parameter 'AutoDeleteOnIdle'.","Change the type for parameter 'AutoDeleteOnIdle' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.String' for parameter 'DefaultMessageTimeToLive'.","Change the type for parameter 'DefaultMessageTimeToLive' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.String' for parameter 'DuplicateDetectionHistoryTimeWindow'.","Change the type for parameter 'DuplicateDetectionHistoryTimeWindow' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'DeadLetteringOnMessageExpiration'.","Change the type for parameter 'DeadLetteringOnMessageExpiration' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnableExpress'.","Change the type for parameter 'EnableExpress' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Int32]' for parameter 'MaxDeliveryCount'.","Change the type for parameter 'MaxDeliveryCount' back to 'System.Nullable`1[System.Int32]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Int64]' for parameter 'MaxSizeInMegabytes'.","Change the type for parameter 'MaxSizeInMegabytes' back to 'System.Nullable`1[System.Int64]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2000","The cmdlet 'New-AzServiceBusQueue' no longer supports the parameter 'MessageCount' and no alias was found for the original parameter name.","Add the parameter 'MessageCount' back to the cmdlet 'New-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'RequiresDuplicateDetection'.","Change the type for parameter 'RequiresDuplicateDetection' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'RequiresSession'.","Change the type for parameter 'RequiresSession' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2000","The cmdlet 'New-AzServiceBusQueue' no longer supports the parameter 'SizeInBytes' and no alias was found for the original parameter name.","Add the parameter 'SizeInBytes' back to the cmdlet 'New-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2020","The cmdlet 'New-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2010","The cmdlet 'New-AzServiceBusQueue' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","2010","The cmdlet 'New-AzServiceBusQueue' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.NewAzureRmServiceBusQueue","New-AzServiceBusQueue","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusQueue' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","1020","The cmdlet 'New-AzServiceBusRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'.","Make cmdlet 'New-AzServiceBusRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2010","The cmdlet 'New-AzServiceBusRule' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2000","The cmdlet 'New-AzServiceBusRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2000","The cmdlet 'New-AzServiceBusRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'New-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2000","The cmdlet 'New-AzServiceBusRule' no longer supports the parameter 'Subscription' and no alias was found for the original parameter name.","Add the parameter 'Subscription' back to the cmdlet 'New-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2000","The cmdlet 'New-AzServiceBusRule' no longer supports the parameter 'RequiresPreprocessing' and no alias was found for the original parameter name.","Add the parameter 'RequiresPreprocessing' back to the cmdlet 'New-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2020","The cmdlet 'New-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2010","The cmdlet 'New-AzServiceBusRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","2010","The cmdlet 'New-AzServiceBusRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.NewAzureRmServiceBusRule","New-AzServiceBusRule","0","1050","The parameter set 'RuleActionPropertiesSet' for cmdlet 'New-AzServiceBusRule' has been removed.","Add parameter set 'RuleActionPropertiesSet' back to cmdlet 'New-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","1020","The cmdlet 'New-AzServiceBusSubscription' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'.","Make cmdlet 'New-AzServiceBusSubscription' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2010","The cmdlet 'New-AzServiceBusSubscription' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2000","The cmdlet 'New-AzServiceBusSubscription' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2000","The cmdlet 'New-AzServiceBusSubscription' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'New-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.String' for parameter 'AutoDeleteOnIdle'.","Change the type for parameter 'AutoDeleteOnIdle' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.String' for parameter 'DefaultMessageTimeToLive'.","Change the type for parameter 'DefaultMessageTimeToLive' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'DeadLetteringOnMessageExpiration'.","Change the type for parameter 'DeadLetteringOnMessageExpiration' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2000","The cmdlet 'New-AzServiceBusSubscription' no longer supports the parameter 'DeadLetteringOnFilterEvaluationExceptions' and no alias was found for the original parameter name.","Add the parameter 'DeadLetteringOnFilterEvaluationExceptions' back to the cmdlet 'New-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnableBatchedOperations'.","Change the type for parameter 'EnableBatchedOperations' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.String' for parameter 'LockDuration'.","Change the type for parameter 'LockDuration' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.Nullable`1[System.Int32]' for parameter 'MaxDeliveryCount'.","Change the type for parameter 'MaxDeliveryCount' back to 'System.Nullable`1[System.Int32]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'RequiresSession'.","Change the type for parameter 'RequiresSession' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2020","The cmdlet 'New-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2010","The cmdlet 'New-AzServiceBusSubscription' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","2010","The cmdlet 'New-AzServiceBusSubscription' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.NewAzureRmServiceBusSubscription","New-AzServiceBusSubscription","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusSubscription' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","1020","The cmdlet 'New-AzServiceBusTopic' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'.","Make cmdlet 'New-AzServiceBusTopic' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2010","The cmdlet 'New-AzServiceBusTopic' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2000","The cmdlet 'New-AzServiceBusTopic' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'New-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnablePartitioning'.","Change the type for parameter 'EnablePartitioning' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.String' for parameter 'AutoDeleteOnIdle'.","Change the type for parameter 'AutoDeleteOnIdle' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.String' for parameter 'DefaultMessageTimeToLive'.","Change the type for parameter 'DefaultMessageTimeToLive' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.String' for parameter 'DuplicateDetectionHistoryTimeWindow'.","Change the type for parameter 'DuplicateDetectionHistoryTimeWindow' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnableBatchedOperations'.","Change the type for parameter 'EnableBatchedOperations' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'EnableExpress'.","Change the type for parameter 'EnableExpress' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Int64]' for parameter 'MaxSizeInMegabytes'.","Change the type for parameter 'MaxSizeInMegabytes' back to 'System.Nullable`1[System.Int64]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'RequiresDuplicateDetection'.","Change the type for parameter 'RequiresDuplicateDetection' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'System.Nullable`1[System.Boolean]' for parameter 'SupportOrdering'.","Change the type for parameter 'SupportOrdering' back to 'System.Nullable`1[System.Boolean]'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2000","The cmdlet 'New-AzServiceBusTopic' no longer supports the parameter 'SizeInBytes' and no alias was found for the original parameter name.","Add the parameter 'SizeInBytes' back to the cmdlet 'New-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2020","The cmdlet 'New-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2010","The cmdlet 'New-AzServiceBusTopic' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","2010","The cmdlet 'New-AzServiceBusTopic' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.NewAzureRmServiceBusTopic","New-AzServiceBusTopic","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzServiceBusTopic' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'Remove-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Remove-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the alias 'AuthRuleObj' for parameter 'InputObject'.","Add the alias 'AuthRuleObj' back to parameter 'InputObject'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the parameter 'Force' and no alias was found for the original parameter name.","Add the parameter 'Force' back to the cmdlet 'Remove-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Remove-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Remove-AzServiceBusAuthorizationRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusAuthorizationRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1050","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'NamespaceAuthorizationRuleSet' back to cmdlet 'Remove-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'Remove-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.RemoveAzureServiceBusAuthorizationRule","Remove-AzServiceBusAuthorizationRule","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'Remove-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'Remove-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2020","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2000","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusGeoDRConfiguration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2020","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","2010","The cmdlet 'Remove-AzServiceBusGeoDRConfiguration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'GeoDRPropertiesSet' back to cmdlet 'Remove-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'GeoDRConfigurationInputObjectSet' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'GeoDRConfigurationInputObjectSet' back to cmdlet 'Remove-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1050","The parameter set 'GeoDRConfigResourceIdParameterSet' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set 'GeoDRConfigResourceIdParameterSet' back to cmdlet 'Remove-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.RemoveServicBusGeoDRConfiguration","Remove-AzServiceBusGeoDRConfiguration","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusGeoDRConfiguration' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusGeoDRConfiguration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1060","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Remove-AzServiceBusMigration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusMigration' back to 'MigrationConfigurationPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1060","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Remove-AzServiceBusMigration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusMigration' back to 'MigrationConfigurationPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2000","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Remove-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2020","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2000","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2000","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2020","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2010","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","2010","The cmdlet 'Remove-AzServiceBusMigration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1050","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Remove-AzServiceBusMigration' has been removed.","Add parameter set 'MigrationConfigurationPropertiesSet' back to cmdlet 'Remove-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'Remove-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'Remove-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1050","The parameter set 'NamespaceResourceIdParameterSet' for cmdlet 'Remove-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceResourceIdParameterSet' back to cmdlet 'Remove-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.RemoveAzureServiceBusMigrationConfiguration","Remove-AzServiceBusMigration","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusMigration' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","2000","The cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusPrivateEndpointConnection', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","2020","The cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","2010","The cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointPropertiesSet' for cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointPropertiesSet' back to cmdlet 'Remove-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.PrivateEndpoints.RemoveAzureServiceBusPrivateEndpointConnection","Remove-AzServiceBusPrivateEndpointConnection","0","1050","The parameter set 'PrivateEndpointResourceIdParameterSet' for cmdlet 'Remove-AzServiceBusPrivateEndpointConnection' has been removed.","Add parameter set 'PrivateEndpointResourceIdParameterSet' back to cmdlet 'Remove-AzServiceBusPrivateEndpointConnection'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1060","The parameter set 'QueuePropertiesSet' for cmdlet 'Remove-AzServiceBusQueue' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusQueue' back to 'QueuePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1060","The parameter set 'QueuePropertiesSet' for cmdlet 'Remove-AzServiceBusQueue' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusQueue' back to 'QueuePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2010","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2000","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2020","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2000","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2000","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2020","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2010","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","2010","The cmdlet 'Remove-AzServiceBusQueue' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1050","The parameter set 'QueuePropertiesSet' for cmdlet 'Remove-AzServiceBusQueue' has been removed.","Add parameter set 'QueuePropertiesSet' back to cmdlet 'Remove-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1050","The parameter set 'QueueInputObjectSet' for cmdlet 'Remove-AzServiceBusQueue' has been removed.","Add parameter set 'QueueInputObjectSet' back to cmdlet 'Remove-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1050","The parameter set 'QueueResourceIdSet' for cmdlet 'Remove-AzServiceBusQueue' has been removed.","Add parameter set 'QueueResourceIdSet' back to cmdlet 'Remove-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.RemoveAzureRmServiceBusQueue","Remove-AzServiceBusQueue","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusQueue' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1060","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusRule' back to 'RulePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1060","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusRule' back to 'RulePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1060","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusRule' back to 'RulePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1060","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusRule' back to 'RulePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1060","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusRule' back to 'RulePropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2010","The cmdlet 'Remove-AzServiceBusRule' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'Subscription' and no alias was found for the original parameter name.","Add the parameter 'Subscription' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2020","The cmdlet 'Remove-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2000","The cmdlet 'Remove-AzServiceBusRule' no longer supports the parameter 'Force' and no alias was found for the original parameter name.","Add the parameter 'Force' back to the cmdlet 'Remove-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2020","The cmdlet 'Remove-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2010","The cmdlet 'Remove-AzServiceBusRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","2010","The cmdlet 'Remove-AzServiceBusRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1050","The parameter set 'RulePropertiesSet' for cmdlet 'Remove-AzServiceBusRule' has been removed.","Add parameter set 'RulePropertiesSet' back to cmdlet 'Remove-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1050","The parameter set 'RuleResourceIdSet' for cmdlet 'Remove-AzServiceBusRule' has been removed.","Add parameter set 'RuleResourceIdSet' back to cmdlet 'Remove-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.RemoveAzureRmServiceBusRule","Remove-AzServiceBusRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1060","The parameter set 'SubscriptionPropertiesSet' for cmdlet 'Remove-AzServiceBusSubscription' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusSubscription' back to 'SubscriptionPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1060","The parameter set 'SubscriptionPropertiesSet' for cmdlet 'Remove-AzServiceBusSubscription' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusSubscription' back to 'SubscriptionPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1060","The parameter set 'SubscriptionPropertiesSet' for cmdlet 'Remove-AzServiceBusSubscription' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusSubscription' back to 'SubscriptionPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2010","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2000","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2000","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Remove-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2020","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2000","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2000","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2020","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2010","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","2010","The cmdlet 'Remove-AzServiceBusSubscription' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1050","The parameter set 'SubscriptionPropertiesSet' for cmdlet 'Remove-AzServiceBusSubscription' has been removed.","Add parameter set 'SubscriptionPropertiesSet' back to cmdlet 'Remove-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1050","The parameter set 'SubscriptionInputObjectSet' for cmdlet 'Remove-AzServiceBusSubscription' has been removed.","Add parameter set 'SubscriptionInputObjectSet' back to cmdlet 'Remove-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1050","The parameter set 'SubscriptionResourceIdSet' for cmdlet 'Remove-AzServiceBusSubscription' has been removed.","Add parameter set 'SubscriptionResourceIdSet' back to cmdlet 'Remove-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.RemoveAzureRmServiceBusSubscription","Remove-AzServiceBusSubscription","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusSubscription' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1060","The parameter set 'TopicPropertiesSet' for cmdlet 'Remove-AzServiceBusTopic' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusTopic' back to 'TopicPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1060","The parameter set 'TopicPropertiesSet' for cmdlet 'Remove-AzServiceBusTopic' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzServiceBusTopic' back to 'TopicPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2010","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2000","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Remove-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2020","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2000","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Remove-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2000","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the parameter 'AsJob' and no alias was found for the original parameter name.","Add the parameter 'AsJob' back to the cmdlet 'Remove-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2020","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2010","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","2010","The cmdlet 'Remove-AzServiceBusTopic' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1050","The parameter set 'TopicPropertiesSet' for cmdlet 'Remove-AzServiceBusTopic' has been removed.","Add parameter set 'TopicPropertiesSet' back to cmdlet 'Remove-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1050","The parameter set 'TopicInputObjectSet' for cmdlet 'Remove-AzServiceBusTopic' has been removed.","Add parameter set 'TopicInputObjectSet' back to cmdlet 'Remove-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1050","The parameter set 'TopicResourceIdSet' for cmdlet 'Remove-AzServiceBusTopic' has been removed.","Add parameter set 'TopicResourceIdSet' back to cmdlet 'Remove-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.RemoveAzureRmServiceBusTopic","Remove-AzServiceBusTopic","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzServiceBusTopic' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1020","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'.","Make cmdlet 'Set-AzServiceBusAuthorizationRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1060","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusAuthorizationRule' back to 'NamespaceAuthorizationRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the parameter 'Queue' and no alias was found for the original parameter name.","Add the parameter 'Queue' back to the cmdlet 'Set-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2000","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Set-AzServiceBusAuthorizationRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSSharedAccessAuthorizationRuleAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the alias 'AuthRuleObj' for parameter 'InputObject'.","Add the alias 'AuthRuleObj' back to parameter 'InputObject'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2110","The element type for parameter 'Rights' has been changed from 'System.String' to 'Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Support.AccessRights'.","Change the element type for parameter 'Rights' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2020","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","2010","The cmdlet 'Set-AzServiceBusAuthorizationRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusAuthorizationRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1050","The parameter set 'NamespaceAuthorizationRuleSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'NamespaceAuthorizationRuleSet' back to cmdlet 'Set-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1050","The parameter set 'QueueAuthorizationRuleSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'QueueAuthorizationRuleSet' back to cmdlet 'Set-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1050","The parameter set 'TopicAuthorizationRuleSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'TopicAuthorizationRuleSet' back to cmdlet 'Set-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.SetAzureServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","0","1050","The parameter set 'AuthoRuleInputObjectSet' for cmdlet 'Set-AzServiceBusAuthorizationRule' has been removed.","Add parameter set 'AuthoRuleInputObjectSet' back to cmdlet 'Set-AzServiceBusAuthorizationRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2010","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2020","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2020","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2010","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","2010","The cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1050","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' has been removed.","Add parameter set 'GeoDRPropertiesSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1050","The parameter set 'GeoDRConfigurationInputObjectSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' has been removed.","Add parameter set 'GeoDRConfigurationInputObjectSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1050","The parameter set 'GeoDRConfigResourceIdParameterSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' has been removed.","Add parameter set 'GeoDRConfigResourceIdParameterSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationBreakPair","Set-AzServiceBusGeoDRConfigurationBreakPair","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationBreakPair'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1060","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' back to 'GeoDRPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2020","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2000","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2020","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2010","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","2010","The cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1050","The parameter set 'GeoDRPropertiesSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' has been removed.","Add parameter set 'GeoDRPropertiesSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1050","The parameter set 'GeoDRConfigurationInputObjectSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' has been removed.","Add parameter set 'GeoDRConfigurationInputObjectSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1050","The parameter set 'GeoDRConfigResourceIdParameterSet' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' has been removed.","Add parameter set 'GeoDRConfigResourceIdParameterSet' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GeoDR.SetAzureServiceBusGeoDRConfigurationFailOver","Set-AzServiceBusGeoDRConfigurationFailOver","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusGeoDRConfigurationFailOver'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","1020","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes'.","Make cmdlet 'Set-AzServiceBusNetworkRuleSet' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","1060","The parameter set 'NetworkRuleSetPropertiesSet' for cmdlet 'Set-AzServiceBusNetworkRuleSet' is no longer the default parameter set.","Change the default parameter for cmdlet 'Set-AzServiceBusNetworkRuleSet' back to 'NetworkRuleSetPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2000","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Set-AzServiceBusNetworkRuleSet', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2020","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the type 'System.String' for parameter 'DefaultAction'.","Change the type for parameter 'DefaultAction' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2020","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the type 'System.String' for parameter 'PublicNetworkAccess'.","Change the type for parameter 'PublicNetworkAccess' back to 'System.String'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2110","The element type for parameter 'IPRule' has been changed from 'Microsoft.Azure.Commands.ServiceBus.Models.PSNWRuleSetIpRulesAttributes' to 'Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetIPRules'.","Change the element type for parameter 'IPRule' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSNWRuleSetIpRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2110","The element type for parameter 'VirtualNetworkRule' has been changed from 'Microsoft.Azure.Commands.ServiceBus.Models.PSNWRuleSetVirtualNetworkRulesAttributes' to 'Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api202201Preview.INwRuleSetVirtualNetworkRules'.","Change the element type for parameter 'VirtualNetworkRule' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSNWRuleSetVirtualNetworkRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2010","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the alias 'VirtualNteworkRule' for parameter 'VirtualNetworkRule'.","Add the alias 'VirtualNteworkRule' back to parameter 'VirtualNetworkRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2020","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSNetworkRuleSetAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2000","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Set-AzServiceBusNetworkRuleSet', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2020","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2010","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","2010","The cmdlet 'Set-AzServiceBusNetworkRuleSet' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetInputObjectSet' for cmdlet 'Set-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetInputObjectSet' back to cmdlet 'Set-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetPropertiesSet' for cmdlet 'Set-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetPropertiesSet' back to cmdlet 'Set-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","0","1050","The parameter set 'NetworkRuleSetResourceIdParameterSet' for cmdlet 'Set-AzServiceBusNetworkRuleSet' has been removed.","Add parameter set 'NetworkRuleSetResourceIdParameterSet' back to cmdlet 'Set-AzServiceBusNetworkRuleSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","1020","The cmdlet 'Set-AzServiceBusQueue' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'.","Make cmdlet 'Set-AzServiceBusQueue' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2010","The cmdlet 'Set-AzServiceBusQueue' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2000","The cmdlet 'Set-AzServiceBusQueue' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusQueue', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2020","The cmdlet 'Set-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSQueueAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2010","The cmdlet 'Set-AzServiceBusQueue' no longer supports the alias 'QueueObj' for parameter 'InputObject'.","Add the alias 'QueueObj' back to parameter 'InputObject'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2020","The cmdlet 'Set-AzServiceBusQueue' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2010","The cmdlet 'Set-AzServiceBusQueue' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","2010","The cmdlet 'Set-AzServiceBusQueue' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Queue.SetAzureRmServiceBusQueue","Set-AzServiceBusQueue","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusQueue' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusQueue'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","1020","The cmdlet 'Set-AzServiceBusRule' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'.","Make cmdlet 'Set-AzServiceBusRule' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2010","The cmdlet 'Set-AzServiceBusRule' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2000","The cmdlet 'Set-AzServiceBusRule' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2000","The cmdlet 'Set-AzServiceBusRule' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Set-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2000","The cmdlet 'Set-AzServiceBusRule' no longer supports the parameter 'Subscription' and no alias was found for the original parameter name.","Add the parameter 'Subscription' back to the cmdlet 'Set-AzServiceBusRule', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2020","The cmdlet 'Set-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSRulesAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2020","The cmdlet 'Set-AzServiceBusRule' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2010","The cmdlet 'Set-AzServiceBusRule' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","2010","The cmdlet 'Set-AzServiceBusRule' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Rule.SetAzureRmServiceBusRule","Set-AzServiceBusRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusRule'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","1020","The cmdlet 'Set-AzServiceBusSubscription' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'.","Make cmdlet 'Set-AzServiceBusSubscription' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2010","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2000","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2000","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the parameter 'Topic' and no alias was found for the original parameter name.","Add the parameter 'Topic' back to the cmdlet 'Set-AzServiceBusSubscription', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2020","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2010","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the alias 'SubscriptionObj' for parameter 'InputObject'.","Add the alias 'SubscriptionObj' back to parameter 'InputObject'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2020","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2010","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","2010","The cmdlet 'Set-AzServiceBusSubscription' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Subscription.SetAzureRmServiceBusSubscription","Set-AzServiceBusSubscription","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusSubscription' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusSubscription'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","1020","The cmdlet 'Set-AzServiceBusTopic' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'.","Make cmdlet 'Set-AzServiceBusTopic' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2010","The cmdlet 'Set-AzServiceBusTopic' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2000","The cmdlet 'Set-AzServiceBusTopic' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Set-AzServiceBusTopic', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2020","The cmdlet 'Set-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSTopicAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2010","The cmdlet 'Set-AzServiceBusTopic' no longer supports the alias 'TopicObj' for parameter 'InputObject'.","Add the alias 'TopicObj' back to parameter 'InputObject'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2020","The cmdlet 'Set-AzServiceBusTopic' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2010","The cmdlet 'Set-AzServiceBusTopic' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","2010","The cmdlet 'Set-AzServiceBusTopic' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Topic.SetAzureRmServiceBusTopic","Set-AzServiceBusTopic","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzServiceBusTopic' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzServiceBusTopic'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","1020","The cmdlet 'Start-AzServiceBusMigration' no longer has output type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'.","Make cmdlet 'Start-AzServiceBusMigration' return type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","2000","The cmdlet 'Start-AzServiceBusMigration' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Start-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","2000","The cmdlet 'Start-AzServiceBusMigration' no longer supports the parameter 'TargetNameSpace' and no alias was found for the original parameter name.","Add the parameter 'TargetNameSpace' back to the cmdlet 'Start-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","2020","The cmdlet 'Start-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","2010","The cmdlet 'Start-AzServiceBusMigration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","2010","The cmdlet 'Start-AzServiceBusMigration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Start-AzServiceBusMigration' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Start-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","1060","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Stop-AzServiceBusMigration' is no longer the default parameter set.","Change the default parameter for cmdlet 'Stop-AzServiceBusMigration' back to 'MigrationConfigurationPropertiesSet'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2010","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2000","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Stop-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2020","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2000","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the parameter 'ResourceId' and no alias was found for the original parameter name.","Add the parameter 'ResourceId' back to the cmdlet 'Stop-AzServiceBusMigration', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2020","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2010","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","2010","The cmdlet 'Stop-AzServiceBusMigration' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","1050","The parameter set 'MigrationConfigurationPropertiesSet' for cmdlet 'Stop-AzServiceBusMigration' has been removed.","Add parameter set 'MigrationConfigurationPropertiesSet' back to cmdlet 'Stop-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","1050","The parameter set 'NamespaceInputObjectSet' for cmdlet 'Stop-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceInputObjectSet' back to cmdlet 'Stop-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","1050","The parameter set 'NamespaceResourceIdParameterSet' for cmdlet 'Stop-AzServiceBusMigration' has been removed.","Add parameter set 'NamespaceResourceIdParameterSet' back to cmdlet 'Stop-AzServiceBusMigration'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","2010","The cmdlet 'Test-AzServiceBusName' no longer supports the alias 'ResourceGroup' for parameter 'ResourceGroupName'.","Add the alias 'ResourceGroup' back to parameter 'ResourceGroupName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","2000","The cmdlet 'Test-AzServiceBusName' no longer supports the parameter 'Namespace' and no alias was found for the original parameter name.","Add the parameter 'Namespace' back to the cmdlet 'Test-AzServiceBusName', or add an alias to the original parameter name." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","2020","The cmdlet 'Test-AzServiceBusName' no longer supports the type 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer' for parameter 'DefaultProfile'.","Change the type for parameter 'DefaultProfile' back to 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","2010","The cmdlet 'Test-AzServiceBusName' no longer supports the alias 'AzContext' for parameter 'DefaultProfile'.","Add the alias 'AzContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","2010","The cmdlet 'Test-AzServiceBusName' no longer supports the alias 'AzureRmContext' for parameter 'DefaultProfile'.","Add the alias 'AzureRmContext' back to parameter 'DefaultProfile'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","1050","The parameter set 'AliasCheckNameAvailabilitySet' for cmdlet 'Test-AzServiceBusName' has been removed.","Add parameter set 'AliasCheckNameAvailabilitySet' back to cmdlet 'Test-AzServiceBusName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","1050","The parameter set 'NamespaceCheckNameAvailabilitySet' for cmdlet 'Test-AzServiceBusName' has been removed.","Add parameter set 'NamespaceCheckNameAvailabilitySet' back to cmdlet 'Test-AzServiceBusName'." +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Namespace.TestAzureServiceBusCheckNameAvailability","Test-AzServiceBusName","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Test-AzServiceBusName' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Test-AzServiceBusName'." "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]'." "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.CompleteAzureServiceBusMigrationConfiguration","Complete-AzServiceBusMigration","0","3000","The type of property 'Role' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]' to 'System.String'.","Change the type of property 'Role' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]'." "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.GetAzureServiceBusAuthorizationRule","Get-AzServiceBusAuthorizationRule","0","3030","The generic type for 'property Rights' has been changed from 'System.Collections.Generic.IList`1[System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.AccessRights]]' to 'System.Collections.Generic.IList`1[System.String]'. ","Change the generic type for 'property Rights' back to 'System.Collections.Generic.IList`1[System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.AccessRights]]'." @@ -28,4 +496,4 @@ "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]'." "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StartAzureServiceBusMigrationConfiguration","Start-AzServiceBusMigration","0","3000","The type of property 'Role' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]' to 'System.String'.","Change the type of property 'Role' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]'." "Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.ProvisioningStateDR]'." -"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","3000","The type of property 'Role' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]' to 'System.String'.","Change the type of property 'Role' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]'." \ No newline at end of file +"Az.ServiceBus","Microsoft.Azure.Commands.ServiceBus.Commands.Migration.StopAzureServiceBusMigrationConfiguration","Stop-AzServiceBusMigration","0","3000","The type of property 'Role' of type 'Microsoft.Azure.Commands.ServiceBus.Models.PSServiceBusDRConfigurationAttributes' has changed from 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]' to 'System.String'.","Change the type of property 'Role' back to 'System.Nullable`1[Microsoft.Azure.Management.ServiceBus.Models.RoleDisasterRecovery]'." diff --git a/tools/StaticAnalysis/Exceptions/Az.ServiceBus/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ServiceBus/SignatureIssues.csv index 34966ec7e672..837836dfbc2b 100644 --- a/tools/StaticAnalysis/Exceptions/Az.ServiceBus/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.ServiceBus/SignatureIssues.csv @@ -30,3 +30,23 @@ "Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.dll","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","1","8410","Parameter VirtualNtewrokRules of cmdlet Set-AzServiceBusNetworkRuleSet does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.dll","Microsoft.Azure.Commands.ServiceBus.Commands.NetworkruleSet.SetAzureServiceBusNetworkrule","Set-AzServiceBusNetworkRuleSet","1","8420","Parameter set 'NetworkRuleSetPropertiesSet' of cmdlet 'Set-AzServiceBusNetworkRuleSet' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer." "Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.dll","Microsoft.Azure.Commands.ServiceBus.Cmdlets.Namespace.NewKeyVaultPropertyObject","New-AzServiceBusEncryptionConfig","1","8100","New-AzServiceBusEncryptionConfig Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ServiceBus","Approve-AzServiceBusPrivateEndpointConnection","Approve-AzServiceBusPrivateEndpointConnection","1","8100","Approve-AzServiceBusPrivateEndpointConnection Does not support ShouldProcess but the cmdlet verb Approve indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ServiceBus","Deny-AzServiceBusPrivateEndpointConnection","Deny-AzServiceBusPrivateEndpointConnection","1","8100","Deny-AzServiceBusPrivateEndpointConnection Does not support ShouldProcess but the cmdlet verb Deny indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ServiceBus","New-AzServiceBusAuthorizationRule","New-AzServiceBusAuthorizationRule","1","8410","Parameter Rights of cmdlet New-AzServiceBusAuthorizationRule does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusIPRuleConfig","New-AzServiceBusIPRuleConfig","1","8100","New-AzServiceBusIPRuleConfig Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ServiceBus","New-AzServiceBusQueue","New-AzServiceBusQueue","1","8410","Parameter EnableBatchedOperations of cmdlet New-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusQueue","New-AzServiceBusQueue","1","8410","Parameter MaxMessageSizeInKilobytes of cmdlet New-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusQueue","New-AzServiceBusQueue","1","8410","Parameter MaxSizeInMegabytes of cmdlet New-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusSubscription","New-AzServiceBusSubscription","1","8410","Parameter EnableBatchedOperations of cmdlet New-AzServiceBusSubscription does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusTopic","New-AzServiceBusTopic","1","8410","Parameter EnableBatchedOperations of cmdlet New-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusTopic","New-AzServiceBusTopic","1","8410","Parameter MaxMessageSizeInKilobytes of cmdlet New-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusTopic","New-AzServiceBusTopic","1","8410","Parameter MaxSizeInMegabytes of cmdlet New-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","New-AzServiceBusVirtualNetworkRuleConfig","New-AzServiceBusVirtualNetworkRuleConfig","1","8100","New-AzServiceBusVirtualNetworkRuleConfig Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ServiceBus","Set-AzServiceBusAuthorizationRule","Set-AzServiceBusAuthorizationRule","1","8410","Parameter Rights of cmdlet Set-AzServiceBusAuthorizationRule does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusQueue","Set-AzServiceBusQueue","1","8410","Parameter EnableBatchedOperations of cmdlet Set-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusQueue","Set-AzServiceBusQueue","1","8410","Parameter MaxSizeInMegabytes of cmdlet Set-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusQueue","Set-AzServiceBusQueue","1","8410","Parameter MaxMessageSizeInKilobytes of cmdlet Set-AzServiceBusQueue does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusSubscription","Set-AzServiceBusSubscription","1","8410","Parameter EnableBatchedOperations of cmdlet Set-AzServiceBusSubscription does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusTopic","Set-AzServiceBusTopic","1","8410","Parameter EnableBatchedOperations of cmdlet Set-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusTopic","Set-AzServiceBusTopic","1","8410","Parameter MaxSizeInMegabytes of cmdlet Set-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ServiceBus","Set-AzServiceBusTopic","Set-AzServiceBusTopic","1","8410","Parameter MaxMessageSizeInKilobytes of cmdlet Set-AzServiceBusTopic does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."