@@ -187,7 +187,7 @@ begin {
187
187
}
188
188
if ((' FindExpanded' , ' FindViaJsonFilePath' , ' FindViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
189
189
$testPlayback = $false
190
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
190
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
191
191
if ($testPlayback ) {
192
192
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
193
193
} else {
@@ -360,7 +360,7 @@ begin {
360
360
}
361
361
if ((' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
362
362
$testPlayback = $false
363
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
363
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
364
364
if ($testPlayback ) {
365
365
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
366
366
} else {
@@ -580,7 +580,7 @@ begin {
580
580
}
581
581
if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
582
582
$testPlayback = $false
583
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
583
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
584
584
if ($testPlayback ) {
585
585
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
586
586
} else {
@@ -782,7 +782,7 @@ begin {
782
782
}
783
783
if ((' Get' , ' List' , ' List1' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
784
784
$testPlayback = $false
785
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
785
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
786
786
if ($testPlayback ) {
787
787
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
788
788
} else {
@@ -1093,7 +1093,7 @@ begin {
1093
1093
}
1094
1094
if ((' CreateExpanded' , ' CreateViaJsonFilePath' , ' CreateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1095
1095
$testPlayback = $false
1096
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1096
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1097
1097
if ($testPlayback ) {
1098
1098
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1099
1099
} else {
@@ -1319,7 +1319,7 @@ begin {
1319
1319
}
1320
1320
if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1321
1321
$testPlayback = $false
1322
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1322
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1323
1323
if ($testPlayback ) {
1324
1324
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1325
1325
} else {
@@ -1533,7 +1533,7 @@ begin {
1533
1533
}
1534
1534
if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1535
1535
$testPlayback = $false
1536
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1536
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1537
1537
if ($testPlayback ) {
1538
1538
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1539
1539
} else {
@@ -1844,7 +1844,7 @@ begin {
1844
1844
}
1845
1845
if ((' UpdateExpanded' , ' UpdateViaJsonFilePath' , ' UpdateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1846
1846
$testPlayback = $false
1847
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1847
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1848
1848
if ($testPlayback ) {
1849
1849
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1850
1850
} else {
@@ -2105,7 +2105,7 @@ begin {
2105
2105
}
2106
2106
if ((' CreateExpanded' , ' CreateViaJsonFilePath' , ' CreateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
2107
2107
$testPlayback = $false
2108
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
2108
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
2109
2109
if ($testPlayback ) {
2110
2110
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
2111
2111
} else {
@@ -2499,7 +2499,7 @@ begin {
2499
2499
}
2500
2500
if ((' UpdateExpanded' , ' UpdateViaJsonString' , ' UpdateViaJsonFilePath' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
2501
2501
$testPlayback = $false
2502
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
2502
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
2503
2503
if ($testPlayback ) {
2504
2504
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
2505
2505
} else {
0 commit comments