Create a host pool using the Azure portal

Completed

This unit describes how to create a host pool using the Az.DesktopVirtualization PowerShell module. The samples show you how to create a pooled host pool and a personal host pool.

You'll need to change the <placeholder> values for your own.

Launch the Azure Cloud Shell in the Azure portal with the PowerShell terminal type, or run PowerShell on your local device.

To create a pooled host pool using the breadth-firstload-balancing algorithm and Desktop as the preferred app group type, run the following command:

$parameters = @{
Name = '<Name>'
ResourceGroupName = '<ResourceGroupName>'
HostPoolType = 'Pooled'
LoadBalancerType = 'BreadthFirst'
PreferredAppGroupType = 'Desktop'
MaxSessionLimit = '<value>'
Location = '<AzureRegion>'
}

New-AzWvdHostPool @parameters

To create a personal host pool using the Automatic assignment type and Desktop as the preferred app group type, run the following command:

$parameters = @{
Name = '<Name>'
ResourceGroupName = '<ResourceGroupName>'
HostPoolType = 'Personal'
LoadBalancerType = 'Persistent'
PreferredAppGroupType = 'Desktop'
PersonalDesktopAssignmentType = 'Automatic'
Location = '<AzureRegion>'
}

New-AzWvdHostPool @parameters

You can view the properties of your new host pool by running the following command:

Get-AzWvdHostPool -Name <Name> -ResourceGroupName <ResourceGroupName> | FL *