Skip to content

Commit 1b9be75

Browse files
Move ServiceBus to main
1 parent fa60001 commit 1b9be75

File tree

50 files changed

+5470
-4703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5470
-4703
lines changed

src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationBreakPair.ps1

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,35 @@ function Set-AzServiceBusGeoDRConfigurationBreakPair{
136136
}
137137
}
138138
elseif($PSCmdlet.ParameterSetName -eq 'BreakViaIdentity'){
139+
$EnvPSBoundParameters = @{}
140+
141+
if ($PSBoundParameters.ContainsKey('Debug')) {
142+
$EnvPSBoundParameters['Debug'] = $Debug
143+
}
144+
if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) {
145+
$EnvPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend
146+
}
147+
if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) {
148+
$EnvPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend
149+
}
150+
if ($PSBoundParameters.ContainsKey('Proxy')) {
151+
$EnvPSBoundParameters['Proxy'] = $Proxy
152+
}
153+
if ($PSBoundParameters.ContainsKey('ProxyCredential')) {
154+
$EnvPSBoundParameters['ProxyCredential'] = $ProxyCredential
155+
}
156+
if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) {
157+
$EnvPSBoundParameters['ProxyUseDefaultCredentials'] = $ProxyUseDefaultCredentials
158+
}
159+
139160
if($InputObject.Id -ne $null){
140161
$ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id
141162
}
142163
else{
143164
$ResourceHashTable = ParseResourceId -ResourceId $InputObject
144165
}
145166
if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($InputObject.Name)", "Break Pair")) {
146-
Az.ServiceBus.private\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName']
167+
Az.ServiceBus.private\Invoke-AzServiceBusBreakDisasterRecoveryConfigPairing_Break -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName'] @EnvPSBoundParameters
147168
}
148169
}
149170
}

src/ServiceBus/ServiceBus.Autorest/custom/Set-AzServiceBusGeoDRConfigurationFailOver.ps1

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,35 @@ function Set-AzServiceBusGeoDRConfigurationFailOver{
136136
}
137137
}
138138
elseif($PSCmdlet.ParameterSetName -eq 'FailViaIdentity'){
139+
$EnvPSBoundParameters = @{}
140+
141+
if ($PSBoundParameters.ContainsKey('Debug')) {
142+
$EnvPSBoundParameters['Debug'] = $Debug
143+
}
144+
if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) {
145+
$EnvPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend
146+
}
147+
if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) {
148+
$EnvPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend
149+
}
150+
if ($PSBoundParameters.ContainsKey('Proxy')) {
151+
$EnvPSBoundParameters['Proxy'] = $Proxy
152+
}
153+
if ($PSBoundParameters.ContainsKey('ProxyCredential')) {
154+
$EnvPSBoundParameters['ProxyCredential'] = $ProxyCredential
155+
}
156+
if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) {
157+
$EnvPSBoundParameters['ProxyUseDefaultCredentials'] = $ProxyUseDefaultCredentials
158+
}
159+
139160
if ($InputObject.Id -ne $null){
140161
$ResourceHashTable = ParseResourceId -ResourceId $InputObject.Id
141162
}
142163
else{
143164
$ResourceHashTable = ParseResourceId -ResourceId $InputObject
144165
}
145166
if ($PSCmdlet.ShouldProcess("ServiceBus Disaster Recovery Alias $($InputObject.Name)", "Fail Over")) {
146-
Az.ServiceBus.private\Invoke-AzServiceBusFailDisasterRecoveryConfigOver_FailExpanded -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName']
167+
Az.ServiceBus.private\Invoke-AzServiceBusFailDisasterRecoveryConfigOver_FailExpanded -Name $ResourceHashTable['AliasName'] -NamespaceName $ResourceHashTable['NamespaceName'] -ResourceGroupName $ResourceHashTable['ResourceGroupName'] -SubscriptionId $ResourceHashTable['SubscriptionName'] @EnvPSBoundParameters
147168
}
148169
}
149170
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest_powershell": "3.0.494",
3-
"autorest_core": "3.9.2",
4-
"swagger_commit": "7816ad3d42e9ff6717fed652c72f7fa609259f86",
52
"autorest_modelerfour": "4.15.414",
6-
"autorest": "`-- (empty)",
7-
"node": "v14.15.5"
3+
"swagger_commit": "dcd9837828d87f85dd0728892b4aeca7aa2ecf1f",
4+
"autorest_core": "3.9.2",
5+
"node": "v14.15.5",
6+
"autorest_powershell": "3.0.494",
7+
"autorest": "`-- (empty)"
88
}

0 commit comments

Comments
 (0)