Skip to content

Commit aff11ac

Browse files
Migrate ConnectedMachine from generation to main (#23069)
* Move ConnectedMachine to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 154ed63 commit aff11ac

File tree

103 files changed

+720
-466
lines changed

Some content is hidden

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

103 files changed

+720
-466
lines changed

src/ConnectedMachine/Az.ConnectedMachine.psd1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/30/2023
6+
# Generated on: 10/25/2023
77
#
88

99
@{
@@ -119,8 +119,7 @@ PrivateData = @{
119119
# IconUri = ''
120120

121121
# ReleaseNotes of this module
122-
ReleaseNotes = '* Updated the API version to stable 2022-12-27
123-
* Added cmdlet ''Install-AzConnectedMachinePatch'', ''Invoke-AzConnectedAssessMachinePatch'' and ''Get-AzConnectedExtensionMetadata'''
122+
# ReleaseNotes = ''
124123

125124
# Prerelease string of this module
126125
# Prerelease = ''

src/ConnectedMachine/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added revision option in MachineExtensionProperties that matches the input version of the extension that customers want to install.
2122

2223
## Version 0.5.0
2324
* Updated the API version to stable 2022-12-27

src/ConnectedMachine/ConnectedMachine.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{914F3349-E57A-494C-A455-3BF50929AD16}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{D9648307-3E51-4A5E-B8F0-8FE31A008B0E}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{20EAD978-8BE2-466D-8C57-040E8ADFFBAA}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{98C4E0D3-2F8D-42EE-AADA-36FEBABBFD33}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{3DE0E4A4-EF4C-404F-92DD-4233312569AE}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{DE8AA070-8EE5-4587-AA61-776157723180}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{76DEA455-5CE4-42D5-8A59-7A5ACE40E67F}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{542F7F9D-C4AD-4140-B3EC-CA25291F786B}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{431B4356-4C32-4130-A9F3-6C6BD88C57B6}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{D69E9915-5320-4CA9-8922-51C40859F01E}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{3FCE3F5B-2DDF-4693-BF95-3A1A900BDE29}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{3280B780-C0AD-4A61-A33E-D7C74F97FFEB}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConnectedMachine", "Az.ConnectedMachine.csproj", "{07732971-30CC-4C34-BEAC-880E73CC9046}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConnectedMachine", "Az.ConnectedMachine.csproj", "{F0B6B566-6D3B-4F99-96CE-B91CFBDDDED5}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{914F3349-E57A-494C-A455-3BF50929AD16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{914F3349-E57A-494C-A455-3BF50929AD16}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{914F3349-E57A-494C-A455-3BF50929AD16}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{914F3349-E57A-494C-A455-3BF50929AD16}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{20EAD978-8BE2-466D-8C57-040E8ADFFBAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{20EAD978-8BE2-466D-8C57-040E8ADFFBAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{20EAD978-8BE2-466D-8C57-040E8ADFFBAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{20EAD978-8BE2-466D-8C57-040E8ADFFBAA}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{3DE0E4A4-EF4C-404F-92DD-4233312569AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{3DE0E4A4-EF4C-404F-92DD-4233312569AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{3DE0E4A4-EF4C-404F-92DD-4233312569AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{3DE0E4A4-EF4C-404F-92DD-4233312569AE}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{76DEA455-5CE4-42D5-8A59-7A5ACE40E67F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{76DEA455-5CE4-42D5-8A59-7A5ACE40E67F}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{76DEA455-5CE4-42D5-8A59-7A5ACE40E67F}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{76DEA455-5CE4-42D5-8A59-7A5ACE40E67F}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{431B4356-4C32-4130-A9F3-6C6BD88C57B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{431B4356-4C32-4130-A9F3-6C6BD88C57B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{431B4356-4C32-4130-A9F3-6C6BD88C57B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{431B4356-4C32-4130-A9F3-6C6BD88C57B6}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{3FCE3F5B-2DDF-4693-BF95-3A1A900BDE29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{3FCE3F5B-2DDF-4693-BF95-3A1A900BDE29}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{3FCE3F5B-2DDF-4693-BF95-3A1A900BDE29}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{3FCE3F5B-2DDF-4693-BF95-3A1A900BDE29}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{07732971-30CC-4C34-BEAC-880E73CC9046}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{07732971-30CC-4C34-BEAC-880E73CC9046}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{07732971-30CC-4C34-BEAC-880E73CC9046}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{07732971-30CC-4C34-BEAC-880E73CC9046}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{D9648307-3E51-4A5E-B8F0-8FE31A008B0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{D9648307-3E51-4A5E-B8F0-8FE31A008B0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{D9648307-3E51-4A5E-B8F0-8FE31A008B0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{D9648307-3E51-4A5E-B8F0-8FE31A008B0E}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{98C4E0D3-2F8D-42EE-AADA-36FEBABBFD33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{98C4E0D3-2F8D-42EE-AADA-36FEBABBFD33}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{98C4E0D3-2F8D-42EE-AADA-36FEBABBFD33}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{98C4E0D3-2F8D-42EE-AADA-36FEBABBFD33}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{DE8AA070-8EE5-4587-AA61-776157723180}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{DE8AA070-8EE5-4587-AA61-776157723180}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{DE8AA070-8EE5-4587-AA61-776157723180}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{DE8AA070-8EE5-4587-AA61-776157723180}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{542F7F9D-C4AD-4140-B3EC-CA25291F786B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{542F7F9D-C4AD-4140-B3EC-CA25291F786B}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{542F7F9D-C4AD-4140-B3EC-CA25291F786B}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{542F7F9D-C4AD-4140-B3EC-CA25291F786B}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{D69E9915-5320-4CA9-8922-51C40859F01E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{D69E9915-5320-4CA9-8922-51C40859F01E}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{D69E9915-5320-4CA9-8922-51C40859F01E}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{D69E9915-5320-4CA9-8922-51C40859F01E}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{3280B780-C0AD-4A61-A33E-D7C74F97FFEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{3280B780-C0AD-4A61-A33E-D7C74F97FFEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{3280B780-C0AD-4A61-A33E-D7C74F97FFEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{3280B780-C0AD-4A61-A33E-D7C74F97FFEB}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{F0B6B566-6D3B-4F99-96CE-B91CFBDDDED5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{F0B6B566-6D3B-4F99-96CE-B91CFBDDDED5}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{F0B6B566-6D3B-4F99-96CE-B91CFBDDDED5}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{F0B6B566-6D3B-4F99-96CE-B91CFBDDDED5}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/ConnectedMachine/build-module.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ if($NoDocs) {
143143
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144144
}
145145
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
146+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
147+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
147148
}
148149

149150
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
162163
Write-Host -ForegroundColor Green 'Creating example stubs...'
163164
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
164165

166+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
167+
{
168+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
169+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170+
}
171+
165172
Write-Host -ForegroundColor Green '-------------Done-------------'

src/ConnectedMachine/custom/MachineExtensionProperties.json.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ partial void AfterToJson(ref JsonObject container)
2020
{
2121
var version = Version.Parse((string) node.ToValue());
2222
container.Remove(typeHandlerVersionPropertyName);
23-
container.Add(typeHandlerVersionPropertyName, version.Build == -1 ? $"{version.Major}.{version.Minor}" : $"{version.Major}.{version.Minor}.{version.Build}");
23+
container.Add(typeHandlerVersionPropertyName, version.Build == -1 ? $"{version.Major}.{version.Minor}" : $"{version.Major}.{version.Minor}.{version.Build}.{version.Revision}");
2424
}
2525
}
2626
}

src/ConnectedMachine/exports/Connect-AzConnectedMachine.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ begin {
154154
}
155155
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
156156
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
157+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
158+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
159+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
160+
}
157161
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
158162
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
159163
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/ConnectedMachine/exports/Get-AzConnectedExtensionMetadata.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ begin {
148148
}
149149
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
150150
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
151+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
152+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
153+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
154+
}
151155
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
152156
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
153157
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/ConnectedMachine/exports/Get-AzConnectedMachine.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ begin {
149149
}
150150
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
151151
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
152+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
153+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
154+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
155+
}
152156
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
153157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
154158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/ConnectedMachine/exports/Get-AzConnectedMachineExtension.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ begin {
149149
}
150150
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
151151
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
152+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
153+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
154+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
155+
}
152156
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
153157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
154158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/ConnectedMachine/exports/Get-AzConnectedPrivateLinkScope.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ begin {
139139
}
140140
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
141141
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
142+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
143+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
144+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145+
}
142146
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
143147
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
144148
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

0 commit comments

Comments
 (0)