Skip to content

Commit 2860c78

Browse files
[skip ci] Archive a8ae44c (#27605)
1 parent 4018e92 commit 2860c78

File tree

136 files changed

+7622
-2469
lines changed

Some content is hidden

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

136 files changed

+7622
-2469
lines changed

generated/HealthBot/HealthBot.Autorest/Az.HealthBot.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>HealthBot</PsModuleName>
44
<PsRootModuleName>HealthBot</PsRootModuleName>
5+
<PsModuleFolder>HealthBot.Autorest</PsModuleFolder>
56
</PropertyGroup>
67

78
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
89
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
9-
1010
</Project>

generated/HealthBot/HealthBot.Autorest/Az.HealthBot.format.ps1xml

+68-62
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,9 @@
22
<Configuration>
33
<ViewDefinitions>
44
<View>
5-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</Name>
6-
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</TypeName>
8-
</ViewSelectedBy>
9-
<TableControl>
10-
<TableHeaders>
11-
<TableColumnHeader>
12-
<Label>BotName</Label>
13-
</TableColumnHeader>
14-
<TableColumnHeader>
15-
<Label>ResourceGroupName</Label>
16-
</TableColumnHeader>
17-
<TableColumnHeader>
18-
<Label>SubscriptionId</Label>
19-
</TableColumnHeader>
20-
</TableHeaders>
21-
<TableRowEntries>
22-
<TableRowEntry>
23-
<TableColumnItems>
24-
<TableColumnItem>
25-
<PropertyName>BotName</PropertyName>
26-
</TableColumnItem>
27-
<TableColumnItem>
28-
<PropertyName>ResourceGroupName</PropertyName>
29-
</TableColumnItem>
30-
<TableColumnItem>
31-
<PropertyName>SubscriptionId</PropertyName>
32-
</TableColumnItem>
33-
</TableColumnItems>
34-
</TableRowEntry>
35-
</TableRowEntries>
36-
</TableControl>
37-
</View>
38-
<View>
39-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.AvailableOperations</Name>
5+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.AvailableOperations</Name>
406
<ViewSelectedBy>
41-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.AvailableOperations</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.AvailableOperations#Multiple</TypeName>
428
</ViewSelectedBy>
439
<TableControl>
4410
<TableHeaders>
@@ -58,9 +24,9 @@
5824
</TableControl>
5925
</View>
6026
<View>
61-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.BotResponseList</Name>
27+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.BotResponseList</Name>
6228
<ViewSelectedBy>
63-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.BotResponseList</TypeName>
29+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.BotResponseList#Multiple</TypeName>
6430
</ViewSelectedBy>
6531
<TableControl>
6632
<TableHeaders>
@@ -80,9 +46,9 @@
8046
</TableControl>
8147
</View>
8248
<View>
83-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ErrorAutoGenerated</Name>
49+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Error1</Name>
8450
<ViewSelectedBy>
85-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ErrorAutoGenerated</TypeName>
51+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Error1#Multiple</TypeName>
8652
</ViewSelectedBy>
8753
<TableControl>
8854
<TableHeaders>
@@ -114,9 +80,9 @@
11480
</TableControl>
11581
</View>
11682
<View>
117-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBot</Name>
83+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBot</Name>
11884
<ViewSelectedBy>
119-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBot</TypeName>
85+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBot#Multiple</TypeName>
12086
</ViewSelectedBy>
12187
<TableControl>
12288
<TableHeaders>
@@ -144,6 +110,9 @@
144110
<TableColumnHeader>
145111
<Label>SystemDataLastModifiedByType</Label>
146112
</TableColumnHeader>
113+
<TableColumnHeader>
114+
<Label>ResourceGroupName</Label>
115+
</TableColumnHeader>
147116
</TableHeaders>
148117
<TableRowEntries>
149118
<TableRowEntry>
@@ -172,15 +141,52 @@
172141
<TableColumnItem>
173142
<PropertyName>SystemDataLastModifiedByType</PropertyName>
174143
</TableColumnItem>
144+
<TableColumnItem>
145+
<PropertyName>ResourceGroupName</PropertyName>
146+
</TableColumnItem>
147+
</TableColumnItems>
148+
</TableRowEntry>
149+
</TableRowEntries>
150+
</TableControl>
151+
</View>
152+
<View>
153+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</Name>
154+
<ViewSelectedBy>
155+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity#Multiple</TypeName>
156+
</ViewSelectedBy>
157+
<TableControl>
158+
<TableHeaders>
159+
<TableColumnHeader>
160+
<Label>BotName</Label>
161+
</TableColumnHeader>
162+
<TableColumnHeader>
163+
<Label>ResourceGroupName</Label>
164+
</TableColumnHeader>
165+
<TableColumnHeader>
166+
<Label>SubscriptionId</Label>
167+
</TableColumnHeader>
168+
</TableHeaders>
169+
<TableRowEntries>
170+
<TableRowEntry>
171+
<TableColumnItems>
172+
<TableColumnItem>
173+
<PropertyName>BotName</PropertyName>
174+
</TableColumnItem>
175+
<TableColumnItem>
176+
<PropertyName>ResourceGroupName</PropertyName>
177+
</TableColumnItem>
178+
<TableColumnItem>
179+
<PropertyName>SubscriptionId</PropertyName>
180+
</TableColumnItem>
175181
</TableColumnItems>
176182
</TableRowEntry>
177183
</TableRowEntries>
178184
</TableControl>
179185
</View>
180186
<View>
181-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotProperties</Name>
187+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotProperties</Name>
182188
<ViewSelectedBy>
183-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotProperties</TypeName>
189+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotProperties#Multiple</TypeName>
184190
</ViewSelectedBy>
185191
<TableControl>
186192
<TableHeaders>
@@ -206,9 +212,9 @@
206212
</TableControl>
207213
</View>
208214
<View>
209-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotUpdateParametersTags</Name>
215+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotUpdateParametersTags</Name>
210216
<ViewSelectedBy>
211-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotUpdateParametersTags</TypeName>
217+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotUpdateParametersTags#Multiple</TypeName>
212218
</ViewSelectedBy>
213219
<TableControl>
214220
<TableHeaders>
@@ -228,9 +234,9 @@
228234
</TableControl>
229235
</View>
230236
<View>
231-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDetail</Name>
237+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDetail</Name>
232238
<ViewSelectedBy>
233-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDetail</TypeName>
239+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDetail#Multiple</TypeName>
234240
</ViewSelectedBy>
235241
<TableControl>
236242
<TableHeaders>
@@ -262,9 +268,9 @@
262268
</TableControl>
263269
</View>
264270
<View>
265-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDisplay</Name>
271+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDisplay</Name>
266272
<ViewSelectedBy>
267-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDisplay</TypeName>
273+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDisplay#Multiple</TypeName>
268274
</ViewSelectedBy>
269275
<TableControl>
270276
<TableHeaders>
@@ -302,9 +308,9 @@
302308
</TableControl>
303309
</View>
304310
<View>
305-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Resource</Name>
311+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Resource</Name>
306312
<ViewSelectedBy>
307-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Resource</TypeName>
313+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Resource#Multiple</TypeName>
308314
</ViewSelectedBy>
309315
<TableControl>
310316
<TableHeaders>
@@ -324,9 +330,9 @@
324330
</TableControl>
325331
</View>
326332
<View>
327-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Sku</Name>
333+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Sku</Name>
328334
<ViewSelectedBy>
329-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Sku</TypeName>
335+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Sku#Multiple</TypeName>
330336
</ViewSelectedBy>
331337
<TableControl>
332338
<TableHeaders>
@@ -346,9 +352,9 @@
346352
</TableControl>
347353
</View>
348354
<View>
349-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.SystemData</Name>
355+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.SystemData</Name>
350356
<ViewSelectedBy>
351-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.SystemData</TypeName>
357+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.SystemData#Multiple</TypeName>
352358
</ViewSelectedBy>
353359
<TableControl>
354360
<TableHeaders>
@@ -398,9 +404,9 @@
398404
</TableControl>
399405
</View>
400406
<View>
401-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResource</Name>
407+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResource</Name>
402408
<ViewSelectedBy>
403-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResource</TypeName>
409+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResource#Multiple</TypeName>
404410
</ViewSelectedBy>
405411
<TableControl>
406412
<TableHeaders>
@@ -462,9 +468,9 @@
462468
</TableControl>
463469
</View>
464470
<View>
465-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResourceTags</Name>
471+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResourceTags</Name>
466472
<ViewSelectedBy>
467-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResourceTags</TypeName>
473+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResourceTags#Multiple</TypeName>
468474
</ViewSelectedBy>
469475
<TableControl>
470476
<TableHeaders>
@@ -484,9 +490,9 @@
484490
</TableControl>
485491
</View>
486492
<View>
487-
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ValidationResult</Name>
493+
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ValidationResult</Name>
488494
<ViewSelectedBy>
489-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ValidationResult</TypeName>
495+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ValidationResult#Multiple</TypeName>
490496
</ViewSelectedBy>
491497
<TableControl>
492498
<TableHeaders>

generated/HealthBot/HealthBot.Autorest/Az.HealthBot.psd1

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.HealthBot.private.dll'
1313
FormatsToProcess = './Az.HealthBot.format.ps1xml'
14-
FunctionsToExport = 'Get-AzHealthBot', 'New-AzHealthBot', 'Remove-AzHealthBot', 'Update-AzHealthBot', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzHealthBot', 'New-AzHealthBot', 'Remove-AzHealthBot', 'Update-AzHealthBot'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HealthBot'
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// ----------------------------------------------------------------------------------
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
53
// you may not use this file except in compliance with the License.
64
// You may obtain a copy of the License at
75
// http://www.apache.org/licenses/LICENSE-2.0
86
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
108
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
// See the License for the specific language governing permissions and
1210
// limitations under the License.
13-
// ----------------------------------------------------------------------------------
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
1413

1514
using System;
1615
using System.Reflection;
16+
using System.Runtime.CompilerServices;
1717
using System.Runtime.InteropServices;
1818

19-
[assembly: AssemblyTitle("Microsoft Azure Powershell - HealthBot")]
20-
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21-
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22-
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23-
24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("b9695b5d-c3f7-4953-a756-af80e7772759")]
27-
[assembly: AssemblyVersion("0.1.2")]
28-
[assembly: AssemblyFileVersion("0.1.2")]
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 - HealthBot")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

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

+3-3
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/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1

+15-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Get-AzHealthBot -InputObject $getAzHealthBot
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.IHealthBot
35+
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -47,7 +47,7 @@ INPUTOBJECT <IHealthBotIdentity>: Identity Parameter
4747
https://learn.microsoft.com/powershell/module/az.healthbot/get-azhealthbot
4848
#>
4949
function Get-AzHealthBot {
50-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.IHealthBot])]
50+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot])]
5151
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
5252
param(
5353
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -77,7 +77,6 @@ param(
7777
[Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Category('Path')]
7878
[Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotIdentity]
7979
# Identity Parameter
80-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8180
${InputObject},
8281

8382
[Parameter()]
@@ -136,6 +135,15 @@ begin {
136135
$PSBoundParameters['OutBuffer'] = 1
137136
}
138137
$parameterSet = $PSCmdlet.ParameterSetName
138+
139+
$testPlayback = $false
140+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
141+
142+
$context = Get-AzContext
143+
if (-not $context -and -not $testPlayback) {
144+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
145+
exit
146+
}
139147

140148
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141149
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -160,9 +168,7 @@ begin {
160168
List = 'Az.HealthBot.private\Get-AzHealthBot_List';
161169
List1 = 'Az.HealthBot.private\Get-AzHealthBot_List1';
162170
}
163-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
164-
$testPlayback = $false
165-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
166172
if ($testPlayback) {
167173
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
168174
} else {
@@ -176,6 +182,9 @@ begin {
176182
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
177183
}
178184
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
185+
if ($wrappedCmd -eq $null) {
186+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
187+
}
179188
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
180189
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
181190
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)