Tutorial: Create a host pool by using the Azure Marketplace
Host pools are a collection of one or more identical virtual machines within Windows Virtual Desktop Preview tenant environments. Each host pool can contain an app group that users can interact with as they would on a physical desktop.
This tutorial describes how to create a host pool within a Windows Virtual Desktop tenant by using a Microsoft Azure Marketplace offering. The tasks include:
- Create a host pool in Windows Virtual Desktop.
- Create a resource group with VMs in an Azure subscription.
- Join the VMs to the Active Directory domain.
- Register the VMs with Windows Virtual Desktop.
Before you begin, download and import the Windows Virtual Desktop PowerShell module to use in your PowerShell session if you haven't already.
Sign in to Azure
Sign in to the Azure portal.
Run the Azure Marketplace offering to provision a new host pool
To run the Azure Marketplace offering to provision a new host pool:
- Select + or + Create a resource.
- Enter Windows Virtual Desktop in the Marketplace search window.
- Select Windows Virtual Desktop - Provision a host pool, and then select Create.
Follow the guidance to enter the information for the appropriate blades.
Here's what you do for the Basics blade:
- Enter a name for the host pool that’s unique within the Windows Virtual Desktop tenant.
- Select the appropriate option for a personal desktop. If you select Yes, each user that connects to this host pool will be permanently assigned to a virtual machine.
- Enter a comma-separated list of users who can sign in to the Windows Virtual Desktop clients and access a desktop after the Azure Marketplace offering finishes. For example, if you want to assign firstname.lastname@example.org and email@example.com access, enter "firstname.lastname@example.org,email@example.com."
- Select Create new and provide a name for the new resource group.
- For Location, select the same location as the virtual network that has connectivity to the Active Directory server.
- Select OK.
Configure virtual machines
For the Configure virtual machines blade:
- Either accept the defaults or customize the number and size of the VMs.
- Enter a prefix for the names of the virtual machines. For example, if you enter the name "prefix," the virtual machines will be called "prefix-0," "prefix-1," and so on.
- Select OK.
Virtual machine settings
For the Virtual machine settings blade:
If you're joining your VMs to an Azure Active Directory Domain Services (Azure AD DS) environment, ensure that your domain join user is also a member of the AAD DC Administrators group.
- For Image source, select the source and enter the appropriate information for how to find it and how to store it. If you choose not to use managed disks, select the storage account that contains the .vhd file.
- Enter the user principal name and password for the domain account that will join the VMs to the Active Directory domain. This same username and password will be created on the virtual machines as a local account. You can reset these local accounts later.
- Select the virtual network that has connectivity to the Active Directory server, and then choose a subnet to host the virtual machines.
- Select OK.
Windows Virtual Desktop Preview tenant information
For the Windows Virtual Desktop tenant information blade:
- For Windows Virtual Desktop tenant group name, enter the name for the tenant group that contains your tenant. Leave it as the default unless you were provided a specific tenant group name.
- For Windows Virtual Desktop tenant name, enter the name of the tenant where you'll be creating this host pool.
- Specify the type of credentials that you want to use to authenticate as the Windows Virtual Desktop tenant RDS Owner. If you completed the Create service principals and role assignments with PowerShell tutorial, select Service principal. When Azure AD tenant ID appears, enter the ID for the Azure Active Directory instance that contains the service principal.
- Enter the credentials for the tenant admin account. Only service principals with a password credential are supported.
- Select OK.
Complete setup and create the virtual machine
For the last two blades:
- On the Summary blade, review the setup information. If you need to change something, go back to the appropriate blade and make your change before continuing. If the information looks right, select OK.
- On the Buy blade, review the additional information about your purchase from the Azure Marketplace.
- Select Create to deploy your host pool.
Depending on how many VMs you’re creating, this process can take 30 minutes or more to complete.
(Optional) Assign additional users to the desktop application group
After the Azure Marketplace offering finishes, you can assign more users to the desktop application group before you start testing the full session desktops on your virtual machines. If you've already added default users in the Azure Marketplace offering and don't want to add more, you can skip this section.
To assign users to the desktop application group, you must first open a PowerShell window. After that, you'll need to enter the following two cmdlets.
Run the following cmdlet to sign in to the Windows Virtual Desktop environment:
Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
Add users to the desktop application group by using this cmdlet:
Add-RdsAppGroupUser <tenantname> <hostpoolname> "Desktop Application Group" -UserPrincipalName <userupn>
The user’s UPN should match the user’s identity in Azure Active Directory (for example, firstname.lastname@example.org). If you want to add multiple users, you must run this cmdlet for each user.
After you've completed these steps, users added to the desktop application group can sign in to Windows Virtual Desktop with supported Remote Desktop clients and see a resource for a session desktop.
Here are the current supported clients:
To help secure your Windows Virtual Desktop environment in Azure, we recommend you don't open inbound port 3389 on your VMs. Windows Virtual Desktop doesn't require an open inbound port 3389 for users to access the host pool's VMs. If you must open port 3389 for troubleshooting purposes, we recommend you use just-in-time VM access.
Now that you've made a host pool and assigned users to access its desktop, you can populate your host pool with RemoteApp programs. To learn more about how to manage apps in Windows Virtual Desktop, see this tutorial: