File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function New-AzMariaDbServerReplica {
140
140
# region ServerForCreate
141
141
$ServerObject = $InputObject
142
142
if (-not $PSBoundParameters.ContainsKey (' InputObject' )) {
143
- $ServerObject = Get-AzMariaDbServer - ResourceGroupName $ResourceGroupName - Name $ServerName
143
+ $ServerObject = Get-AzMariaDbServer - ResourceGroupName $ResourceGroupName - Name $ServerName - SubscriptionId $SubscriptionId
144
144
$Null = $PSBoundParameters.Remove (' ServerName' )
145
145
} else {
146
146
$Fields = $InputObject.Id.Split (' /' )
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ function Restore-AzMariaDbServer
169
169
170
170
$ServerObject = $InputObject
171
171
if (-not $PSBoundParameters.ContainsKey (' InputObject' )) {
172
- $ServerObject = Get-AzMariaDbServer - ResourceGroupName $ResourceGroupName - Name $ServerName
172
+ $ServerObject = Get-AzMariaDbServer - ResourceGroupName $ResourceGroupName - Name $ServerName - SubscriptionId $SubscriptionId
173
173
174
174
$Null = $PSBoundParameters.Remove (' ServerName' )
175
175
} else {
You can’t perform that action at this time.
0 commit comments