Skip to content

Commit a122a78

Browse files
authored
Merge pull request #4 from xoap-io/dev
Feat: Add AzPreferredAppGroupType as an parameter
2 parents a20bc45 + 34cf9a7 commit a122a78

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

azure-cli/avd/az-cli-update-avd-hostpool.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
.PARAMETER AzTags
3535
Defines the tags for the Azure Virtual Desktop Host Pool.
3636
37+
.PARAMETER AzPreferredAppGroupType
38+
Defines the preferred app group type for Azure Virtual Desktop Pool.
39+
3740
#>
3841
[CmdletBinding()]
3942
param(
@@ -42,7 +45,10 @@ param(
4245
[Parameter(Mandatory)]
4346
[string]$AzHostPoolName = "myHostPool",
4447
[Parameter(Mandatory)]
45-
[string]$AzTags = "myTags"
48+
[string]$AzTags = "myTags",
49+
[Parameter(Mandatory)]
50+
[ValidateSet('Desktop', 'None', 'RailApplications')]
51+
[string]$AzPreferredAppGroupType = "Desktop"
4652
)
4753

4854
#Set Error Action to Silently Continue
@@ -51,4 +57,5 @@ $ErrorActionPreference = "Stop"
5157
az desktopvirtualization hostpool update `
5258
--resource-group $AzResourceGroupName `
5359
--name $AzHostPoolName `
54-
--tags $AzTags
60+
--tags $AzTags `
61+
--preferred-app-group-type $AzPreferredAppGroupType

0 commit comments

Comments
 (0)