@@ -187,7 +187,7 @@ begin {
187187 }
188188 if ((' FindExpanded' , ' FindViaJsonFilePath' , ' FindViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
189189 $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 ) } }
191191 if ($testPlayback ) {
192192 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
193193 } else {
@@ -360,7 +360,7 @@ begin {
360360 }
361361 if ((' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
362362 $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 ) } }
364364 if ($testPlayback ) {
365365 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
366366 } else {
@@ -580,7 +580,7 @@ begin {
580580 }
581581 if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
582582 $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 ) } }
584584 if ($testPlayback ) {
585585 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
586586 } else {
@@ -782,7 +782,7 @@ begin {
782782 }
783783 if ((' Get' , ' List' , ' List1' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
784784 $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 ) } }
786786 if ($testPlayback ) {
787787 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
788788 } else {
@@ -1093,7 +1093,7 @@ begin {
10931093 }
10941094 if ((' CreateExpanded' , ' CreateViaJsonFilePath' , ' CreateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
10951095 $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 ) } }
10971097 if ($testPlayback ) {
10981098 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
10991099 } else {
@@ -1319,7 +1319,7 @@ begin {
13191319 }
13201320 if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
13211321 $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 ) } }
13231323 if ($testPlayback ) {
13241324 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
13251325 } else {
@@ -1533,7 +1533,7 @@ begin {
15331533 }
15341534 if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
15351535 $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 ) } }
15371537 if ($testPlayback ) {
15381538 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
15391539 } else {
@@ -1844,7 +1844,7 @@ begin {
18441844 }
18451845 if ((' UpdateExpanded' , ' UpdateViaJsonFilePath' , ' UpdateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
18461846 $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 ) } }
18481848 if ($testPlayback ) {
18491849 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
18501850 } else {
@@ -2105,7 +2105,7 @@ begin {
21052105 }
21062106 if ((' CreateExpanded' , ' CreateViaJsonFilePath' , ' CreateViaJsonString' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
21072107 $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 ) } }
21092109 if ($testPlayback ) {
21102110 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
21112111 } else {
@@ -2499,7 +2499,7 @@ begin {
24992499 }
25002500 if ((' UpdateExpanded' , ' UpdateViaJsonString' , ' UpdateViaJsonFilePath' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
25012501 $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 ) } }
25032503 if ($testPlayback ) {
25042504 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
25052505 } else {
0 commit comments