Skip to content

Commit

Permalink
Move CloudService to main
Browse files Browse the repository at this point in the history
  • Loading branch information
azurepowershell committed Aug 12, 2021
1 parent 4024ada commit 2dec362
Show file tree
Hide file tree
Showing 48 changed files with 8,166 additions and 106 deletions.
4 changes: 2 additions & 2 deletions src/CloudService/Az.CloudService.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 2021/7/8
# Generated on: 8/12/2021
#

@{
Expand Down Expand Up @@ -127,7 +127,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Introduced 2 additional parameter sets for ''New-AzCloudService''.'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
2 changes: 1 addition & 1 deletion src/CloudService/Az.CloudService.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

if(-not $accountsModule) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
} elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Expand Down
130 changes: 65 additions & 65 deletions src/CloudService/CloudService.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{22DEEF87-7F7A-46CB-B834-C3CB401ED741}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{8FEF37DD-D978-4467-B05B-0872E6573249}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3332E939-D2D7-4413-A285-7768E5F531F0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{2F8776E1-3124-4997-9E52-5A97AC2DB99E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{EC151540-64D6-4C12-9841-3286AF314E38}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "Az.CloudService.csproj", "{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CloudService", "Az.CloudService.csproj", "{819BD670-72D1-4125-9C77-F74669A47DDE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -26,65 +26,65 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|x64.ActiveCfg = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|x64.Build.0 = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|x86.ActiveCfg = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Debug|x86.Build.0 = Debug|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|Any CPU.Build.0 = Release|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|x64.ActiveCfg = Release|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|x64.Build.0 = Release|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|x86.ActiveCfg = Release|Any CPU
{22DEEF87-7F7A-46CB-B834-C3CB401ED741}.Release|x86.Build.0 = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|x64.ActiveCfg = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|x64.Build.0 = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|x86.ActiveCfg = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Debug|x86.Build.0 = Debug|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|Any CPU.Build.0 = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|x64.ActiveCfg = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|x64.Build.0 = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|x86.ActiveCfg = Release|Any CPU
{8FEF37DD-D978-4467-B05B-0872E6573249}.Release|x86.Build.0 = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|x64.ActiveCfg = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|x64.Build.0 = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|x86.ActiveCfg = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Debug|x86.Build.0 = Debug|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|Any CPU.Build.0 = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|x64.ActiveCfg = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|x64.Build.0 = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|x86.ActiveCfg = Release|Any CPU
{3332E939-D2D7-4413-A285-7768E5F531F0}.Release|x86.Build.0 = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|x64.ActiveCfg = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|x64.Build.0 = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|x86.ActiveCfg = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Debug|x86.Build.0 = Debug|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|Any CPU.Build.0 = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|x64.ActiveCfg = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|x64.Build.0 = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|x86.ActiveCfg = Release|Any CPU
{2F8776E1-3124-4997-9E52-5A97AC2DB99E}.Release|x86.Build.0 = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|x64.ActiveCfg = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|x64.Build.0 = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|x86.ActiveCfg = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Debug|x86.Build.0 = Debug|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|Any CPU.Build.0 = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|x64.ActiveCfg = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|x64.Build.0 = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|x86.ActiveCfg = Release|Any CPU
{FFD6EC94-649C-4FF3-B1EF-59EB1DFE0F18}.Release|x86.Build.0 = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|x64.ActiveCfg = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|x64.Build.0 = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|x86.ActiveCfg = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Debug|x86.Build.0 = Debug|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|Any CPU.Build.0 = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|x64.ActiveCfg = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|x64.Build.0 = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|x86.ActiveCfg = Release|Any CPU
{BB0E75A8-8C46-4C74-AB3C-C2822F071B95}.Release|x86.Build.0 = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|x64.ActiveCfg = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|x64.Build.0 = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|x86.ActiveCfg = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Debug|x86.Build.0 = Debug|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|Any CPU.Build.0 = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|x64.ActiveCfg = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|x64.Build.0 = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|x86.ActiveCfg = Release|Any CPU
{32D4A8D2-6EB9-42EF-BB09-941D4AB9774B}.Release|x86.Build.0 = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|x64.ActiveCfg = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|x64.Build.0 = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|x86.ActiveCfg = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Debug|x86.Build.0 = Debug|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|Any CPU.Build.0 = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|x64.ActiveCfg = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|x64.Build.0 = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|x86.ActiveCfg = Release|Any CPU
{B5AE57FD-40D8-466A-99E3-6358C4D6CE23}.Release|x86.Build.0 = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|x64.ActiveCfg = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|x64.Build.0 = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|x86.ActiveCfg = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Debug|x86.Build.0 = Debug|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|Any CPU.Build.0 = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|x64.ActiveCfg = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|x64.Build.0 = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|x86.ActiveCfg = Release|Any CPU
{EC151540-64D6-4C12-9841-3286AF314E38}.Release|x86.Build.0 = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|x64.ActiveCfg = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|x64.Build.0 = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|x86.ActiveCfg = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Debug|x86.Build.0 = Debug|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|Any CPU.Build.0 = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|x64.ActiveCfg = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|x64.Build.0 = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|x86.ActiveCfg = Release|Any CPU
{819BD670-72D1-4125-9C77-F74669A47DDE}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ function New-AzCloudServiceRemoteDesktopExtensionObject {
$RDPExtensionType = "RDP"

$rdpSetting = "<PublicConfig><UserName>$($Credential.UserName)</UserName><Expiration>$Expiration</Expiration></PublicConfig>";
$rdpProtectedSetting = "<PrivateConfig><Password>$($Credential.Password)</Password></PrivateConfig>";
$Password = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $Credential.Password
$rdpProtectedSetting = "<PrivateConfig><Password>$($Password)</Password></PrivateConfig>";

return New-AzCloudServiceExtensionObject -Name $Name -Publisher $RDPPublisher -Type $RDPExtensionType -TypeHandlerVersion $TypeHandlerVersion -Setting $rdpSetting -ProtectedSetting $rdpProtectedSetting -RolesAppliedTo $RolesAppliedTo -AutoUpgradeMinorVersion $AutoUpgradeMinorVersion
}
Expand Down
2 changes: 1 addition & 1 deletion src/CloudService/custom/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s
### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.CloudService`.
- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.InternalExportAttribute`
Expand Down
2 changes: 2 additions & 0 deletions src/CloudService/exports/Get-AzCloudService.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ begin {
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
2 changes: 2 additions & 0 deletions src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ begin {
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ begin {
if (('CloudService', 'CloudServiceName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
2 changes: 2 additions & 0 deletions src/CloudService/exports/Get-AzCloudServiceOSFamily.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ begin {
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
2 changes: 2 additions & 0 deletions src/CloudService/exports/Get-AzCloudServiceOSVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ begin {
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ begin {
if (('CloudServiceName', 'CloudService') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
Expand Down
Loading

0 comments on commit 2dec362

Please sign in to comment.