Skip to content

Commit c7a9849

Browse files
[skip ci] Archive e2b2b12 (#28719)
1 parent 3089fcb commit c7a9849

File tree

94 files changed

+1409
-1281
lines changed

Some content is hidden

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

94 files changed

+1409
-1281
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AksArc")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.4")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcCluster.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ begin {
107107
$PSBoundParameters['OutBuffer'] = 1
108108
}
109109
$parameterSet = $PSCmdlet.ParameterSetName
110+
111+
$testPlayback = $false
112+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
113+
114+
$context = Get-AzContext
115+
if (-not $context -and -not $testPlayback) {
116+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
117+
exit
118+
}
110119

111120
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
112121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -129,8 +138,6 @@ begin {
129138
Get = 'Az.AksArc.custom\Get-AzAksArcCluster';
130139
}
131140
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
132-
$testPlayback = $false
133-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
134141
if ($testPlayback) {
135142
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
136143
} else {
@@ -144,6 +151,9 @@ begin {
144151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145152
}
146153
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
154+
if ($wrappedCmd -eq $null) {
155+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
156+
}
147157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
148158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
149159
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterAdminKubeconfig.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ begin {
118118
$PSBoundParameters['OutBuffer'] = 1
119119
}
120120
$parameterSet = $PSCmdlet.ParameterSetName
121+
122+
$testPlayback = $false
123+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
124+
125+
$context = Get-AzContext
126+
if (-not $context -and -not $testPlayback) {
127+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
128+
exit
129+
}
121130

122131
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
123132
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -140,8 +149,6 @@ begin {
140149
List = 'Az.AksArc.custom\Get-AzAksArcClusterAdminKubeconfig';
141150
}
142151
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
143-
$testPlayback = $false
144-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
145152
if ($testPlayback) {
146153
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
147154
} else {
@@ -155,6 +162,9 @@ begin {
155162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
156163
}
157164
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
165+
if ($wrappedCmd -eq $null) {
166+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
167+
}
158168
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
159169
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
160170
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterUpgrade.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ begin {
9898
$PSBoundParameters['OutBuffer'] = 1
9999
}
100100
$parameterSet = $PSCmdlet.ParameterSetName
101+
102+
$testPlayback = $false
103+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
104+
105+
$context = Get-AzContext
106+
if (-not $context -and -not $testPlayback) {
107+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
108+
exit
109+
}
101110

102111
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
103112
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -120,8 +129,6 @@ begin {
120129
Get = 'Az.AksArc.custom\Get-AzAksArcClusterUpgrade';
121130
}
122131
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
123-
$testPlayback = $false
124-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
125132
if ($testPlayback) {
126133
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
127134
} else {
@@ -135,6 +142,9 @@ begin {
135142
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
136143
}
137144
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
145+
if ($wrappedCmd -eq $null) {
146+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
147+
}
138148
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
139149
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
140150
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterUserKubeconfig.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ begin {
118118
$PSBoundParameters['OutBuffer'] = 1
119119
}
120120
$parameterSet = $PSCmdlet.ParameterSetName
121+
122+
$testPlayback = $false
123+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
124+
125+
$context = Get-AzContext
126+
if (-not $context -and -not $testPlayback) {
127+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
128+
exit
129+
}
121130

122131
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
123132
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -140,8 +149,6 @@ begin {
140149
List = 'Az.AksArc.custom\Get-AzAksArcClusterUserKubeconfig';
141150
}
142151
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
143-
$testPlayback = $false
144-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
145152
if ($testPlayback) {
146153
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
147154
} else {
@@ -155,6 +162,9 @@ begin {
155162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
156163
}
157164
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
165+
if ($wrappedCmd -eq $null) {
166+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
167+
}
158168
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
159169
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
160170
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcKubernetesVersion.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ begin {
107107
$PSBoundParameters['OutBuffer'] = 1
108108
}
109109
$parameterSet = $PSCmdlet.ParameterSetName
110+
111+
$testPlayback = $false
112+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
113+
114+
$context = Get-AzContext
115+
if (-not $context -and -not $testPlayback) {
116+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
117+
exit
118+
}
110119

111120
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
112121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -129,8 +138,6 @@ begin {
129138
Get = 'Az.AksArc.custom\Get-AzAksArcKubernetesVersion';
130139
}
131140
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
132-
$testPlayback = $false
133-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
134141
if ($testPlayback) {
135142
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
136143
} else {
@@ -144,6 +151,9 @@ begin {
144151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145152
}
146153
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
154+
if ($wrappedCmd -eq $null) {
155+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
156+
}
147157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
148158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
149159
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcLog.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ begin {
105105
$PSBoundParameters['OutBuffer'] = 1
106106
}
107107
$parameterSet = $PSCmdlet.ParameterSetName
108+
109+
$testPlayback = $false
110+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
111+
112+
$context = Get-AzContext
113+
if (-not $context -and -not $testPlayback) {
114+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
115+
exit
116+
}
108117

109118
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
110119
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -133,6 +142,9 @@ begin {
133142
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
134143
}
135144
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
145+
if ($wrappedCmd -eq $null) {
146+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
147+
}
136148
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
137149
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
138150
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcNodepool.ps1

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ Get-AzAksArcNodepool -ClusterName azps_test_cluster -ResourceGroupName azps_test
2828
Microsoft.Azure.PowerShell.Cmdlets.AksArc.Models.IAksArcIdentity
2929
.Outputs
3030
Microsoft.Azure.PowerShell.Cmdlets.AksArc.Models.IAgentPool
31-
.Notes
32-
COMPLEX PARAMETER PROPERTIES
33-
34-
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.
35-
36-
INPUTOBJECT <IAksArcIdentity>: Identity Parameter
37-
[AgentPoolName <String>]: Parameter for the name of the agent pool in the provisioned cluster.
38-
[ConnectedClusterResourceUri <String>]: The fully qualified Azure Resource Manager identifier of the connected cluster resource.
39-
[CustomLocationResourceUri <String>]: The fully qualified Azure Resource Manager identifier of the custom location resource.
40-
[Id <String>]: Resource identity path
41-
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
42-
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
43-
[VirtualNetworkName <String>]: Parameter for the name of the virtual network
4431
.Link
4532
https://learn.microsoft.com/powershell/module/az.aksarc/get-azaksarcnodepool
4633
#>
@@ -74,12 +61,6 @@ param(
7461
# Parameter for the name of the agent pool in the provisioned cluster.
7562
${Name},
7663

77-
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
78-
[Microsoft.Azure.PowerShell.Cmdlets.AksArc.Category('Path')]
79-
[Microsoft.Azure.PowerShell.Cmdlets.AksArc.Models.IAksArcIdentity]
80-
# Identity Parameter
81-
${InputObject},
82-
8364
[Parameter(DontShow)]
8465
[Microsoft.Azure.PowerShell.Cmdlets.AksArc.Category('Runtime')]
8566
[System.Management.Automation.SwitchParameter]
@@ -127,6 +108,15 @@ begin {
127108
$PSBoundParameters['OutBuffer'] = 1
128109
}
129110
$parameterSet = $PSCmdlet.ParameterSetName
111+
112+
$testPlayback = $false
113+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
114+
115+
$context = Get-AzContext
116+
if (-not $context -and -not $testPlayback) {
117+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
118+
exit
119+
}
130120

131121
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
132122
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -148,11 +138,8 @@ begin {
148138
$mapping = @{
149139
List = 'Az.AksArc.custom\Get-AzAksArcNodepool';
150140
Get = 'Az.AksArc.custom\Get-AzAksArcNodepool';
151-
GetViaIdentity = 'Az.AksArc.custom\Get-AzAksArcNodepool';
152141
}
153-
if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
154-
$testPlayback = $false
155-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
142+
if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
156143
if ($testPlayback) {
157144
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
158145
} else {
@@ -166,6 +153,9 @@ begin {
166153
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
167154
}
168155
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
156+
if ($wrappedCmd -eq $null) {
157+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
158+
}
169159
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
170160
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
171161
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)