@@ -179,7 +179,7 @@ begin {
179
179
}
180
180
if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
181
181
$testPlayback = $false
182
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
182
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
183
183
if ($testPlayback ) {
184
184
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
185
185
} else {
@@ -401,7 +401,7 @@ begin {
401
401
}
402
402
if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
403
403
$testPlayback = $false
404
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
404
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
405
405
if ($testPlayback ) {
406
406
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
407
407
} else {
@@ -604,7 +604,7 @@ begin {
604
604
}
605
605
if ((' Get' , ' List' , ' List1' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
606
606
$testPlayback = $false
607
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
607
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
608
608
if ($testPlayback ) {
609
609
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
610
610
} else {
@@ -814,7 +814,7 @@ begin {
814
814
}
815
815
if ((' CreateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
816
816
$testPlayback = $false
817
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
817
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
818
818
if ($testPlayback ) {
819
819
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
820
820
} else {
@@ -1018,7 +1018,7 @@ begin {
1018
1018
}
1019
1019
if ((' CreateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1020
1020
$testPlayback = $false
1021
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1021
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1022
1022
if ($testPlayback ) {
1023
1023
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1024
1024
} else {
@@ -1216,7 +1216,7 @@ begin {
1216
1216
}
1217
1217
if ((' CreateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1218
1218
$testPlayback = $false
1219
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1219
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1220
1220
if ($testPlayback ) {
1221
1221
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1222
1222
} else {
@@ -1450,7 +1450,7 @@ begin {
1450
1450
}
1451
1451
if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1452
1452
$testPlayback = $false
1453
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1453
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1454
1454
if ($testPlayback ) {
1455
1455
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1456
1456
} else {
@@ -1684,7 +1684,7 @@ begin {
1684
1684
}
1685
1685
if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1686
1686
$testPlayback = $false
1687
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1687
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1688
1688
if ($testPlayback ) {
1689
1689
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1690
1690
} else {
@@ -1896,7 +1896,7 @@ begin {
1896
1896
}
1897
1897
if ((' Delete' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
1898
1898
$testPlayback = $false
1899
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
1899
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
1900
1900
if ($testPlayback ) {
1901
1901
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
1902
1902
} else {
@@ -2132,7 +2132,7 @@ begin {
2132
2132
}
2133
2133
if ((' UpdateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
2134
2134
$testPlayback = $false
2135
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
2135
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
2136
2136
if ($testPlayback ) {
2137
2137
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
2138
2138
} else {
@@ -2355,7 +2355,7 @@ begin {
2355
2355
}
2356
2356
if ((' UpdateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
2357
2357
$testPlayback = $false
2358
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
2358
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
2359
2359
if ($testPlayback ) {
2360
2360
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
2361
2361
} else {
@@ -2556,7 +2556,7 @@ begin {
2556
2556
}
2557
2557
if ((' UpdateExpanded' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
2558
2558
$testPlayback = $false
2559
- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) }
2559
+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ( $_ ) { $ testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
2560
2560
if ($testPlayback ) {
2561
2561
$PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
2562
2562
} else {
0 commit comments