Azure Virtual Desktop (AVD) error codes come from seven places: the deployment, the domain join and registration, the AVD agent on the session host, the session host's health checks, the AVD service's own diagnostics (WVDErrors), sign-in, and the client. Each layer has its own codes, so find which one produced the error before you look up the fix. This page lists the codes Microsoft documents for each layer, with the cause and fix, and links to the full troubleshooting guide for each.
The short version: a red ARM deployment is almost always
VMExtensionProvisioningErrorfrom the domain join or DSC extension, so check credentials and DNS. A host that never shows up is a registration token problem (event 3277). A host in Needs Assistance has a blocked URL, an unreachable metadata service or a broken monitoring agent. A user who can't connect is either unassigned, blocked by sign-in policy, or finding no healthy host, andWVDErrorstells you which.
Where AVD error codes come from
| Layer | Where you see it | Typical codes | Full guide |
|---|---|---|---|
| Deployment | The ARM deployment in the Azure portal, Resource group → Deployments | VMExtensionProvisioningError, InvalidResourceReference, Unauthorized | Deployment errors, below |
| Domain join and registration | The deployment, and C:\Windows\Temp\ScriptLog.log on the host | Incorrect credentials, domain name doesn't resolve, IsRegistered = 0 | Domain join and registration, below |
| Session host agent | Event Viewer → Windows Logs → Application on the host | 3277, 3703, 3019, 3389, NAME_ALREADY_REGISTERED | AVD connection errors |
| Health checks | The session host's status in the portal or Get-AzWvdSessionHost | Needs Assistance, Unavailable, Upgrade Failed | Session host needs assistance, session host unavailable |
| AVD service | WVDErrors in Log Analytics, once diagnostics are on | CodeSymbolic values such as ConnectionFailedNoHealthyRdshAvailable | AVD connection errors |
| Sign-in | The client's error dialog, Entra sign-in logs, the host's Microsoft-Windows-AAD log | AADSTS500213, MSIS7102, error code 2607 | Sign-in errors, below |
| Client and session | The error dialog in Windows App or the Remote Desktop client | Licensing, security and "session ended" messages | Client messages, below |
Two common problems don't come with a code at all. A black screen after connecting is a sign-in that hasn't finished on the host: see AVD black screen. A temporary profile or a slow sign-in is usually FSLogix, which has its own Status and Reason codes: see FSLogix logs, event IDs and status codes.
Deployment and host pool creation errors
These come from Microsoft's host pool creation troubleshooting guide (Microsoft Learn). You see them in the failed ARM deployment, usually wrapped in DeploymentFailed.
| Error | Cause | Fix |
|---|---|---|
VMExtensionProvisioningError on extension joindomain | Wrong domain-join credentials, the domain name doesn't resolve, or the virtual network's DNS is set to Default | Check the credentials; set the virtual network's DNS to Custom, pointing at your domain controllers or AD DNS |
VMExtensionProvisioningError on dscextension ("DSC Configuration 'SessionHost' completed with error(s)") | The DSC extension couldn't get admin access on the VM | Confirm the username and password have admin rights on the VM, then rerun the template |
VMExtensionProvisioningError with no extension named | A transient service or connection error | Confirm the AVD environment is healthy, then register the VM manually |
| DSC extension "Error downloading ... The remote name could not be resolved" | A route, firewall rule or NSG blocks the download of the DSC package | Remove the block, or host the package somewhere the VM can reach |
Unauthorized, extended code 52020, "The scale operation is not allowed for this subscription in this region" | The subscription type (MSDN, Free, Education) can't use the required features in that region | Use another subscription type or region |
InvalidParameter, "The Admin Username specified is not allowed" | The admin name uses a forbidden word such as admin, administrator or root | Choose a different admin username |
InvalidResourceReference ("both resources are in the same region") | The template matched an existing resource in another resource group by name | Make the first two characters of the resource group name unique in the subscription |
InvalidResourceReference ("was not found") | A NIC with the same name already exists in the virtual network | Use a different host name prefix |
| "Exceeding quota limit" | Not enough vCPU quota for the VM family in the region | Deploy fewer or smaller VMs, or request a quota increase |
Domain join and registration errors
A deployment can succeed while the host still fails to join the domain or register with the host pool. Microsoft's session host troubleshooting guide lists these (Microsoft Learn):
| Symptom | Cause | Fix |
|---|---|---|
| VM not joined: incorrect credentials | A typo in the domain-join credentials | Join the VM manually or redeploy |
| VM not joined: timeout waiting for user input | The domain-join account has MFA | Use a service account without MFA |
| VM not joined: account doesn't have permissions | The account can't join computers to the domain | Grant the join permission, or use another account |
| VM not joined: domain name doesn't resolve | No peering to the domain controllers' network, or DNS on the VNet or NIC points elsewhere | Peer the networks; set DNS to your domain controllers |
| VM not joined: computer account reuse is blocked | Windows updates since October 2022 block reusing a computer account you didn't create | Join with the account's original creator or a Domain Admin, or use the "Allow computer account re-use during domain join" policy (KB5020276) |
Agent and Boot Loader missing, no ScriptLog.log | Wrong credentials, or DSC couldn't sign in to AVD | Install the agent manually; check MFA and the host pool name |
IsRegistered = 0 under HKLM\SOFTWARE\Microsoft\RDInfraAgent | The registration token expired | Generate a new registration key and re-register |
No heartbeat in Get-AzWvdSessionHost | RDAgentBootLoader stopped, or port 443 blocked | Start the service; test outbound 443 |
O_REVERSE_CONNECT_STACK_FAILURE | The side-by-side stack isn't installed | Reinstall it by re-registering the host |
Don't install the AVD agent in your golden image: Microsoft says to install it after the VM is deployed, so each host registers with its own token.
Session host agent event codes
The agent logs to the host's Application event log under WVD-Agent, WVD-Agent-Updater and RDAgentBootLoader (Troubleshoot Azure Virtual Desktop Agent issues).
| Event | Code or message | Means |
|---|---|---|
| 3277 | INVALID_REGISTRATION_TOKEN, EXPIRED_MACHINE_TOKEN | The registration key isn't valid |
| 3277 | INVALID_FORM | The agent can't reach the broker |
| 3277 | ENDPOINT_NOT_FOUND | The broker found no host to send the user to |
| 3277 | InstallationHealthCheckFailedException | The stack listener isn't working |
| 3277 | InstallMsiException, DownloadMsiException | An installer is blocked, or the disk is full |
| 3703 | "RD Gateway Url: is not accessible" | The agent can't reach the gateway URLs |
| 3019 | The agent can't reach the web socket transport URLs | |
| 3389 | MissingMethodException | An agent update failed: .NET Framework is older than 4.7.2 |
NAME_ALREADY_REGISTERED | A host with the same name is already registered |
AVD connection errors has the step-by-step fix for each of these.
Session host statuses and health checks
Every session host reports a status, and the status comes from a set of health checks (Session host statuses and health checks).
| Status | Means | Fix |
|---|---|---|
| Available | Passed every health check and accepts connections | Nothing to fix |
| Needs Assistance | Failed a non-fatal check: a required URL is blocked, the metadata service is unreachable, or the monitoring agent is broken. Users can connect but may have a degraded experience | Unblock the URL, the metadata endpoint or the agent |
| Unavailable | Turned off, or failed a fatal check such as domain join or the side-by-side stack listener | Turn it on, or fix the failed check |
| Shutdown | The VM is shut down | Turn it on |
| Upgrading | The agent is updating | Wait; reinstall the agent if it stays stuck |
| Upgrade Failed | The agent couldn't update. Existing sessions aren't affected | Reinstall or repair the agent |
The checks behind Needs Assistance are UrlsAccessibleCheck, MetaDataServiceCheck and MonitoringAgentCheck. Session host needs assistance explains each one and its fix.
AVD service errors in WVDErrors
Once diagnostics are on for your host pools, workspaces and application groups, failed connections and management operations land in the WVDErrors table in Log Analytics (Microsoft Learn). The CodeSymbolic column names the error, and ServiceError says whose it is: false means an admin can fix it, true means escalate to Microsoft with the CorrelationId.
WVDErrors
| where TimeGenerated > ago(7d)
| summarize count() by CodeSymbolic, ServiceError
| order by count_ desc
Microsoft doesn't publish a reference table for CodeSymbolic values. Its own troubleshooting page says "not all error messages are described in the documentation" (Troubleshoot Azure Virtual Desktop Insights). AVD connection errors decodes the ones you'll see most, such as ConnectionFailedNoHealthyRdshAvailable and ConnectionFailedUserNotAuthorized.
If a user reports an error and there's no matching row, the attempt never reached the service. Look at the user's network first.
Sign-in and Microsoft Entra joined host errors
These come from Microsoft's guides to Entra joined VM connections and the service connection.
| What the user or log shows | Cause | Fix |
|---|---|---|
| "Your account is configured to prevent you from using this device" | The user lacks a VM sign-in role | Assign Virtual Machine User Login on the VMs or resource group |
| "The user name or password is incorrect" on an Entra joined host | Missing role, or Conditional Access demands MFA for the Azure Windows VM Sign-In app | Assign the role; exclude that app from the MFA policy, and don't use per-user MFA |
| "The logon attempt failed" | The client device isn't joined to the host's tenant, PKU2U is off, or per-user MFA is on | Join the device to the same tenant, enable PKU2U on both machines, turn off per-user MFA |
| "The sign-in method you're trying to use isn't allowed" | Conditional Access | Enforce Entra MFA for Entra joined VMs the supported way: see AVD Conditional Access |
| "A specified logon session does not exist" | Single sign-on's Kerberos server object is missing | Create and configure the Kerberos server object |
| Error code 2607 (Android, ChromeOS) | The host is Entra joined and the client can't use its credentials | Enable connections from other clients |
Event 1081, AADSTS500213 (Microsoft-Windows-AAD log) | Cross-tenant access policy blocks an external user | Allow the AVD and Windows sign-in apps for external identities |
MSIS7102 (AD FS log) | AD FS doesn't support the forced password prompt | Set PromptLoginBehavior to nativeSupport on the federated domain |
| No resources after sign-in | The user isn't assigned, is in a distribution group, or the subscription moved tenants | Assign a security group; reassign users after a tenant move |
Client and session messages
| Message | Cause | Fix |
|---|---|---|
| "Remote Desktop licensing mode isn't configured" | The image lacks the latest updates, or Group Policy sets a licensing mode | Set Set the Remote Desktop licensing mode to Disabled; update the image |
| "There are no Remote Desktop client access licenses available" | The same, once the grace period ends | As above. RDS CALs are only needed on Windows Server hosts |
| "We couldn't connect to the remote PC because of a security error" | A policy changed default RDP rights, such as Allow log on through Remote Desktop Services | Restore the user right |
| "Your administrator may have ended your session" | Allow users to connect remotely using Remote Desktop Services is disabled | Enable the policy |
Sources: session host troubleshooting and the Remote Desktop client for Windows. Before chasing a client message, rule out the client: update Windows App and try the same user from the web client.
Where Atlas AVD helps
- Hosts that never registered don't hide. When Add VMs builds a host, Atlas fetches the registration token and installs the AVD agent, and a host that doesn't register in time fails its deployment job instead of sitting in the pool unnoticed.
- Unhealthy hosts in one filter. The Session Hosts list filters to Needs Assistance, and an agent health view shows every host's AVD agent version and health.
- Top error codes without writing KQL. On Monitoring → Analytics → Experience, the Connection Errors card reads
WVDErrorsfrom your Log Analytics workspace, separates service-side from client-side errors and lists the top error codes. - Diagnostics on by default. For the pools it deploys, Atlas turns on AVD Insights diagnostics into your own Log Analytics workspace, so
WVDErrorshas data when you need it. - Alerts before tickets. Alert rules cover unavailable VMs, latency and pools at capacity, delivered to Teams, Slack or a signed webhook.
That's the real Atlas AVD console in our demo environment; the pools and metrics are sample data.
FAQ
Where do I find Azure Virtual Desktop error codes?
It depends on the layer. Deployment errors are in the resource group's Deployments. Agent errors are in the session host's Application event log. Service errors are in the WVDErrors table in Log Analytics, once diagnostics are on. Client errors are in the dialog the user sees.
Does Microsoft publish a full list of AVD error codes?
No. Microsoft documents deployment, agent, health check and sign-in errors across several troubleshooting pages, but it doesn't publish a reference table for WVDErrors codes and says not every error message is in the documentation.
What does VMExtensionProvisioningError mean in AVD?
A VM extension failed during deployment. On the joindomain extension it's usually wrong credentials or DNS that can't find the domain. On dscextension the account couldn't get admin access on the VM.
What is event ID 3277 on an AVD session host?
It's the AVD agent's error event. The message names the problem: INVALID_REGISTRATION_TOKEN means the registration key isn't valid, INVALID_FORM means the agent can't reach the broker, and ENDPOINT_NOT_FOUND means there was no host to send the user to.
Why is my session host stuck in Needs Assistance?
It failed a non-fatal health check: a required URL is blocked, the Azure metadata service isn't reachable, or the monitoring agent isn't working. Users can still connect, but fix it before it gets worse.
What does ServiceError true mean in WVDErrors?
The error is on Microsoft's side. Open a support case and include the CorrelationId from the same row.
Why does a user see no desktops after signing in?
They aren't assigned to an application group, they're in a distribution group rather than a security group, or the subscription moved to another Entra tenant and the assignments stayed with the old one.
Last updated 23 November 2026. Microsoft details are drawn from Microsoft Learn as of November 2026: Host pool creation, Troubleshoot Azure Virtual Desktop session host, Troubleshoot Azure Virtual Desktop Agent issues, Session host statuses and health checks, Diagnostics with Log Analytics, Troubleshoot Azure Virtual Desktop Insights, Troubleshoot connections to Microsoft Entra joined VMs, Troubleshoot the service connection and Troubleshoot the Remote Desktop client for Windows.

