Custom image templates (Azure Virtual Desktop)
Concept
Azure Virtual Desktop feature built on Azure Image Builder that builds a custom session host image from a JSON template with built-in or custom scripts. The image is generalized with sysprep and can be stored in Azure Compute Gallery.
Relationships
Custom image templates (Azure Virtual Desktop) falls under the broader topic Golden image. Custom image templates (Azure Virtual Desktop) is closely related to Azure Virtual Desktop, Azure Image Builder, Azure Compute Gallery and FSLogix.
Description
Custom image templates in Azure Virtual Desktop create a custom image for session host VMs, so that the configuration of the hosts can be standardized. They are built on Azure Image Builder and tailored for Azure Virtual Desktop. Creating an image has two parts: a template defines what the image should contain, and the build then submits the template to Azure Image Builder. The template is a JSON file with the source image, the distribution targets, build properties and customizations. The source can come from Azure Marketplace, an Azure Compute Gallery shared image, a managed image or an existing custom image template.
Azure Image Builder also generalizes the image with sysprep. The result can be stored in Azure Compute Gallery, as a managed image, or both. Compute Gallery handles region replication, versioning and sharing. The image is then used as the source image when creating or updating a host pool. Built-in scripts cover common settings such as language packs, time zone redirection, FSLogix installation with Profile Container configuration, RDP Shortpath for managed networks, Teams optimizations, session timeouts, Office applications and Windows Updates. Custom scripts are also possible if they are hosted at a publicly available location. The build needs a specified duration that leaves enough time for all scripts.
While the image is built and distributed, Azure Image Builder uses a user-assigned managed identity to create resources in the subscription. A resource group is created when the template is created; by default it is named after the pattern IT, resource group name, template name and a GUID. It holds the resources required for the build, most of them temporary and deleted afterwards, such as the build VM and a Key Vault. The exception is a storage account with up to three containers: shell for customization scripts, packerlogs for the Packer output and vhds, which holds the resulting VHD only temporarily before it is stored as a managed image or in Azure Compute Gallery. The build VM needs internet access to download scripts, and without an existing virtual network a temporary network and public IP address are created.
| Type | Concept |
|---|---|
| Kind | Feature |
| Documentation | Custom image templates (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com |
Related topics in brief
Topics linked to Custom image templates (Azure Virtual Desktop), each briefly explained:
- Golden image – Concept · Broader topic
A custom, preconfigured virtual machine image that bundles the operating system, updates, applications and customizations and is captured as the template for deploying virtual desktops or session hosts; it has to be maintained and updated over time. - Azure Virtual Desktop – Cloud platform by Microsoft · Related to
Cloud-hosted desktop and app virtualisation service on Azure, extendable to hybrid and other hypervisors. - Azure Image Builder – Part of Microsoft Azure · Related to
Azure Image Builder is an Azure service that creates customized virtual machine images from a set of instructions you define, using HashiCorp Packer behind the scenes. - Azure Compute Gallery – Part of Microsoft Azure · Related to
Azure Compute Gallery is a library for approved virtual machine images that organizes image definitions and versions and can replicate image versions to the Azure regions where they are used. - FSLogix – Product · Related to
Microsoft profile technology that stores Windows user profiles in containers (virtual disks) and attaches them at sign-in, giving users a consistent profile across session hosts in virtual desktop environments.
All relationships of Custom image templates (Azure Virtual Desktop), grouped by type of relationship:
Broader topic
Broader topics of Custom image templates (Azure Virtual Desktop):
Related to
All 4 topics related to Custom image templates (Azure Virtual Desktop):
Community wiki
Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.
Experts and companies for this topic
Nobody has listed this topic yet. Add it to your profile.
Experts on related topics
Experts on topics related to Custom image templates (Azure Virtual Desktop), each with the topic that connects them:
- Mirko Peters · via Azure Virtual Desktop
Sources
- Custom image templates (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com
Maintained by Mirko Peters (Microsoft MVP) · Last updated: