Setting up Azure Virtual Desktop on Azure Local: prerequisites and pitfalls
Partner · Neutral partner: Nerdio
By Mirko Peters ·
Before adding session hosts on Azure Local you need a registered 23H2 or later instance, a Windows image, a logical network, an AD domain join account and Azure roles. Covers portal fields and constraints.
To add session hosts on Azure Local you need an instance on version 23H2 or later that is registered with Azure, at least one Windows image on it, a logical network, a domain account that can join computers to Active Directory, and the right Azure roles. This guide lists each prerequisite with its source, shows the portal fields for Azure Virtual Desktop for Azure Local, and collects the constraints that tend to force rework. For the decision whether Azure Local is the right place for session hosts, see the companion article on when to keep session hosts close to the data.
Key points
- Prerequisites per Learn: an Azure Local instance on 23H2 or later registered with Azure, a stable connection, a Windows image on the instance and a logical network.
- Roles: Azure Stack HCI VM Contributor for session hosts on Azure Local, and Desktop Virtualization Contributor for creating the host pool, workspace and application group.
- In the portal you choose Azure Local as the virtual machine type and a custom location. The vCPU and memory values are not validated against the instance, and domain join offers Active Directory only.
- Pitfalls: standard management only, no mixing Azure and Azure Local hosts in one pool, logical network settings fixed after creation, and VMs that must be licensed and activated.
- Do not delete the Azure Arc resource bridge unless you plan to reimage or decommission the instance: Learn says that removes the Azure control plane for Azure Local VMs.
Prerequisites
Microsoft Learn lists these items for session hosts on Azure Local:
- An Azure Local instance registered with Azure, running at least version 23H2. Azure Arc VM management is installed automatically.
- A stable connection to Azure from your on-premises network.
- At least one Windows OS image on the instance. Image sources are Azure Marketplace, an Azure Storage account, or a local share.
- A logical network created on the instance. DHCP logical networks and static logical networks with automatic IP allocation are supported.
- Azure roles: the Azure Stack HCI VM Contributor role for session hosts on Azure Local, and Desktop Virtualization Contributor to create the host pool, workspace and application group.
Learn's general prerequisites page adds the identity side. You need a domain account that can join computers to your Active Directory domain, and the account used for the join cannot have multifactor authentication enabled. For hybrid identities, the UserPrincipalName or the Security Identifier must match across Active Directory Domain Services and Microsoft Entra ID, and you configure Microsoft Entra Connect to synchronize identities. The domain name, the join credentials and an optional organizational unit are the deployment parameters. Two more items from the Learn pages: register the Microsoft.DesktopVirtualization resource provider for the subscription, and to assign users to the application group you need Microsoft.Authorization/roleAssignments/write permissions on it, which the User Access Administrator and Owner roles include.
Check the Arc components
The portal needs the Arc resource bridge and the custom location. Learn's Azure Local VM management overview says one Arc resource bridge is installed per cluster during the Azure Local deployment and a custom location is created with it. Each instance has one custom location. The VM management prerequisites give a quick check: open the Azure Local resource, go to Overview > Server, and verify that Azure Arc shows as Connected, with a custom location and an Arc resource bridge listed.
Two further rules from that page: all related entities (the instance, resource bridge, custom location, VM operator and the VMs) must be registered or created in the same Azure region, though they can be in different resource groups in that region; and the firewall requirements in Learn's "Required firewall URLs for Azure Local deployments" must be met so Arc VMs on Azure Local can communicate with Azure Arc.
Prepare an image
If you need a Marketplace image on the instance, Learn's Azure Marketplace image article lists these prerequisites:
- Assign the Azure Connected Machine Resource Manager role to the
Microsoft.AzureStackHCIresource provider app for the resource group where the image is downloaded. - Register your subscription with the
Microsoft.EdgeMarketplaceresource provider.
The Azure CLI command has this shape (the page uses variables for each value):
az stack-hci-vm image create --resource-group <resource-group> --custom-location <custom-location-id> --name <image-name> --os-type <os-type> --offer <offer> --publisher <publisher> --sku <sku> --version <version>
For Windows 11 Enterprise multi-session the page lists publisher microsoftwindowsdesktop, offer windows-11 and SKUs such as win11-24h2-avd; the multi-session image with Microsoft 365 apps uses offer office-365 and, for example, win11-24h2-avd-m365. The --version value is optional and defaults to the latest. Learn's VM management prerequisites say to use only English (en-us) language VHDs to create VM images.
On the supported operating systems, the overview lists Windows 11 and Windows 10 Enterprise (with and without multi-session) and Windows Server 2025, 2022 and 2019, in each case versions still in support.
Create the host pool and session hosts in the portal
The steps follow the portal flow in Learn's deployment article.
- Create the host pool. On the Basics tab, set the subscription, resource group, host pool name, location, validation environment, preferred app group type and host pool type (pooled or personal). Learn also lists a Deployment scope field (Regional or Geographical, Geographical by default) that appears only in regions that support regional host pools and cannot be changed after creation; the regional host pools article in this series covers it. Keep in mind that a host pool holds session hosts on Azure or on Azure Local, not both.
- Management approach. Do not select a session host configuration: Standard management is available for pooled and personal host pools with session hosts on Azure Local, and Learn says session host configuration is currently not supported with Azure Local. Learn splits the portal steps into two paths: the session host configuration path has a Use a session host configuration row on the Basics tab, set to Yes, and the standard path's Basics table has no such row. Follow the standard path for Azure Local. The approach is fixed at creation; Learn says that a host pool created without a session host configuration cannot get one afterwards.
- Virtual machines tab. Set Add virtual machines to Yes, then expand the Azure Local section.
- Name prefix. Use a prefix such as
hp01-sh. The prefix is at most 11 characters, and prefix plus suffix at most 15 characters, because it becomes the computer name in the operating system. Names must be unique. - Virtual machine type. Select Azure Local, then pick the Custom location, which is the Azure Local instance that receives the session hosts.
- Image. Select an image from the list, or Manage VM images to manage the images on that instance.
- Size. Enter the number of VMs, the virtual processor count per host, and the memory type. Static gives a fixed allocation; Dynamic asks for a minimum and maximum memory. Learn says the processor and memory values are not validated against the resources available in the instance.
- Network. Select an existing network to connect each session host to.
- Domain join. Active Directory is the only option shown, including Microsoft Entra hybrid join. Enter the UPN and password of an account that can join computers, and choose whether to specify a domain or OU; if you answer no, the UPN suffix is used as the domain.
- Local administrator. Enter a username and password for the local administrator account.
- Complete the remaining tabs as for Azure, then review and create. Do not disable Windows Remote Management when you create session hosts in the portal, because PowerShell DSC requires it.
Afterwards, license and activate the VMs before use. Learn says to use Azure verification for VMs for Windows 10 and 11 Enterprise multi-session and Windows Server 2022 Datacenter: Azure Edition, and your existing activation methods for other images.
Plan the FSLogix profile storage
FSLogix profile containers need an SMB share. The Learn overview recommends a VM-based file share cluster using Storage Spaces Direct on the Azure Local instance, and for large deployments with high resource requirements a separate SMB share on the same network as the session hosts. The Architecture Center describes the on-instance option as more suitable for smaller deployments. The companion article compares the two options; the profile container entity covers the concept.
Pitfalls
| Pitfall | What the source says | What to do |
|---|---|---|
| Resource sizing is not checked | vCPU and memory values are not validated against the instance | Check free capacity on the instance yourself before entering the VM count |
| Logical network settings are fixed | After creation you cannot update the default gateway, IP pools, IP address space, VLAN ID or virtual switch name | Plan the address space and VLAN before creating the network |
| IPv4 only | Azure Local VMs support only IPv4 | Do not plan IPv6 for session hosts |
| Changes inside the VM do not sync | A static IP or data disk change made inside the VM or with local tools is not reflected in Azure | Make those changes through Azure management tools |
| Image updates are not in place | An update creates a separate image resource with an incremented name | Create a test VM from the new image, verify, then delete the old image |
| Resource bridge deletion | Deleting it removes the Azure control plane for Azure Local VMs; Learn says to delete dependent resources first and the custom location only after the bridge | Treat both as protected resources unless you reimage or decommission |
| Identity assumptions | Portal flow offers Active Directory only; the overview mentions native Entra join through PowerShell and other methods | Pilot the join method you need |
| Mixed pools | Azure and Azure Local hosts cannot share a host pool | Create separate pools |
| Azure Government and 21Vianet | Learn labels these versions preview; portal provisioning is not available for Azure Government | Check the page for the current status |
Two more points. The Azure Local VM management page says moving a resource group is not supported for these VMs and their associated resources, and that taking a VM checkpoint locally is supported only on Azure Local 2504 and later.
Connectivity and the agent
Session hosts must reach the Azure Instance Metadata Service through the Azure Connected Machine agent, which the portal installs automatically when you add hosts. Learn's overview links to the Required FQDNs and endpoints page, which says Microsoft does not support deployments where the listed FQDNs and endpoints are blocked. Only one entry in that table names Azure Local: aka.ms (TCP 443), the Microsoft URL shortener used during session host deployment on Azure Local. For Azure Local itself, Learn asks for the firewall URLs listed in "Required firewall URLs for Azure Local deployments" and for access to the Instance Metadata Service through the Connected Machine agent.
The same page also lists two Azure fabric communication IPs, 169.254.169.254 (Instance Metadata Service, TCP 80) and 168.63.129.16, for session host VMs and Cloud PCs, and says traffic to them must not be intercepted, proxied or redirected. Learn's page on those IPs describes them as Azure-internal platform addresses that cannot be accessed from outside Azure or from on-premises networks, and it does not mention Azure Local. Neither that page nor the Required FQDNs table says how these two addresses apply to Azure Local VMs. If the network of your instance uses a proxy or transparent traffic interception, clarify this with Microsoft before deployment and test it on a pilot session host. The Azure Virtual Desktop Agent URL Tool described on Learn can check whether a session host reaches the listed FQDN endpoints.
Verify the result
Our checklist before assigning users:
- The session hosts show as available in the host pool.
- A test user can connect with a Remote Desktop client.
- Activation succeeded, and the FSLogix share is reachable with working permissions.
- Monitoring and backup are in place (the Architecture Center lists Azure Monitor and Azure Backup for this design).
Sources
- Microsoft Learn: Deploy Azure Virtual Desktop
- Microsoft Learn: Azure Virtual Desktop on Azure Local
- Microsoft Learn: Prerequisites for Azure Virtual Desktop
- Microsoft Learn: Required FQDNs and endpoints for Azure Virtual Desktop
- Microsoft Learn: Azure fabric communication IPs
- Microsoft Learn: What is Azure Local VM management?
- Microsoft Learn: Azure Local VM management prerequisites
- Microsoft Learn: Create Azure Local VM images from Azure Marketplace
- Azure Architecture Center: Azure Virtual Desktop on Azure Local
FAQ
Which Azure Local version do I need for Azure Virtual Desktop?
Learn says the Azure Local instance must run a minimum of version 23H2 and be registered with Azure. Azure Arc VM management is installed automatically. The Azure Government and Azure operated by 21Vianet versions are labeled preview on Learn.
Can I use Microsoft Entra join for session hosts on Azure Local?
The portal flow offers Active Directory only, which includes Microsoft Entra hybrid join. The Azure Local overview says native Microsoft Entra join is supported through PowerShell and other deployment methods, while the prerequisites page says Azure Local session hosts can only be joined to AD DS. Pilot the join method you need; the companion article on when to keep session hosts close to the data sets out the same discrepancy.
How long can the session host name prefix be?
The prefix can be a maximum of 11 characters because it is used in the computer name, and the prefix and suffix combined can be a maximum of 15 characters. Session host names must be unique.