Configure personal desktop assignment in Azure Virtual Desktop - Azure (2024)

  • Article

Important

This content applies to Azure Virtual Desktop with Azure Resource Manager Azure Virtual Desktop objects. If you're using Azure Virtual Desktop (classic) without Azure Resource Manager objects, see this article.

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. This host pool type is ideal for customers with resource-intensive workloads because user experience and session performance will improve if there's only one session on the session host. Another benefit of this host pool type is that user activities, files, and settings persist on the virtual machine operating system (VM OS) disk after the user signs out.

Users must be assigned to a personal desktop to start their session. You can configure the assignment type of your personal desktop host pool to adjust your Azure Virtual Desktop environment to better suit your needs. In this topic, we'll show you how to configure automatic or direct assignment for your users.

Note

The instructions in this article only apply to personal desktop host pools, not pooled host pools, since users in pooled host pools aren't assigned to specific session hosts.

Prerequisites

If you're using either the Azure portal or PowerShell method, you'll need the following things:

  • A personal host pool with at least one session host.
  • An Azure account assigned the Desktop Virtualization Contributor role.
  • 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.

If you're assigning desktops with PowerShell, you'll need to download and install the Azure Virtual Desktop PowerShell module if you haven't already.

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 in their feed. When an assigned user launches the desktop in their feed, their user session will be load-balanced to an available session host if they haven't already connected to the host pool. You can still assign a user directly to a session host before they connect, even if the assignment type is set automatic.

  • Azure portal
  • PowerShell
  • Azure CLI

To configure automatic assignment in the Azure portal:

  1. Sign in to the Azure portal.

  2. In the search bar, enter Azure Virtual Desktop and select the matching service entry.

  3. Select Host pools, then select the personal host pool you want to configure automatic assignment.

  4. Next, select Properties, then go to the Assignment drop-down menu and select Automatic.

  5. 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 won't be able to access resources and will see an error message that says No resources available.

  • Azure portal
  • PowerShell
  • Azure CLI

To configure direct assignment in the Azure portal:

  1. Sign in to the Azure portal.

  2. In the search bar, type Azure Virtual Desktop and select the matching service entry.

  3. Select Host pools, then select the personal host pool you want to configure automatic assignment.

  4. Next, select Properties, then go to the Assignment drop-down menu and select Direct.

  5. Select Save.

Directly assign users to session hosts

Here's how to directly assign users to session hosts using the Azure portal or PowerShell. You can't assign users to session hosts using Azure CLI.

  • Azure portal
  • PowerShell

To directly assign a user to a session host in the Azure portal:

  1. Sign in to the Azure portal.

  2. Enter Azure Virtual Desktop into the search bar.

  3. Under Services, select Azure Virtual Desktop.

  4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select Host pools.

  5. Select the host pool you want to assign users to.

  6. Next, go to the menu on the left side of the window and select Application groups.

  7. 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.

  8. Select + Add, then select the users or user groups you want to assign to this app group.

  9. Select Assign VM in the Information bar to assign a session host to a user.

  10. Select the session host you want to assign to the user, then select Assign. You can also select Assignment > Assign user.

  11. Select the user you want to assign the session host to from the list of available users.

  12. When you're done, select Select.

Unassign a personal desktop

Here's how to unassign a personal desktop using the Azure portal or PowerShell. You can't unassign a personal desktop using Azure CLI.

  • Azure portal
  • PowerShell

To unassign a personal desktop in the Azure portal:

  1. Sign in to the Azure portal.

  2. Enter Azure Virtual Desktop into the search bar.

  3. Under Services, select Azure Virtual Desktop.

  4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select Host pools.

  5. Select the host pool you want to modify user assignment for.

  6. Next, go to the menu on the left side of the window and select Session hosts.

  7. 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.

    Configure personal desktop assignment in Azure Virtual Desktop - Azure (1)

    Configure personal desktop assignment in Azure Virtual Desktop - Azure (2)

  8. Select Unassign when prompted with the warning.

Reassign a personal desktop

Here's how to reassign a personal desktop using the Azure portal or PowerShell. You can't reassign a personal desktop using Azure CLI.

  • Azure portal
  • PowerShell

To reassign a personal desktop in the Azure portal:

  1. Sign in to the Azure portal.

  2. Enter Azure Virtual Desktop into the search bar.

  3. Under Services, select Azure Virtual Desktop.

  4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select Host pools.

  5. Select the host pool you want to modify user assignment for.

  6. Next, go to the menu on the left side of the window and select Session hosts.

  7. 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.

    Configure personal desktop assignment in Azure Virtual Desktop - Azure (3)

    Configure personal desktop assignment in Azure Virtual Desktop - Azure (4)

  8. Select the user you want to assign the session host to from the list of available users.

  9. When you're done, select Select.

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.

  1. 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.

  2. 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
  3. 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

Next steps

Now that you've configured the personal desktop assignment type and given your session host a friendly name, you can sign in to an Azure Virtual Desktop client to test it as part of a user session. These articles will show you how to connect to a session using the client of your choice:

  • Connect with the Windows Desktop client
  • Connect with the web client
  • Connect with the Android client
  • Connect with the iOS client
  • Connect with the macOS client
Configure personal desktop assignment in Azure Virtual Desktop  - Azure (2024)

FAQs

Configure personal desktop assignment in Azure Virtual Desktop - Azure? ›

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.

What do you need to configure when you set up an Azure Virtual Desktop? ›

To deploy Azure Virtual Desktop you:
  1. Create a host pool.
  2. Create a workspace.
  3. Create an application group.
  4. Create session host virtual machines.
  5. Enable diagnostics settings (optional).
  6. Assign users or groups to the application group for users to get access to desktops and applications.
Apr 11, 2024

What is the difference between pooled and personal Azure Virtual Desktop? ›

A host pool can be one of two types: Personal, where each session host is assigned to an individual user. Personal host pools provide dedicated desktops to end-users that optimize environments for performance and data separation. Pooled, where user sessions can be load balanced to any session host in the host pool.

What are the three components of a role assignment in Microsoft Azure Virtual Desktop? ›

A role assignment has three components: security principal, role definition, and scope. The Azure Virtual Desktop delegated access model is based on the Azure RBAC model. To learn more about specific role assignments and their components, see the Azure role-based access control overview.

What are two requirements for user accounts that are trying to connect to Azure Virtual Desktop session hosts? ›

To join session hosts to Microsoft Entra ID or an Active Directory domain, you need the following permissions:
  • For Microsoft Entra ID, you need an account that can join computers to your tenant. ...
  • For an Active Directory domain, you need a domain account that can join computers to your domain.
Apr 17, 2024

What is required in order to configure Microsoft Azure virtual machine Backup? ›

To apply a backup policy to your Azure VMs, follow these steps:
  1. Go to Backup center and select +Backup from the Overview tab.
  2. On the Start: Configure Backup blade, select Azure Virtual machines as the Datasource type and select the vault you have created. Then select Continue.
  3. Assign a Backup policy.
Feb 26, 2024

How do you set up a virtual desktop? ›

To create a new desktop, click the Task View icon in the taskbar in Windows 10. By default, you will find it immediately to the right of the combined Search and Run box. Click on + New desktop at the top left to create an additional virtual desktop.

What is the difference between Azure Virtual Desktop and Remote Desktop Services? ›

In terms of user experience, both Azure Virtual Desktop and RDS offer remote access to desktops and applications. However, Azure Virtual Desktop provides users with the whole Windows 10 experience, while RDS does not support multi-session Windows 10.

What is the difference between Azure Virtual Desktop and Azure VM? ›

Purpose: Azure VMs provide infrastructure for hosting virtual machines, while Azure Virtual Desktop provides a virtual desktop experience for end users.

How to assign users to Azure Virtual Desktop? ›

Adding Users to Host Pools Natively in Azure Virtual Desktop

Select the Application Group that is associated with your Host Pool. On the next pop-up, select “Assignments” then select “Add” at the top left. From there you can add your individual users or user groups to that Host Pool.

What are the different types of role assignment in Azure? ›

Azure roles
Azure rolePermissions
OwnerGrants full access to manage all resources Assign roles in Azure RBAC
ContributorGrants full access to manage all resources Can't assign roles in Azure RBAC Can't manage assignments in Azure Blueprints or share image galleries
ReaderView Azure resources
2 more rows
Mar 15, 2024

What is the difference between assigned roles and Azure role assignment? ›

Assigned roles are Azure AD administrator roles, for accessing Azure AD and other Microsoft 365 platforms such as Exchange and SharePoint. Azure role assignments (may also be referred to as Azure RBAC roles) are for accessing Azure resources such as virtual machines, storage accounts, subscriptions, etc.

How do you assign a role to the Azure Virtual Desktop Service Principal? ›

Select Access control (IAM), then select + Add followed by Add role assignment. Select the role you want to assign to the Azure Virtual Desktop service principal, then select Next. Ensure Assign access to is set to Microsoft Entra user, group, or service principal, then select Select members.

How to connect to Azure Virtual Desktop Pool? ›

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 name of the host pool you want to add session hosts to. On the host pool overview, select Session hosts, then select + Add.

How many users can login to Azure VM? ›

Establish a remote connection using Remote Desktop Connection (RDP) for a Windows VM. For instructions, see How to connect and sign on to an Azure virtual machine running Windows. A maximum of two concurrent connections are supported, unless the server is configured as a Remote Desktop Services session host.

Can I create two Azure accounts? ›

Yes you can have multiple accounts. There is nothing against this in Azure's terms of service. https://samcogan.com/using-multiple-accounts-with-azure/ Just to clarify, if you are speaking specifically about the Azure Free account, you can only sign up for one of those.

How do I setup and configure a new virtual machine? ›

Make sure you get the virtual program from a trusted source — like a licensed retailer or the official VirtualBox website.
  1. Download the ISO. ...
  2. Open VirtualBox. ...
  3. Create a new virtual machine. ...
  4. Allocate resources. ...
  5. Create a virtual hard disk. ...
  6. Configure your VM settings. ...
  7. Install the guest OS.
Sep 13, 2023

What should you configure to allow remote desktop connections from the Internet to the virtual machines? ›

To configure a VM for RDP access
  • Create a published service for Windows RDP (port 3389) on the VM network adapter. This allows access to port 3389 on the VM over the public Internet through a separate, forwarded port. ...
  • Use an existing public IP or VPN connection.

Which role do you need to provision Azure Virtual Desktop? ›

You also need the Virtual Machine Contributor role to create virtual machines and the Desktop Virtualization Application Group Contributor and Desktop Virtualization Workspace Contributor roles to deploy Azure Virtual Desktop using the portal, or you can use the Desktop Virtualization Contributor role.

How do I configure Azure functions with a virtual network? ›

In your function app in the Azure portal, select Networking, then under VNet Integration select Click here to configure. Select Add VNet. The drop-down list contains all of the Azure Resource Manager virtual networks in your subscription in the same region. Select the virtual network you want to integrate with.

Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5871

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.