In this exercise, attendees will create a host pool for an Azure Virtual Desktop environment through the Azure portal. This method provides a browser-based user interface to create a host pool in Azure Virtual Desktop, create a resource group with VMs in an Azure subscription, join those VMs to either an Active Directory (AD) domain or Azure Active Directory (Azure AD) tenant, and register the VMs with Azure Virtual Desktop.
Exercise 1 – Create a host pool
To start creating your new host pool: Sign in to the Azure portal at https://portal.azure.com. [!NOTE] If you're signing in to the US Gov portal, go to https://portal.azure.us/ instead. If you're accessing the Azure China portal, go to https://portal.azure.cn/. Enter Azure Virtual Desktop into the search bar, then find and select Azure Virtual Desktop under Services. In the Azure Virtual Desktop overview page, select Create a host pool. In the Basics tab, select the correct subscription under Project details. Either select Create new to make a new resource group or select an existing resource group from the drop-down menu. Enter a unique name for your host pool. In the Location field, select the region where you want to create the host pool from the drop-down menu. The Azure geography associated with the regions you selected is where the metadata for this host pool and its related objects will be stored. Make sure you choose the regions inside the geography you want the service metadata to be stored in. [!NOTE] If you want to create your host pool in a supported region outside the US, you'll need to re-register the resource provider. After re-registering, you should see the other regions in the drop-down for selecting the location. Learn how to re-register at our Host pool creation troubleshooting article. Under Host pool type, select whether your host pool will be Personal or Pooled. If you choose Pooled, enter the following information: For Max session limit, enter the maximum number of users you want load-balanced to a single session host. For Load balancing algorithm, choose either breadth-first or depth-first, based on your usage pattern. Learn more about what each of these options means at Host pool load-balancing methods. Select Next: Virtual Machines >. If you've already created virtual machines and want to use them with the new host pool, select No, select Next: Workspace > and jump to the Workspace information section. If you want to create new virtual machines and register them to the new host pool, select Yes. Now that you've created a host pool, let's move on to the next part of the setup process where we create the VM. Now that we're through the first part, you'll have to set up your VM. To set up your virtual machine within the Azure portal host pool setup process: Under Resource group, choose the resource group where you want to create the virtual machines. This can be a different resource group than the one you used for the host pool. After that, provide a Name prefix to name the virtual machines the setup process creates. The suffix will be Choose the Virtual machine location where you want to create the virtual machines. They can be the same or different from the region you selected for the host pool. Keep in mind that VM prices vary by region, and the VM locations should be near their users when possible to maximize performance. Learn more at Data locations for Azure Virtual Desktop. Next, choose the availability option that best suit your needs. To learn more about which option is right for you, see Availability options for virtual machines in Azure and our FAQ. Next, choose the security type that you would like to use for your virtual machines. You can choose either Standard or Trusted Launch virtual machines. To learn more about Trusted Launch virtual machines, see Trusted Launch for Azure virtual machines. If Trusted Launch virtual machines is selected, choose which Trusted Launch security features you would like to enable. Next, choose the image that needs to be used to create the virtual machine. You can choose either Gallery or Storage blob. If you choose Gallery, select one of the recommended images from the drop-down menu: If you don't see the image you want, select See all images, which lets you select either another image in your gallery or an image provided by Microsoft and other publishers. Make sure that the image you choose is one of the supported OS images. You can also go to My Items and choose a custom image you've already uploaded. If you choose Storage Blob, you can use your own image build through Hyper-V or on an Azure VM. All you have to do is enter the location of the image in the storage blob as a URI. The image's location is independent of the availability option, but the image’s zone resiliency determines whether that image can be used with availability zone. If you select an availability zone while creating your image, make sure you're using an image from the gallery with zone resiliency enabled. To learn more about which zone resiliency option you should use, see the FAQ. After that, choose the Virtual machine size you want to use. You can either keep the default size as-is or select Change size to change the size. If you select Change size, in the window that appears, choose the size of the virtual machine suitable for your workload. To learn more about virtual machine sizes and which size you should choose, see Virtual machine sizing guidelines. Under Number of VMs, provide the number of VMs you want to create for your host pool. [!NOTE] The setup process can create up to 400 VMs while setting up your host pool, and each VM setup process creates four objects in your resource group. Since the creation process doesn't check your subscription quota, make sure the number of VMs you enter is within the Azure VM and API limits for your resource group and subscription. You can add more VMs after you finish creating your host pool. Choose what kind of OS disks you want your VMs to use: Standard SSD, Premium SSD, or Standard HDD. Under Network and security, select the Virtual network and Subnet where you want to put the virtual machines you create. Make sure the virtual network can connect to the domain controller, since you'll need to join the virtual machines inside the virtual network to the domain. The DNS servers of the virtual network you selected should be configured to use the IP of the domain controller. Select what kind of security group you want: Basic, Advanced, or None. If you select Basic, you'll have to select whether you want any inbound port open. If you select Yes, choose from the list of standard ports to allow inbound connections to. [!NOTE] For greater security, we recommend that you don't open public inbound ports. If you choose Advanced, select an existing network security group that you've already configured. After that, select whether you want the virtual machines to be joined to Active Directory or Azure Active Directory (Preview). For Active Directory, provide an account to join the domain and choose if you want to join a specific domain and organizational unit. For the AD domain join UPN, enter the credentials for the Active Directory Domain admin of the virtual network you selected. The account you use can't have multifactor authentication (MFA) enabled. When joining to an Azure Active Directory Domain Services (Azure AD DS) domain, the account you use must be part of the Azure AD DC Administrators group and the account password must work in Azure AD DS. To specify a domain, select Yes, then enter the name of the domain you want to join. If you want, you can also add a specific organizational unit you want the virtual machines to be in by entering the full path (Distinguished Name) and without quotation marks. If you don't want to specify a domain, select No. The VMs will automatically join the domain that matches the suffix of the AD domain join UPN. For Azure Active Directory, you can select Enroll the VM with Intune to automatically make the VM available for management after it's deployed. Under Virtual Machine Administrator account, enter the credentials for the local admin account to be added while creating the VM. You can use this account for management purposes in both AD and Azure AD-joined VMs. Under Post update custom configuration, you can enter the location of an Azure Resource Manager template to perform custom configurations on your session hosts after you create them. You'll need to enter the URLs for both the Azure Resource Manager template file and the Azure Resource Manager template parameter file. [!NOTE] Azure Virtual Desktop doesn't support provisioning Azure resources in the template. Select Next: Workspace >. With that, we're ready to start the next phase of setting up your host pool: registering your app group to a workspace. The host pool setup process creates a desktop application group by default. For the host pool to work as intended, you'll need to publish this app group to users or user groups, and you must register the app group to a workspace. [!NOTE] If you're an app developer trying to publish your organization’s apps, you can dynamically attach MSIX apps to user sessions or add your app packages to a custom VM image. See How to serve your custom app with Azure Virtual Desktop for more information. To register the desktop app group to a workspace: Select Yes. If you select No, you can register the app group later, but we recommend you get the workspace registration done as soon as you can so your host pool works properly. Next, choose whether you want to create a new workspace or select from existing workspaces. Only workspaces created in the same location as the host pool will be allowed to register the app group to. Optionally, you can select Next: Tags >. Here you can add tags so you can group the objects with metadata to make things easier for your admins. When you're done, select Review + create. [!NOTE] The review + create validation process doesn't check if your password meets security standards or if your architecture is correct, so you'll need to check for any problems with either of those things yourself. Review the information about your deployment to make sure everything looks correct. When you're done, select Create. Use the az desktopvirtualization workspace create command to create the new workspace: This starts the deployment process, which creates the following objects: After that, you're all done! If you'd rather use an automated process, download our Azure Resource Manager template to provision your new host pool instead. [!NOTE] If you're using an automated process to build your environment, you'll need the latest version of the configuration JSON file. You can find the JSON file here. Now that you've made your host pool, you can populate it with RemoteApp programs. To learn more about how to manage apps in Azure Virtual Desktop, head to our next tutorial:
[!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. The default app group created for a new Azure Virtual Desktop host pool also publishes the full desktop. In addition, you can create one or more RemoteApp application groups for the host pool. Follow this tutorial to create a RemoteApp app group and publish individual Start menu apps. [!NOTE] You can dynamically attach MSIX apps to user sessions or add your app packages to a custom virtual machine (VM) image to publish your organization's apps. Learn more at How to host custom apps with Azure Virtual Desktop. In this tutorial, learn how to: [!div class=”checklist”] If you've already created a host pool and session host VMs using the Azure portal or PowerShell, you can add application groups from the Azure portal with the following process: Sign in to the Azure portal. [!NOTE] If you're signing in to the US Gov portal, go to https://portal.azure.us/ instead. If you're accessing the Azure China portal, go to https://portal.azure.cn/. Search for and select Azure Virtual Desktop. You can add an application group directly or you can add it from an existing host pool. Choose an option below: Select Application groups in the menu on the left side of the page, then select + Add. Select Host pools in the menu on the left side of the screen, select the name of the host pool, select Application groups from the menu on the left side, then select + Add. In this case, the host pool will already be selected on the Basics tab. On the Basics tab, select the Subscription and Resource group you want to create the app group for. You can also choose to create a new resource group instead of selecting an existing one. Select the Host pool that will be associated with the application group from the drop-down menu. [!NOTE] You must select the host pool associated with the application group. App groups have apps or desktops that are served from a session host and session hosts are part of host pools. The app group needs to be associated with a host pool during creation. Select RemoteApp under Application group type, then enter a name for your RemoteApp. Select Next: Assignments > tab. To assign individual users or user groups to the app group, select +Add Azure AD users or user groups. Select the users you want to have access to the apps. You can select single or multiple users and user groups. Select Select. Select Next: Applications >, then select +Add applications. To add an application from the start menu: In Display name, enter the name for the application that will be shown to the user on their client. Leave the other options as-is and select Save. To add an application from a specific file path: Under Application source, select File path from the drop-down menu. In Application path, enter the path to the application on the session host registered with the associated host pool. Enter the application's details in the Application name, Display name, Icon path, and Icon index fields. Select Save. Repeat this process for every application you want to add to the application group. Next, select Next: Workspace >. If you want to register the app group to a workspace, select Yes for Register application group. If you'd rather register the app group at a later time, select No. If you select Yes, you can select an existing workspace to register your app group to. [!NOTE] You can only register the app group to workspaces created in the same location as the host pool. Also. if you've previously registered another app group from the same host pool as your new app group to a workspace, it will be selected and you can't edit it. All app groups from a host pool must be registered to the same workspace. Optionally, if you want to create tags to make your workspace easy to organize, select Next: Tags > and enter your tag names. When you're done, select Review + create. Wait a bit for the validation process to complete. When it's done, select Create to deploy your app group. The deployment process will do the following things for you: [!IMPORTANT] You can only create 500 application groups for each Azure Active Directory tenant. We added this limit because of service limitations for retrieving feeds for our users. This limit doesn't apply to app groups created in Azure Virtual Desktop (classic). To edit or remove an app from an app group: Sign in to the Azure portal. [!NOTE] If you're signing in to the US Gov portal, go to https://portal.azure.us/ instead. Search for and select Azure Virtual Desktop. You can either add an application group directly or from an existing host pool by choosing one of the following options: Select Applications in the menu on the left side of the page. If you want to remove an application, select the check box next to the application, then select Remove from the menu on the top of the page. If you want to edit the details of an application, select the application name. This will open up the editing menu. When you're done making changes, select Save.
[!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. The web client lets you access your Azure Virtual Desktop resources from a web browser without the lengthy installation process. [!NOTE] The web client doesn't currently have mobile OS support. [!IMPORTANT] As of September 30, 2021, the Azure Virtual Desktop web client no longer supports Internet Explorer. We recommend that you use Microsoft Edge to connect to the web client instead. For more information, see our blog post. While any HTML5-capable browser should work, we officially support the following operating systems and browsers: In a browser, navigate to the Azure Resource Manager-integrated version of the Azure Virtual Desktop web client at https://rdweb.wvd.microsoft.com/arm/webclient and sign in with your user account. [!NOTE] If you're using Azure Virtual Desktop (classic) without Azure Resource Manager integration, connect to your resources at https://rdweb.wvd.microsoft.com/webclient instead. If you're using the US Gov portal, use https://rdweb.wvd.azure.us/arm/webclient/index.html. To connect to the Azure China portal, use https://rdweb.wvd.azure.cn/arm/webclient/index.html. [!NOTE] If you've already signed in with a different Azure Active Directory account than the one you want to use for Azure Virtual Desktop, you should either sign out or use a private browser window. After signing in, you should now see a list of resources. You can launch resources by selecting them like you would a normal app in the All Resources tab.
[!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. The web client lets you access your Azure Virtual Desktop resources from a web browser without the lengthy installation process.
Task 1 – Begin the host pool setup process
Task 2 – Virtual machine details
-
with numbers starting from 0.
Task 3 – Workspace information
Azure CLI
az desktopvirtualization workspace create --name "MyWorkspace" \
--resource-group "MyResourceGroup" \
--location "MyLocation" \
--tags tag1="value1" tag2="value2" \
--friendly-name "Friendly name of this workspace" \
--description "Description of this workspace"
Run the Azure Resource Manager template to provision a new host pool
Next steps
Exercise 2 – Manage app groups
Task 1 – Create a RemoteApp group
Task 2 – Edit or remove an app (optional)
Next steps
Exercise 3 – Lets connect to Azure Virtual Desktop with the web client
Task 1 – Connect to Azure Virtual Desktop with the web client
Supported operating systems and browsers
Browser
Supported OS
Notes
Microsoft Edge
Windows, macOS, Linux, Chrome OS
Version 79 or later
Apple Safari
macOS
Version 11 or later
Mozilla Firefox
Windows, macOS, Linux
Version 55 or later
Google Chrome
Windows, macOS, Linux, Chrome OS
Version 57 or later
Access remote resources feed
Task 2 – Customize the link for the web client