Sessionright

How to Add an Existing VM to an AVD Host Pool

By Jay H.Published Updated 7 min read

Jay H. · Founder, Sessionright
Founder of Sessionright. Twenty years running Citrix, NetScaler, Citrix Cloud, NetScaler Console, Azure and Azure Virtual Desktop estates; writes the guides and reviews the platform's rules.

Stuck on this right now? Talk it through with a Sessionright engineer: 15 minutes, free.

To add an existing VM to an AVD host pool, generate a registration key for the standard-managed pool and follow Microsoft's separate session host registration procedure. Once the session host shows Available, restart the VM (Microsoft Learn).

Can you use an existing VM in this AVD host pool?

Microsoft documents separate VM registration for an existing host pool that uses standard management. For a pool that uses a session host configuration, you specify the number of hosts in the portal and Azure Virtual Desktop creates them from that configuration (host pool management approaches).

For a standard-managed pool that already has session hosts, note their VM size, image and name prefix before registering the VM. Microsoft says the hosts should have the same configuration and identity provider. For example, avoid combining Microsoft Entra joined hosts and Active Directory domain joined hosts in one pool. Keep the deployment platform consistent as well: a pool can contain Azure hosts or Azure Local hosts (session host prerequisites). If you are checking the destination pool settings, start with the AVD host pool configuration guide.

Check these requirements on the VM and in the subscription before opening the registration workflow:

  • Operating system. Verify that the VM runs a supported session host operating system using Microsoft's Azure Virtual Desktop prerequisites. For Windows Server, install the Remote Desktop Session Host role and restart the VM before registering it (Microsoft registration procedure).
  • Identity. Join the session host to the same Microsoft Entra tenant as your users or to an Active Directory domain using AD DS or Microsoft Entra Domain Services. For a Microsoft Entra join, use an account that can join computers to the tenant (identity prerequisites). Microsoft supports Microsoft Entra joined Azure VMs as session hosts when joined through the AADLoginForWindows VM extension (session host prerequisites). For a domain join, use a domain account that can join computers. Microsoft Entra Domain Services requires membership in AAD DC Administrators (identity prerequisites).
  • Subscription. In the Azure portal, go to Subscriptions > your subscription > Resource providers and search for Microsoft.DesktopVirtualization. If the provider shows NotRegistered, select it and choose Register, then verify that the status is Registered (provider registration).
  • Network. The virtual network must be in the same Azure region as the session host. Allow the required outbound FQDNs and endpoints for the cloud you use. Microsoft's AVD endpoint list requires outbound access and says you do not need to open inbound ports for Azure Virtual Desktop (AVD prerequisites, required endpoints).

How do you register an existing VM with the AVD host pool?

Generate a registration key from the destination host pool overview, then use Microsoft's separate registration procedure for the existing VM. The separate procedure applies to VMs created outside the Azure Virtual Desktop service in a standard-managed pool (add session hosts).

  1. Check access to generate the key. Microsoft lists Desktop Virtualization Host Pool Contributor, or equivalent, on the resource group for this action. The portal workflow for creating and adding a new Azure VM lists Virtual Machine Contributor as well (RBAC requirements by action).
  2. Open the destination host pool overview and select Registration key. Follow the portal instructions to generate the key. Microsoft also documents key generation through Azure CLI and Azure PowerShell if you use either of those tools (generate a registration key).
  3. Register the VM separately. Sign in to the VM as an administrator and install the Azure Virtual Desktop Agent. When the installer prompts for a registration token, enter the token from the destination host pool. Then install the Azure Virtual Desktop Agent Boot Loader (Microsoft registration procedure).
  4. Wait for Available, then restart the VM. Microsoft specifies this order in its session host setup instructions. For tracking management activity around the addition, see the AVD host pool change audit logs guide.

How do you verify that the VM is ready for connections?

Check the VM's entry in the host pool's Session hosts tab. Available means the session host passed all health checks and can accept user connections. A host can still display Available when it has reached its maximum session limit (session host statuses).

For a Microsoft Entra joined VM in a standard-managed pool, verify that the intended users have the Virtual Machine User Login role and check the authentication settings for the client they will use (Microsoft post-deployment tasks). After restarting the VM, verify that the host reports Available and accepts connections (agent troubleshooting).

If the VM appears in the pool with Needs Assistance, select the host name on the Session hosts tab to see which checks failed. Microsoft describes those failures as non-fatal and says users can still connect, although their experience may degrade. If the host shows Unavailable, check whether the VM is off or failed a fatal health check. For help interpreting the result, see the AVD session host unavailable guide and Microsoft's status and health check reference.

What should you check if the VM fails to register?

On the VM, open Event Viewer > Windows Logs > Application for Azure Virtual Desktop Agent errors. Microsoft lists WVD-Agent, WVD-Agent-Updater, RDAgentBootLoader and MsiInstaller as event sources to check (agent troubleshooting).

What you see in the Application log What to check
Event 3277 with INVALID_REGISTRATION_TOKEN or EXPIRED_MACHINE_TOKEN Generate a new key and follow Microsoft's administrator PowerShell procedure to set the registration values and restart RDAgentBootLoader. Microsoft expects IsRegistered to be 1 and RegistrationToken to be blank after re-registration (invalid or expired token fix).
Event 3277 with INVALID_FORM Check the endpoints in BrokerResourceIdURI and BrokerResourceIdURIGlobal using Microsoft's /api/health procedure. Microsoft identifies firewall and DNS settings as possible causes (broker connection troubleshooting).
Event 3703 with RD Gateway Url: is not accessible Check access to the required gateway URLs and review any firewall or proxy rules that could block them (gateway troubleshooting, required endpoints).

To test from the affected session host, run .\WVDAgentUrlTool.exe in administrator PowerShell from the installed RDAgent folder. The tool lists accessible and inaccessible endpoints. For wildcard FQDNs it tests specific entries that depend on the host's location, so check that the wildcard entries themselves are allowed (Agent URL Tool instructions).

How do you check the VM's access to required AVD endpoints?

On a session host with the Azure Virtual Desktop Agent installed, use the Azure Virtual Desktop Agent URL Tool to identify which required endpoints the VM cannot reach. Unblock the required endpoints that fail and retest from the session host (Agent URL Tool instructions).

  1. Check the prerequisites on the session host. Microsoft requires .NET Framework 4.6.2 and RDAgent version 1.0.2944.400 or higher. Keep WVDAgentUrlTool.exe in the same folder as WVDAgentUrlTool.config (tool prerequisites).
  2. Compare inaccessible entries with the list for your cloud. Microsoft gives separate tabs for Azure cloud and Azure for US Government. For example, the Azure cloud table lists *.wvd.microsoft.com on outbound TCP port 443 for service traffic, including TCP-based DS connectivity (required FQDNs and endpoints).
  3. Check other hosts where the network differs. Microsoft suggests repeating the tool on another session host, particularly if it is in a different Azure region or on a different virtual network (Agent URL Tool instructions).

FAQ

Can you add an existing Azure Local VM to an AVD host pool?

Microsoft documents separate registration for Azure Arc VMs created on Azure Local. For Azure Local machines created outside the Azure Virtual Desktop service, Microsoft requires the Azure Connected Machine agent to communicate with Azure Instance Metadata Service (Azure Local prerequisites).

Can you add a session host to a regional AVD host pool?

Yes. Microsoft uses the same session host addition procedure for regional and geographical pools. The pool's deployment scope determines where session host registration metadata is stored (deployment scope).

Why did an AVD session host show Unavailable when it shut down?

A session host can show Unavailable if it shuts down before the Azure Virtual Desktop Agent connects to the broker to report its status. Microsoft says to use the VM instance view API alongside the session host status to determine the VM's power state (Shutdown status).

Does the AVD endpoint list cover DNS and time services?

Microsoft's AVD endpoint list excludes endpoints for custom DNS providers and time services. The documentation also excludes endpoints for other services such as Microsoft Entra ID and Office 365 (endpoint list scope).

Want a read-only view of your AVD estate?

Sessionright's free AVD assessment runs one read-only command in Azure Cloud Shell and writes a local HTML report in about five minutes for a typical estate. The platform is read-only by default, and a named person approves every change before it runs and is logged (security). If you would rather talk through your setup, book a 15-minute call.

Sources

Want this watched for you, with the fix drafted before you ask?

Sessionright is an AI operator for Azure Virtual Desktop: it checks session hosts, scaling plans, FSLogix and cost continuously, attaches the evidence, and proposes fixes for a named approver to sign. It has run against simulated estates and Sessionright's own Azure lab tenant so far. To see what it finds on your own estate, run the free assessment: one command in Azure Cloud Shell reads your estate, never changes it, and writes an HTML report in about five minutes for a typical estate. Your estate data stays with you unless you choose to email yourself the HTML report through Sessionright. Design partner program: 90-day free Operator pilot, then 50% off year 1; list price at signing held to month 24. Engineer-led assessments are 50% off for design partners. Outside the program the onboarding assessment is $2,500, up to 500 users, one tenant.

Not ready for that? Talk to a Sessionright engineer: 15 minutes, free, and you leave with a next step.

Or get the next guide by email. One email per new guide, no marketing list.

New Sessionright guides by email. No marketing drip; unsubscribe in one click.

Related guides

Citrix and NetScaler are trademarks of Citrix Systems, Inc. and/or its affiliates. Azure is a trademark of the Microsoft group of companies. Sessionright is not affiliated with or endorsed by Cloud Software Group, Citrix or Microsoft.