Skip to content

Commit f19b3a4

Browse files
Fix the test issue (#11533)
Co-authored-by: wyunchi-ms <[email protected]>
1 parent 514d877 commit f19b3a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MariaDb/custom/New-AzMariaDbServerReplica.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function New-AzMariaDbServerReplica {
140140
#region ServerForCreate
141141
$ServerObject = $InputObject
142142
if (-not $PSBoundParameters.ContainsKey('InputObject')) {
143-
$ServerObject = Get-AzMariaDbServer -ResourceGroupName $ResourceGroupName -Name $ServerName
143+
$ServerObject = Get-AzMariaDbServer -ResourceGroupName $ResourceGroupName -Name $ServerName -SubscriptionId $SubscriptionId
144144
$Null = $PSBoundParameters.Remove('ServerName')
145145
} else {
146146
$Fields = $InputObject.Id.Split('/')

src/MariaDb/custom/Restore-AzMariaDBServer.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function Restore-AzMariaDbServer
169169

170170
$ServerObject = $InputObject
171171
if (-not $PSBoundParameters.ContainsKey('InputObject')) {
172-
$ServerObject = Get-AzMariaDbServer -ResourceGroupName $ResourceGroupName -Name $ServerName
172+
$ServerObject = Get-AzMariaDbServer -ResourceGroupName $ResourceGroupName -Name $ServerName -SubscriptionId $SubscriptionId
173173

174174
$Null = $PSBoundParameters.Remove('ServerName')
175175
} else {

0 commit comments

Comments
 (0)