Skip to content

Commit c7b259d

Browse files
Migrate DesktopVirtualization from generation to release-2023-04-25-oob-az (#21663)
* Move DesktopVirtualization to release-2023-04-25-oob-az * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 82a6641 commit c7b259d

File tree

170 files changed

+656
-471
lines changed

Some content is hidden

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

170 files changed

+656
-471
lines changed

src/DesktopVirtualization/Az.DesktopVirtualization.psd1

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

99
@{
@@ -126,7 +126,7 @@ PrivateData = @{
126126
# IconUri = ''
127127

128128
# ReleaseNotes of this module
129-
ReleaseNotes = '* Corrected parameter description of ''-Force'' in ''Remove-AzWvdUserSession''.'
129+
# ReleaseNotes = ''
130130

131131
# Prerelease string of this module
132132
# Prerelease = ''

src/DesktopVirtualization/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 breaking change warnings
2122

2223
## Version 3.1.1
2324
* Corrected parameter description of `-Force` in `Remove-AzWvdUserSession`.
Lines changed: 38 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,58 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.6.30114.105
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{A6FF111C-C5ED-4A38-9643-C2ED988751D8}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{117EE16B-4868-4089-A943-0D338E41ACE0}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{47EB086C-55DB-42AE-A516-3D99938125CF}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{2687A479-5C67-4AF5-81D9-4DB237D7CA6A}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{938280FD-AE8E-40A4-801E-809AB94621D0}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{01F6BF18-ED5C-4F16-8120-6831E18F1E1B}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{32284E41-D67F-439D-AB46-13F1D66C3FF5}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DesktopVirtualization", "Az.DesktopVirtualization.csproj", "{C69A7B12-F310-4224-B6AD-63334FF8BED2}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{F991F565-DA29-4A8A-9CC5-0792334058C6}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DesktopVirtualization", "Az.DesktopVirtualization.csproj", "{E5C339D6-8477-4A2A-9EB8-69EC2EFE382D}"
1719
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
21-
Debug|x64 = Debug|x64
22-
Debug|x86 = Debug|x86
2323
Release|Any CPU = Release|Any CPU
24-
Release|x64 = Release|x64
25-
Release|x86 = Release|x86
2624
EndGlobalSection
2725
GlobalSection(SolutionProperties) = preSolution
2826
HideSolutionNode = FALSE
2927
EndGlobalSection
3028
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|x64.Build.0 = Debug|Any CPU
35-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Debug|x86.Build.0 = Debug|Any CPU
37-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|x64.ActiveCfg = Release|Any CPU
40-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|x64.Build.0 = Release|Any CPU
41-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|x86.ActiveCfg = Release|Any CPU
42-
{C62C64F7-F601-4F01-B57B-A9F588ECE7A1}.Release|x86.Build.0 = Release|Any CPU
43-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|x64.Build.0 = Debug|Any CPU
47-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Debug|x86.Build.0 = Debug|Any CPU
49-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|x64.ActiveCfg = Release|Any CPU
52-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|x64.Build.0 = Release|Any CPU
53-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|x86.ActiveCfg = Release|Any CPU
54-
{DE91A961-1CC3-49BC-98BE-BDCA51E6F45A}.Release|x86.Build.0 = Release|Any CPU
55-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|x64.Build.0 = Debug|Any CPU
59-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Debug|x86.Build.0 = Debug|Any CPU
61-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|x64.ActiveCfg = Release|Any CPU
64-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|x64.Build.0 = Release|Any CPU
65-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|x86.ActiveCfg = Release|Any CPU
66-
{47EB086C-55DB-42AE-A516-3D99938125CF}.Release|x86.Build.0 = Release|Any CPU
67-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|x64.Build.0 = Debug|Any CPU
71-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Debug|x86.Build.0 = Debug|Any CPU
73-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|x64.ActiveCfg = Release|Any CPU
76-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|x64.Build.0 = Release|Any CPU
77-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|x86.ActiveCfg = Release|Any CPU
78-
{938280FD-AE8E-40A4-801E-809AB94621D0}.Release|x86.Build.0 = Release|Any CPU
79-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|x64.Build.0 = Debug|Any CPU
83-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Debug|x86.Build.0 = Debug|Any CPU
85-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|x64.ActiveCfg = Release|Any CPU
88-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|x64.Build.0 = Release|Any CPU
89-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|x86.ActiveCfg = Release|Any CPU
90-
{EFBDEBC2-4D4B-4FFA-A7CC-07B4A4034FB9}.Release|x86.Build.0 = Release|Any CPU
91-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|x64.Build.0 = Debug|Any CPU
95-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Debug|x86.Build.0 = Debug|Any CPU
97-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|x64.ActiveCfg = Release|Any CPU
100-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|x64.Build.0 = Release|Any CPU
101-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|x86.ActiveCfg = Release|Any CPU
102-
{C69A7B12-F310-4224-B6AD-63334FF8BED2}.Release|x86.Build.0 = Release|Any CPU
29+
{A6FF111C-C5ED-4A38-9643-C2ED988751D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{A6FF111C-C5ED-4A38-9643-C2ED988751D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{A6FF111C-C5ED-4A38-9643-C2ED988751D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{A6FF111C-C5ED-4A38-9643-C2ED988751D8}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{117EE16B-4868-4089-A943-0D338E41ACE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{117EE16B-4868-4089-A943-0D338E41ACE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{117EE16B-4868-4089-A943-0D338E41ACE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{117EE16B-4868-4089-A943-0D338E41ACE0}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{2687A479-5C67-4AF5-81D9-4DB237D7CA6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{2687A479-5C67-4AF5-81D9-4DB237D7CA6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{2687A479-5C67-4AF5-81D9-4DB237D7CA6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{2687A479-5C67-4AF5-81D9-4DB237D7CA6A}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{01F6BF18-ED5C-4F16-8120-6831E18F1E1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{01F6BF18-ED5C-4F16-8120-6831E18F1E1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{01F6BF18-ED5C-4F16-8120-6831E18F1E1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{01F6BF18-ED5C-4F16-8120-6831E18F1E1B}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{32284E41-D67F-439D-AB46-13F1D66C3FF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{32284E41-D67F-439D-AB46-13F1D66C3FF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{32284E41-D67F-439D-AB46-13F1D66C3FF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{32284E41-D67F-439D-AB46-13F1D66C3FF5}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{F991F565-DA29-4A8A-9CC5-0792334058C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{F991F565-DA29-4A8A-9CC5-0792334058C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{F991F565-DA29-4A8A-9CC5-0792334058C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{F991F565-DA29-4A8A-9CC5-0792334058C6}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{E5C339D6-8477-4A2A-9EB8-69EC2EFE382D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{E5C339D6-8477-4A2A-9EB8-69EC2EFE382D}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{E5C339D6-8477-4A2A-9EB8-69EC2EFE382D}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{E5C339D6-8477-4A2A-9EB8-69EC2EFE382D}.Release|Any CPU.Build.0 = Release|Any CPU
10357
EndGlobalSection
10458
EndGlobal

src/DesktopVirtualization/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,29 @@ directive:
9999
parameter-name: Force
100100
set:
101101
parameter-description: 'Specify to force userSession deletion.'
102-
102+
#breaking change warning
103+
- where:
104+
verb: New
105+
subject: ^ApplicationGroup$|^HostPool$
106+
parameter-name: MigrationRequestMigrationPath|MigrationRequestOperation
107+
set:
108+
breaking-change:
109+
deprecated-by-version: 4.0.0
110+
change-description: This is parameter will be deleted.
111+
- where:
112+
verb: New
113+
subject: ^ScalingPlan$
114+
parameter-name: HostPoolType
115+
set:
116+
breaking-change:
117+
deprecated-by-version: 4.0.0
118+
change-description: The allowed value of this parameter changed from 'BYODesktop, Personal, Pooled' to 'Pooled'
119+
- where:
120+
verb: Update
121+
subject: ^ScalingPlan$
122+
parameter-name: HostPoolType
123+
set:
124+
breaking-change:
125+
deprecated-by-version: 4.0.0
126+
change-description: This parameter will be deleted.
103127
```

src/DesktopVirtualization/build-module.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
123123

124124
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125125
$modelCmdlets = @()
126+
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127+
if (Test-Path $modelCmdletFolder) {
128+
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
129+
}
126130
if ($modelCmdlets.Count -gt 0) {
127131
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
128132
CreateModelCmdlet($modelCmdlets)

src/DesktopVirtualization/create-model-cmdlets.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ function CreateModelCmdlet {
2323
}
2424

2525
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
26-
$ModuleName = 'Wvd'
2726
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
2827
$null = New-Item -ItemType Directory -Force -Path $OutputDir
28+
if (''.length -gt 0) {
29+
$ModuleName = ''
30+
} else {
31+
$ModuleName = 'Az.DesktopVirtualization'
32+
}
2933

3034
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
3135
$Content = ''
@@ -64,10 +68,10 @@ function CreateModelCmdlet {
6468
$ObjectType = $Model
6569
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
6670
# remove duplicated module name
67-
if ($ObjectType.StartsWith($ModuleName)) {
71+
if ($ObjectType.StartsWith('Wvd')) {
6872
$ModulePrefix = ''
6973
} else {
70-
$ModulePrefix = $ModuleName
74+
$ModulePrefix = 'Wvd'
7175
}
7276
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
7377

@@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}.
158162
.Outputs
159163
${ObjectTypeWithNamespace}
160164
.Link
161-
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
165+
https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
162166
#>
163167
function New-Az${ModulePrefix}${ObjectType}Object {
164168
[OutputType('${ObjectTypeWithNamespace}')]

src/DesktopVirtualization/exports/Disconnect-AzWvdUserSession.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ param(
9696
[ValidateNotNull()]
9797
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Azure')]
9898
[System.Management.Automation.PSObject]
99-
# The credentials, account, tenant, and subscription used for communication with Azure.
99+
# The DefaultProfile parameter is not functional.
100+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
100101
${DefaultProfile},
101102

102103
[Parameter(DontShow)]
@@ -154,7 +155,7 @@ begin {
154155
$parameterSet = $PSCmdlet.ParameterSetName
155156

156157
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
157-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
158+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
158159
}
159160
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
160161
if ($preTelemetryId -eq '') {

src/DesktopVirtualization/exports/Expand-AzWvdMsixImage.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ param(
110110
[ValidateNotNull()]
111111
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Azure')]
112112
[System.Management.Automation.PSObject]
113-
# The credentials, account, tenant, and subscription used for communication with Azure.
113+
# The DefaultProfile parameter is not functional.
114+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
114115
${DefaultProfile},
115116

116117
[Parameter(DontShow)]
@@ -162,7 +163,7 @@ begin {
162163
$parameterSet = $PSCmdlet.ParameterSetName
163164

164165
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
165-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
166+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
166167
}
167168
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
168169
if ($preTelemetryId -eq '') {

src/DesktopVirtualization/exports/Get-AzWvdApplication.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ param(
9696
[ValidateNotNull()]
9797
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Azure')]
9898
[System.Management.Automation.PSObject]
99-
# The credentials, account, tenant, and subscription used for communication with Azure.
99+
# The DefaultProfile parameter is not functional.
100+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
100101
${DefaultProfile},
101102

102103
[Parameter(DontShow)]
@@ -148,7 +149,7 @@ begin {
148149
$parameterSet = $PSCmdlet.ParameterSetName
149150

150151
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
151-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
152+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
152153
}
153154
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
154155
if ($preTelemetryId -eq '') {

src/DesktopVirtualization/exports/Get-AzWvdApplicationGroup.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ param(
9797
[ValidateNotNull()]
9898
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Category('Azure')]
9999
[System.Management.Automation.PSObject]
100-
# The credentials, account, tenant, and subscription used for communication with Azure.
100+
# The DefaultProfile parameter is not functional.
101+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
101102
${DefaultProfile},
102103

103104
[Parameter(DontShow)]
@@ -149,7 +150,7 @@ begin {
149150
$parameterSet = $PSCmdlet.ParameterSetName
150151

151152
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
152-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
153+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
153154
}
154155
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
155156
if ($preTelemetryId -eq '') {

0 commit comments

Comments
 (0)