Create a host pool using the Azure portal
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.
- If you're using Cloud Shell, make sure your Azure context is set to the subscription you want to use.
- If you're using PowerShell locally, first Sign in with Azure PowerShell, then make sure your Azure context is set to the subscription you want to use.
- Use the New-AzWvdHostPool cmdlet with the following examples to create a host pool. More parameters are available; for more information, see the New-AzWvdHostPool PowerShell reference.
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 *