Configure personal desktop assignment
A personal host pool is a type of host pool that has personal desktops. Personal desktops have one-to-one mapping, which means a single user can only be assigned to a single personal desktop. Every time the user signs in, their user session is directed to their assigned personal desktop session host.
Personal desktops are ideal for users with resource-intensive workloads because user experience and session performance improves if there's only one session on the session host. Another benefit of this host pool type is that user activities, files, and settings can persist on the virtual machine operating system (VM OS) disk after the user signs out because it's only for them.
Users can automatically be assigned to any previously unassigned personal desktop in the host pool when they connect. Alternatively, you can assign users to a specific personal desktop before they connect.
This article shows you how to configure personal desktop assignment in Azure Virtual Desktop. You can configure personal desktop assignment using the Azure portal, Azure PowerShell, or Azure CLI.
Note
The instructions in this article only apply to personal host pools, not pooled host pools, since users in pooled host pools aren't assigned to specific session hosts.
Prerequisites
To configure personal desktop assignment, you need to meet the following prerequisites:
A personal host pool with at least one session host.
An Azure account assigned the Desktop Virtualization Contributor role or equivalent.
If you want to use Azure CLI or Azure PowerShell locally, see Use Azure CLI and Azure PowerShell with Azure Virtual Desktop to make sure you have the desktopvirtualization Azure CLI extension or the Az.DesktopVirtualization PowerShell module installed. Alternatively, use the Azure Cloud Shell.
For assigning multiple personal desktops to a user, you need to use version 5.3.0-preview or later preview version of the Az.DesktopVirtualization PowerShell module. The non-preview version of the module doesn't contain the required values. You can download and install the Az.DesktopVirtualization PowerShell module from the PowerShell Gallery.
Configure automatic assignment
Automatic assignment assigns users a personal desktop the first time they connect. It's the default assignment type for new personal desktop host pools you create in your Azure Virtual Desktop environment. Automatically assigning users doesn't require a specific session host.
To automatically assign users, first assign them to the personal desktop host pool so that they can see the desktop on their local device. When an assigned user connects to that desktop for the first time, their user session is load-balanced to an available session host. You can still assign a user directly to a session host before they connect, even if the assignment type is set automatic.
To configure automatic assignment in the Azure portal:
Sign in to the Azure portal.
In the search bar, enter Azure Virtual Desktop and select the matching service entry.
Select Host pools, then select the personal host pool you want to configure automatic assignment.
Next, select Properties, then go to the Assignment drop-down menu and select Automatic.
Select Save.
Configure direct assignment
Unlike automatic assignment, when you use direct assignment, you assign a specific personal desktop to a user first. You must assign the user to both the personal desktop host pool and a specific session host before they can connect to their personal desktop. If the user is only assigned to a host pool without a session host assignment, they aren't able to access resources and see an error message that says No resources available.
To configure direct assignment in the Azure portal:
Sign in to the Azure portal.
In the search bar, type Azure Virtual Desktop and select the matching service entry.
Select Host pools, then select the personal host pool you want to configure automatic assignment.
Next, select Properties, then go to the Assignment drop-down menu and select Direct.
Select Save.
Directly assign users to session hosts
Here's how to directly assign users to session hosts using the Azure portal or Azure PowerShell. You can't assign users to session hosts using Azure CLI.
To directly assign a user to a session host in the Azure portal:
Sign in to the Azure portal.
Enter Azure Virtual Desktop into the search bar.
Under Services, select Azure Virtual Desktop.
At the Azure Virtual Desktop overview page, go the menu on the left side of the window and select Host pools.
Select the host pool you want to assign users to.
Next, go to the menu on the left side of the window and select Application groups.
Select the name of the app group you want to assign users to, then select Assignments in the menu on the left side of the window.
Select + Add, then select the users or user groups you want to assign to this app group.
Select Assign VM in the Information bar to assign a session host to a user.
Select the session host you want to assign to the user, then select Assign. You can also select Assignment > Assign user.
Select the user you want to assign the session host to from the list of available users.
When you're done, select Select.
Unassign a personal desktop
Here's how to unassign a personal desktop using the Azure portal or Azure PowerShell. You can't unassign a personal desktop using Azure CLI.
To unassign a personal desktop in the Azure portal:
Sign in to the Azure portal.
Enter Azure Virtual Desktop into the search bar.
Under Services, select Azure Virtual Desktop.
At the Azure Virtual Desktop overview page, go the menu on the left side of the window and select Host pools.
Select the host pool you want to modify user assignment for.
Next, go to the menu on the left side of the window and select Session hosts.
Select the checkbox next to the session host you want to unassign a user from, select the ellipses at the end of the row, and then select Unassign user. You can also select Assignment > Unassign user.
Select Unassign when prompted with the warning.
Reassign a personal desktop
Here's how to reassign a personal desktop using the Azure portal or Azure PowerShell. You can't reassign a personal desktop using Azure CLI.
To reassign a personal desktop in the Azure portal:
Sign in to the Azure portal.
Enter Azure Virtual Desktop into the search bar.
Under Services, select Azure Virtual Desktop.
At the Azure Virtual Desktop overview page, go the menu on the left side of the window and select Host pools.
Select the host pool you want to modify user assignment for.
Next, go to the menu on the left side of the window and select Session hosts.
Select the checkbox next to the session host you want to reassign to a different user, select the ellipses at the end of the row, and then select Assign to a different user. You can also select Assignment > Assign to a different user.
Select the user you want to assign the session host to from the list of available users.
When you're done, select Select.
Assign multiple personal desktops to a single user (preview)
Multiple personal desktop assignment allows you to assign more than one personal desktop to a single user in a single host pool. Multiple desktops are useful for users juggling diverse business roles, such as backend and frontend development or transitioning between testing and production environments. Previously, users were restricted to one personal desktop per host pool, meaning you needed to create multiple host pools for extra desktops. Multiple personal desktop assignment streamlines the process, eliminating the need for multiple host pools in this scenario, and simplifying user assignment management.
Important
This preview feature is only for personal host pools with direct assignment type. Pooled host pools aren't supported and personal host pools with automatic assignment type aren't supported.
If you're using FSLogix and have a single FSLogix profile container for a single host pool, be sure to allow concurrent connections to FSLogix profile containers to avoid errors.
You should Give session hosts in a personal host pool a friendly name so that your users can distinguish between the multiple personal desktops you assigned to them.
Once a host pool is enabled for multiple personal desktop assignment, it can't be disabled.
Assigning multiple personal desktops to a single user is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
Enable multiple personal desktop assignment
You can enable multiple personal desktop assignment when you create a personal host pool or configure an existing personal host pool. Here's how to enable multiple personal desktop assignment on an existing personal host pool. To learn how to create a personal host pool, see Create a host pool.
To enable multiple personal desktop assignment using the Azure portal:
Sign in to the Azure portal.
Enter Azure Virtual Desktop into the search bar.
Under Services, select Azure Virtual Desktop.
At the Azure Virtual Desktop overview page, go the menu on the left side of the window and select Host pools.
Select the existing host pool that you’d like to enable multiple personal desktop assignment on.
Under Settings, select Properties to view the host pool properties.
Ensure that Assignment type is set to Direct. If not, select Direct, then select Save. The assignment type must be Direct and saved before you continue. If you try to do both in a single step, you get an error message.
Check the box for Assign multiple desktops to a single user, then select Save.
Assign multiple personal desktops to a user
Here's how to assign multiple personal desktops to a user using the Azure portal or Azure PowerShell. You can't assign multiple personal desktops to a user using Azure CLI.
To assign a user to multiple personal desktops to a user in the Azure portal:
Sign in to the Azure portal.
Enter Azure Virtual Desktop into the search bar.
Under Services, select Azure Virtual Desktop.
At the Azure Virtual Desktop overview page, select Host pools.
Select the existing host pool that has session hosts you want to assign to a user.
Under Manage, select Session hosts to view the session hosts in the host pool.
Select the checkbox next to the session host that you want to assign to a user.
Select Assign in the Assigned User column or select Assignment from the toolbar and Assign user from the dropdown menu.
In the new pane, search for and select the user you want to assign. Select Assign.
Repeat steps 4-6 for each of session hosts that you want to assign the user to. There isn't a limit to the number of personal desktops you can assign to a user in a single host pool.
Give session hosts in a personal host pool a friendly name
You can give personal desktops you create friendly names to help users distinguish them in their feeds using PowerShell. The Azure portal or Azure CLI doesn't currently have a way to give session host friendly names.
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.
Run the following command in PowerShell to add or change a session host's friendly name:
$parameters = @{ HostPoolName = 'HostPoolName' Name = 'SessionHostName' ResourceGroupName = 'ResourceGroupName' FriendlyName = 'SessionHostFriendlyName' } Update-AzWvdSessionHost @parameters
To get the session host friendly name, run the following command in PowerShell:
$sessionHostParams = @{ HostPoolName = 'HostPoolName' Name = 'SessionHostName' ResourceGroupName = 'ResourceGroupName' } Get-AzWvdSessionHost @sessionHostParams | FL Name, AssignedUser, FriendlyName
Known issues
We're aware of the following issues with the preview of multiple personal desktop assignment:
When viewing the list host pools in the Azure portal, the load balancing type for host pools with multiple personal desktop assignment enabled is showing - instead of Multiple Persistent.
To enable multiple personal desktop assignment on existing personal host pool with the Automatic assignment type, you first need to change the assignment type to Direct and save the change, and then e multiple personal desktop assignment. These actions need to be done in separate steps. If you try to do both in a single step, you get an error message.