Skip to content
Back to Blog

Azure Virtual Desktop Error Codes: The Complete List, With Fixes

D
Founder and CEO, Atlas AVD··Updated
Azure Virtual Desktop Error Codes: The Complete List, With Fixes

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 VMExtensionProvisioningError from 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, and WVDErrors tells you which.


Where AVD error codes come from

LayerWhere you see itTypical codesFull guide
DeploymentThe ARM deployment in the Azure portal, Resource group → DeploymentsVMExtensionProvisioningError, InvalidResourceReference, UnauthorizedDeployment errors, below
Domain join and registrationThe deployment, and C:\Windows\Temp\ScriptLog.log on the hostIncorrect credentials, domain name doesn't resolve, IsRegistered = 0Domain join and registration, below
Session host agentEvent Viewer → Windows Logs → Application on the host3277, 3703, 3019, 3389, NAME_ALREADY_REGISTEREDAVD connection errors
Health checksThe session host's status in the portal or Get-AzWvdSessionHostNeeds Assistance, Unavailable, Upgrade FailedSession host needs assistance, session host unavailable
AVD serviceWVDErrors in Log Analytics, once diagnostics are onCodeSymbolic values such as ConnectionFailedNoHealthyRdshAvailableAVD connection errors
Sign-inThe client's error dialog, Entra sign-in logs, the host's Microsoft-Windows-AAD logAADSTS500213, MSIS7102, error code 2607Sign-in errors, below
Client and sessionThe error dialog in Windows App or the Remote Desktop clientLicensing, security and "session ended" messagesClient 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.

ErrorCauseFix
VMExtensionProvisioningError on extension joindomainWrong domain-join credentials, the domain name doesn't resolve, or the virtual network's DNS is set to DefaultCheck 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 VMConfirm the username and password have admin rights on the VM, then rerun the template
VMExtensionProvisioningError with no extension namedA transient service or connection errorConfirm 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 packageRemove 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 regionUse 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 rootChoose a different admin username
InvalidResourceReference ("both resources are in the same region")The template matched an existing resource in another resource group by nameMake 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 networkUse a different host name prefix
"Exceeding quota limit"Not enough vCPU quota for the VM family in the regionDeploy 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):

SymptomCauseFix
VM not joined: incorrect credentialsA typo in the domain-join credentialsJoin the VM manually or redeploy
VM not joined: timeout waiting for user inputThe domain-join account has MFAUse a service account without MFA
VM not joined: account doesn't have permissionsThe account can't join computers to the domainGrant the join permission, or use another account
VM not joined: domain name doesn't resolveNo peering to the domain controllers' network, or DNS on the VNet or NIC points elsewherePeer the networks; set DNS to your domain controllers
VM not joined: computer account reuse is blockedWindows updates since October 2022 block reusing a computer account you didn't createJoin 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.logWrong credentials, or DSC couldn't sign in to AVDInstall the agent manually; check MFA and the host pool name
IsRegistered = 0 under HKLM\SOFTWARE\Microsoft\RDInfraAgentThe registration token expiredGenerate a new registration key and re-register
No heartbeat in Get-AzWvdSessionHostRDAgentBootLoader stopped, or port 443 blockedStart the service; test outbound 443
O_REVERSE_CONNECT_STACK_FAILUREThe side-by-side stack isn't installedReinstall 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).

EventCode or messageMeans
3277INVALID_REGISTRATION_TOKEN, EXPIRED_MACHINE_TOKENThe registration key isn't valid
3277INVALID_FORMThe agent can't reach the broker
3277ENDPOINT_NOT_FOUNDThe broker found no host to send the user to
3277InstallationHealthCheckFailedExceptionThe stack listener isn't working
3277InstallMsiException, DownloadMsiExceptionAn installer is blocked, or the disk is full
3703"RD Gateway Url: is not accessible"The agent can't reach the gateway URLs
3019The agent can't reach the web socket transport URLs
3389MissingMethodExceptionAn agent update failed: .NET Framework is older than 4.7.2
NAME_ALREADY_REGISTEREDA 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).

StatusMeansFix
AvailablePassed every health check and accepts connectionsNothing to fix
Needs AssistanceFailed 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 experienceUnblock the URL, the metadata endpoint or the agent
UnavailableTurned off, or failed a fatal check such as domain join or the side-by-side stack listenerTurn it on, or fix the failed check
ShutdownThe VM is shut downTurn it on
UpgradingThe agent is updatingWait; reinstall the agent if it stays stuck
Upgrade FailedThe agent couldn't update. Existing sessions aren't affectedReinstall 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 showsCauseFix
"Your account is configured to prevent you from using this device"The user lacks a VM sign-in roleAssign Virtual Machine User Login on the VMs or resource group
"The user name or password is incorrect" on an Entra joined hostMissing role, or Conditional Access demands MFA for the Azure Windows VM Sign-In appAssign 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 onJoin 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 AccessEnforce 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 missingCreate and configure the Kerberos server object
Error code 2607 (Android, ChromeOS)The host is Entra joined and the client can't use its credentialsEnable connections from other clients
Event 1081, AADSTS500213 (Microsoft-Windows-AAD log)Cross-tenant access policy blocks an external userAllow the AVD and Windows sign-in apps for external identities
MSIS7102 (AD FS log)AD FS doesn't support the forced password promptSet PromptLoginBehavior to nativeSupport on the federated domain
No resources after sign-inThe user isn't assigned, is in a distribution group, or the subscription moved tenantsAssign a security group; reassign users after a tenant move

Client and session messages

MessageCauseFix
"Remote Desktop licensing mode isn't configured"The image lacks the latest updates, or Group Policy sets a licensing modeSet 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 endsAs 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 ServicesRestore the user right
"Your administrator may have ended your session"Allow users to connect remotely using Remote Desktop Services is disabledEnable 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 WVDErrors from 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 WVDErrors has 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.
Atlas AVD screenshot. All names, metrics and values are demo data.

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.

Related Resources

Blog

AVD Session Host Unavailable: Causes and Fixes

What the Unavailable status means for an Azure Virtual Desktop session host, which health checks are fatal, and how to fix each cause: a VM that's off or booting, a stopped agent, blocked broker URLs, an expired registration token, a broken domain trust and a stack listener that isn't listening.

Read more
Blog

Deploy Azure Virtual Desktop with Bicep or Terraform: A Minimal Setup

The minimal infrastructure as code for Azure Virtual Desktop in Bicep and in Terraform: host pool, registration token, desktop application group, workspace, user assignment and session hosts, the pitfalls that stop hosts registering, and when an IaC pipeline beats a management platform and when it doesn't.

Read more
Blog

Azure Virtual Desktop ROI: Thin Clients and BYOD vs a Laptop Refresh at 2026 RAM Prices

PC memory contract prices more than doubled in early 2026, and a laptop refresh buys 16 GB of it per user at the peak. A worked 3-year example for 100 users compares that refresh with Azure Virtual Desktop on thin clients and on the devices people already have, shows every input, and says where the ROI stops working.

Read more
Blog

Why Aren't You Using Ephemeral OS Disks for Your AVD Session Hosts Yet?

Pooled Azure Virtual Desktop hosts that run most of the day are a natural fit for ephemeral OS disks: Windows runs from the VM's local storage, the disk itself isn't billed, and nothing on the host outlives a reimage. The five reasons teams give for not switching, which three have stopped applying, and the two that still need a decision.

Read more

Get the AVD health checklist

The checks that catch slow sign-ins, temporary profiles and surprise Azure bills, across session hosts, FSLogix, golden images and cost. Free, straight to your inbox.

No spam. Unsubscribe anytime.

Ready to put this into practice?

Atlas AVD automates the strategies in this article - cost optimization, scaling, governance, and more.

Start free, no credit card

Free forever for 1 tenant & 1 host pool on the Community plan, or 30 days of every feature.

Try the live demo, no signup

A reference for Azure Virtual Desktop error codes, organized by where they come from: ARM deployment errors such as VMExtensionProvisioningError, domain join and registration failures, agent events 3277, 3703 and 3019, session host health checks, WVDErrors, Entra sign-in errors and client messages, each with its cause and fix and a link to the full guide.

By David Smith, Founder and CEO, Atlas AVD, , updated