Skip to content

Commit 6701719

Browse files
[skip ci] Archive 2f92848 (#28816)
1 parent 2f92848 commit 6701719

File tree

405 files changed

+58643
-10395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+58643
-10395
lines changed

generated/Relay/Relay.Autorest/Az.Relay.format.ps1xml

Lines changed: 276 additions & 310 deletions
Large diffs are not rendered by default.

generated/Relay/Relay.Autorest/Az.Relay.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Relay.private.dll'
1313
FormatsToProcess = './Az.Relay.format.ps1xml'
14-
FunctionsToExport = 'Get-AzRelayAuthorizationRule', 'Get-AzRelayHybridConnection', 'Get-AzRelayKey', 'Get-AzRelayNamespace', 'Get-AzRelayNamespaceNetworkRuleSet', 'Get-AzWcfRelay', 'New-AzRelayAuthorizationRule', 'New-AzRelayHybridConnection', 'New-AzRelayKey', 'New-AzRelayNamespace', 'New-AzRelayNetworkRuleSetIPRuleObject', 'New-AzWcfRelay', 'Remove-AzRelayAuthorizationRule', 'Remove-AzRelayHybridConnection', 'Remove-AzRelayNamespace', 'Remove-AzWcfRelay', 'Set-AzRelayAuthorizationRule', 'Set-AzRelayHybridConnection', 'Set-AzRelayNamespaceNetworkRuleSet', 'Set-AzWcfRelay', 'Test-AzRelayName', 'Update-AzRelayNamespace', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzRelayAuthorizationRule', 'Get-AzRelayHybridConnection', 'Get-AzRelayKey', 'Get-AzRelayNamespace', 'Get-AzRelayNamespaceNetworkRuleSet', 'Get-AzWcfRelay', 'New-AzRelayAuthorizationRule', 'New-AzRelayHybridConnection', 'New-AzRelayKey', 'New-AzRelayNamespace', 'New-AzRelayNetworkRuleSetIPRuleObject', 'New-AzWcfRelay', 'Remove-AzRelayAuthorizationRule', 'Remove-AzRelayHybridConnection', 'Remove-AzRelayNamespace', 'Remove-AzWcfRelay', 'Set-AzRelayAuthorizationRule', 'Set-AzRelayHybridConnection', 'Set-AzRelayNamespaceNetworkRuleSet', 'Set-AzWcfRelay', 'Test-AzRelayName', 'Update-AzRelayNamespace'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Relay'

generated/Relay/Relay.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/Relay/Relay.Autorest/exports/Get-AzRelayAuthorizationRule.ps1

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Get-AzRelayAuthorizationRule -ResourceGroupName lucas-relay-rg -Namespace namesp
3737
.Inputs
3838
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity
3939
.Outputs
40-
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IAuthorizationRule
40+
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IAuthorizationRule
4141
.Notes
4242
COMPLEX PARAMETER PROPERTIES
4343
4444
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
4545
46-
INPUTOBJECT <IRelayIdentity>: Identity Parameter
46+
INPUTOBJECT <IRelayIdentity>: Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
4747
[AuthorizationRuleName <String>]: The authorization rule name.
4848
[HybridConnectionName <String>]: The hybrid connection name.
4949
[Id <String>]: Resource identity path
@@ -57,7 +57,7 @@ INPUTOBJECT <IRelayIdentity>: Identity Parameter
5757
https://learn.microsoft.com/powershell/module/az.relay/get-azrelayauthorizationrule
5858
#>
5959
function Get-AzRelayAuthorizationRule {
60-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IAuthorizationRule])]
60+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IAuthorizationRule])]
6161
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
6262
param(
6363
[Parameter(ParameterSetName='List', Mandatory)]
@@ -180,6 +180,15 @@ begin {
180180
$PSBoundParameters['OutBuffer'] = 1
181181
}
182182
$parameterSet = $PSCmdlet.ParameterSetName
183+
184+
$testPlayback = $false
185+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
186+
187+
$context = Get-AzContext
188+
if (-not $context -and -not $testPlayback) {
189+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
190+
exit
191+
}
183192

184193
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
185194
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -207,9 +216,7 @@ begin {
207216
List1 = 'Az.Relay.custom\Get-AzRelayAuthorizationRule';
208217
GetViaIdentity = 'Az.Relay.custom\Get-AzRelayAuthorizationRule';
209218
}
210-
if (('List', 'Get2', 'Get1', 'Get', 'List2', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
211-
$testPlayback = $false
212-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
219+
if (('List', 'Get2', 'Get1', 'Get', 'List2', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
213220
if ($testPlayback) {
214221
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
215222
} else {
@@ -223,6 +230,9 @@ begin {
223230
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
224231
}
225232
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
233+
if ($wrappedCmd -eq $null) {
234+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
235+
}
226236
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
227237
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
228238
$steppablePipeline.Begin($PSCmdlet)

generated/Relay/Relay.Autorest/exports/Get-AzRelayHybridConnection.ps1

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzRelayHybridConnection -ResourceGroupName lucas-relay-rg -Namespace namespa
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IHybridConnection
32+
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IHybridConnection
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -45,14 +45,26 @@ INPUTOBJECT <IRelayIdentity>: Identity Parameter
4545
[RelayName <String>]: The relay name.
4646
[ResourceGroupName <String>]: Name of the Resource group within the Azure subscription.
4747
[SubscriptionId <String>]: Subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
48+
49+
NAMESPACEINPUTOBJECT <IRelayIdentity>: Identity Parameter
50+
[AuthorizationRuleName <String>]: The authorization rule name.
51+
[HybridConnectionName <String>]: The hybrid connection name.
52+
[Id <String>]: Resource identity path
53+
[NamespaceName <String>]: The namespace name
54+
[PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name
55+
[PrivateLinkResourceName <String>]: The PrivateLinkResource name
56+
[RelayName <String>]: The relay name.
57+
[ResourceGroupName <String>]: Name of the Resource group within the Azure subscription.
58+
[SubscriptionId <String>]: Subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
4859
.Link
4960
https://learn.microsoft.com/powershell/module/az.relay/get-azrelayhybridconnection
5061
#>
5162
function Get-AzRelayHybridConnection {
52-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IHybridConnection])]
63+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IHybridConnection])]
5364
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5465
param(
5566
[Parameter(ParameterSetName='Get', Mandatory)]
67+
[Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)]
5668
[Alias('HybridConnectionName')]
5769
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Category('Path')]
5870
[System.String]
@@ -86,9 +98,14 @@ param(
8698
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Category('Path')]
8799
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity]
88100
# Identity Parameter
89-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
90101
${InputObject},
91102

103+
[Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory, ValueFromPipeline)]
104+
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Category('Path')]
105+
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity]
106+
# Identity Parameter
107+
${NamespaceInputObject},
108+
92109
[Parameter()]
93110
[Alias('AzureRMContext', 'AzureCredential')]
94111
[ValidateNotNull()]
@@ -145,6 +162,15 @@ begin {
145162
$PSBoundParameters['OutBuffer'] = 1
146163
}
147164
$parameterSet = $PSCmdlet.ParameterSetName
165+
166+
$testPlayback = $false
167+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
168+
169+
$context = Get-AzContext
170+
if (-not $context -and -not $testPlayback) {
171+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
172+
exit
173+
}
148174

149175
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
150176
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -166,11 +192,10 @@ begin {
166192
$mapping = @{
167193
Get = 'Az.Relay.private\Get-AzRelayHybridConnection_Get';
168194
GetViaIdentity = 'Az.Relay.private\Get-AzRelayHybridConnection_GetViaIdentity';
195+
GetViaIdentityNamespace = 'Az.Relay.private\Get-AzRelayHybridConnection_GetViaIdentityNamespace';
169196
List = 'Az.Relay.private\Get-AzRelayHybridConnection_List';
170197
}
171-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
172-
$testPlayback = $false
173-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
198+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
174199
if ($testPlayback) {
175200
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
176201
} else {
@@ -184,6 +209,9 @@ begin {
184209
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
185210
}
186211
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
212+
if ($wrappedCmd -eq $null) {
213+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
214+
}
187215
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
188216
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
189217
$steppablePipeline.Begin($PSCmdlet)

generated/Relay/Relay.Autorest/exports/Get-AzRelayKey.ps1

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Get-AzRelayKey -ResourceGroupName lucas-relay-rg -Namespace namespace-pwsh01 -Hy
2727
Get-AzRelayKey -ResourceGroupName lucas-relay-rg -Namespace namespace-pwsh01 -WcfRelay wcf-01 -Name authRule-01 | Format-List
2828
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IAccessKeys
30+
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IAccessKeys
3131
.Link
3232
https://learn.microsoft.com/powershell/module/az.relay/get-azrelaykey
3333
#>
3434
function Get-AzRelayKey {
35-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IAccessKeys])]
35+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IAccessKeys])]
3636
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3737
param(
3838
[Parameter(Mandatory)]
@@ -129,6 +129,15 @@ begin {
129129
$PSBoundParameters['OutBuffer'] = 1
130130
}
131131
$parameterSet = $PSCmdlet.ParameterSetName
132+
133+
$testPlayback = $false
134+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
135+
136+
$context = Get-AzContext
137+
if (-not $context -and -not $testPlayback) {
138+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
139+
exit
140+
}
132141

133142
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
134143
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -152,9 +161,7 @@ begin {
152161
List1 = 'Az.Relay.private\Get-AzRelayKey_List1';
153162
List2 = 'Az.Relay.private\Get-AzRelayKey_List2';
154163
}
155-
if (('List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
156-
$testPlayback = $false
157-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
164+
if (('List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
158165
if ($testPlayback) {
159166
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
160167
} else {
@@ -168,6 +175,9 @@ begin {
168175
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
169176
}
170177
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
178+
if ($wrappedCmd -eq $null) {
179+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
180+
}
171181
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
172182
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
173183
$steppablePipeline.Begin($PSCmdlet)

generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespace.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $namespaces[0] | Get-AzRelayNamespace
3030
.Inputs
3131
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity
3232
.Outputs
33-
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IRelayNamespace
33+
Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayNamespace
3434
.Notes
3535
COMPLEX PARAMETER PROPERTIES
3636
@@ -50,7 +50,7 @@ INPUTOBJECT <IRelayIdentity>: Identity Parameter
5050
https://learn.microsoft.com/powershell/module/az.relay/get-azrelaynamespace
5151
#>
5252
function Get-AzRelayNamespace {
53-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.Api20211101.IRelayNamespace])]
53+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayNamespace])]
5454
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5555
param(
5656
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -81,7 +81,6 @@ param(
8181
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Category('Path')]
8282
[Microsoft.Azure.PowerShell.Cmdlets.Relay.Models.IRelayIdentity]
8383
# Identity Parameter
84-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8584
${InputObject},
8685

8786
[Parameter()]
@@ -140,6 +139,15 @@ begin {
140139
$PSBoundParameters['OutBuffer'] = 1
141140
}
142141
$parameterSet = $PSCmdlet.ParameterSetName
142+
143+
$testPlayback = $false
144+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
145+
146+
$context = Get-AzContext
147+
if (-not $context -and -not $testPlayback) {
148+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
149+
exit
150+
}
143151

144152
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
145153
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -164,9 +172,7 @@ begin {
164172
List = 'Az.Relay.private\Get-AzRelayNamespace_List';
165173
List1 = 'Az.Relay.private\Get-AzRelayNamespace_List1';
166174
}
167-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
168-
$testPlayback = $false
169-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Relay.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
175+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
170176
if ($testPlayback) {
171177
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
172178
} else {
@@ -180,6 +186,9 @@ begin {
180186
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
181187
}
182188
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
189+
if ($wrappedCmd -eq $null) {
190+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
191+
}
183192
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
184193
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
185194
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)