An Azure Virtual Desktop template is a virtual machine from which other virtual machines are created as clones of the original VM and added to a host pool as session hosts.
To manage Azure Virtual Desktop templates, navigate to Farm > Site > Azure Virtual Desktop and select the Templates tab.
When you create a host pool and set its provisioning type as Template, you need to assign an existing template to it. This can be done when you create or modify a host pool, or you can assign a template to a host pool on the Templates tab.
To assign a template to a host pool:
Select a template and click Tasks > Assign to host pool.
Click Tasks > Assign to pool. A wizard opens.
On the Versions page, select the template version that will be assigned to the host pool.
(Optional) On the Host pool page, select the host pools that you want to recreate on schedule and click the Configure button. You will see a dialog that allows you to schedule recreation. Configure the schedule according to your needs and click Next.
Click Finish.
To remove a template from a host pool:
Select a template and click Tasks > Remove from host pool.
The Remove from Host Pool dialog opens listing all host pools using the selected template.
Select one or more host pools to remove the template from and click OK.
Note that if a host pool has hosts, they will be removed. You will see a message and need to confirm the removal.
If one or more host pools are being locked by another administrator, you will also see a message and will have to repeat the operation later when a pool is unlocked.
To modify an existing template, right-click it and choose Properties. Some properties cannot be modified, while many can. For the description of individual properties and settings, please refer to instructions in Create a template.
To delete a template, select it in the list and click Tasks > Delete. Note that at the time of this writing, there's a known issue that if a template is deleted in the RAS Console, the template and associated hosts may not be completely removed from Microsoft Azure. To make sure that all such objects are removed, it is recommended to do it from the Azure portal.
To create a template:
On the Templates tab, click Tasks > Add. This opens the Create Parallels Template Wizard.
On the first page, select an Azure Virtual Desktop provider (if you have more than one).
Select a template type from the following:
Multi-session: Multiple concurrent user sessions are allowed on a single host running a Windows Server operating system, Windows 10 or Windows 11 Enterprise multi-session.
Single-session: A single user session is allowed on a single session host.
On the Template Source page, select a source from the following:
Custom host: Displays a list of existing virtual machines.
Azure Gallery: Allows you to select an image and create a new virtual machine from it. Depending on the template type, multi-session or single-session, commonly used marketplace images such as Windows 10 Enterprise multi-session, are predefined to be easily chosen and created as a template. Select a location and specify the local administrator username and password. The Browse all images button opens a dialog where you can choose any other image from the Marketplace or Shared Image Gallery. When choosing an image from the Shared Image Gallery, select from a list of publishers, SKUs, offers, and other options.
On the Hosts page, select virtual machine properties from the predefine Azure values according to your needs:
First, specify an Azure resource group.
Select a virtual machine size.
Note: The virtual machine size can be overridden in the settings of the host pool using a given template. This gives you the ability to specify a different VM size at the host pool level.
Select a disk type.
Select a virtual network and subnet.
Note: In case using Accelerated networking for the Template, make sure you select the appropriate host size for session hosts that support accelerated networking.
On the General page, specify the following settings:
Template name: The name of the template.
Create an availability set: If selected, hosts will be deployed from the template in an availability set. Note that the maximum number of hosts that can be deployed in an availability set is 200 (this is an Azure limitation). If you require more than 200 hosts, clear this option and specify your own value in the Maximum number of hosts field.
On the Preparation page, select an image preparation and specify the required options. This is similar to how an image is prepared for a RAS VDI template. There are some minor differences, but the configuration procedure is essentially the same. For details, please see Preparation.
On the Optimization page, configure optimization settings. These settings are inherited from Site defaults but custom settings can be specified if needed. For details, please see Site defaults (Azure Virtual Desktop).
On the New template version page, specify the name and description and select the tags for the version. You can select several tags.
On the Summary page, review the settings and click Finish to create the template.