The Azure Virtual Desktop image building process is essential to understand for an AVD IT Pro. I cover AVD custom image creation-related steps & questions in this post. I had a bit of trouble getting Windows 10 Enterprise and multi-user custom version working with AVD host pool.
Related Post – AVD Troubleshooting Options Tips Tricks – Windows Virtual Desktop
Introduction
We were trying to build a master image for AVD. You can create a custom image with the Windows 10 Enterprise/multi-user template available in Azure.
Following are the Windows OS versions available apart from custom image options from the managed custom image and blob storage custom images.
- Windows 10 Enterprise multi-session with Office 365 ProPlus
- Windows 10 Enterprise Multi-Session
- Windows 10 Enterprise Version
- Windows Server 2016 Datacenter
- Windows Server 2019 Datacenter (Coming Soon?)
NOTE! – Windows 10 or Windows 11 Pro version is not supported to build an AVD custom image.
How to Create AVD Master Images
You have many options to create custom master images. You can use SCCM to create custom master images for AVD host pool. If you don’t have SCCM infra and SCCM master images, then you can Azure VM to build custom images.
The following are AVD master images using the automation mechanism:
- The Azure VM Image Builder (AIB) lets you start with a default Windows VM template or custom VM images in Azure to add your own customization.
- Another option of AVD custom image process is explained https://jrudlin.github.io/2019-09-02-windows-virtual-desktop-azure-devops-ci-cd-packer-build-and-release/
How Did I Create AVD Custom Image?
As part of manual testing, I started using the Azure OS template and created VM in Azure to test the master image.
- Login into the Azure portal.
- Create a new Azure Windows VM with win 10 Enterprise template.
- Run a Sysprep and shutdown.
- Click on capture button and create a managed image (Managed Image).
- Created a new AVD Host Pool using AVD ARM (Azure portal) template using the managed image.
Do We Need to Build Install RD Client & Boot Loader to AVD Custom Image?
The answer is NO, in case you are using the AVD ARM template (AVD Host Pool Creation Guide With New Template) to build Host Pools. Let’s see what makes AVD VM different from any other Azure Windows VM?
RD Agent and Boot Loader are the two agents that make any Azure Windows VM an AVD VM. And of-course registration token to join the AVD host pool.
- The current AVD ARM template installs the agent and boot loader.
- The current AVD ARM template for a new session host pool can use a custom image without agent and boot loader pre-installed.
- Installing the RD agent and the bootloader in the AVD master image is one option for custom images still does not solve the registration piece.
- Unless you use the following PS command to generate code registration code and use that code while installing RD agent:
- New-RdsRegistrationInfo -TenantName $tenant -HostPoolName $hostpoolname -ExpirationHours 100
- Unless you use the following PS command to generate code registration code and use that code while installing RD agent:
Tips – AVD Master Image
I don’t recommend adding an AVD agent and Boot loader while making a master image. This point is valid for both Windows 10 enterprise and multi-user versions.
NOTE! – Whenever I followed #3 to make the custom image with Windows 10 Enterprise & Windows 10 Multi-Session versions. The VM didn’t get added to Host Pool.
We tried many combinations, it never worked. The new RDS pool deployment is completed successfully. The host pool icon is not appearing in the web portal https://rdweb.wvd.microsoft.com/webclient/index.html and AVD RD client console.
Also, I couldn’t see any RDS Session Hosts when I run the following PS command to find out the AVD VMs registered to a host pool.
Get-RdsSessionHost -TenantName $tenant -HostPoolName $hostpoolname
Resources
- How to Connect AVD Remote Desktop Resources Client or Browser?
- Windows Virtual Desktop Microsoft AVD FAQs from AMA
- Microsoft VDI Story AVD Concept Setup Guide Myths Known Issues
- New Azure Intune Portal App For Windows Devices