Skip to content
Back to Blog

AVD Session Host Unavailable: Causes and Fixes

D
Founder and CEO, Atlas AVD··Updated
AVD Session Host Unavailable: Causes and Fixes

An Azure Virtual Desktop (AVD) session host shows Unavailable when it's turned off, has stopped heartbeating to the AVD service, or has failed a fatal health check such as domain join, domain trust or the side-by-side (SxS) stack listener. Unlike Needs Assistance, an Unavailable host gets no new user sessions, so every Unavailable host is capacity you've lost. The usual causes are a VM that's off or still starting, a stopped AVD agent, an agent that can't reach the broker, an expired registration token, a broken domain trust, or a stack listener that isn't listening.

The short version: open the host in the portal's Session hosts tab, or run Get-AzWvdSessionHost, and read its failed health checks and last heartbeat. A host that's on but has no recent heartbeat usually has a stopped agent, a blocked broker URL or an invalid registration token: check the Application event log for WVD-Agent event 3277. A failed domain check means DNS or the computer account. A failed stack listener check means run qwinsta.exe and reinstall the SxS stack if rdp-sxs isn't listening.


What Unavailable means, next to the other statuses

The AVD agent on each session host heartbeats to the service and runs health checks, and the service turns the results into a status (Microsoft Learn). Microsoft defines Unavailable as a host that's "either turned off or hasn't passed fatal health checks". In the REST API it also replaces the older NoHeartbeat status, so a host that stops heartbeating shows Unavailable too.

StatusMeaningGets new sessions?
AvailablePassed all health checksYes
Needs AssistanceFailed a non-fatal check: URL, metadata service or monitoring agentYes
UnavailableTurned off, not heartbeating, or failed a fatal health checkNo
ShutdownThe agent reported the VM stopped or deallocatedNo
UpgradingAgent or stack upgrade in progressYes
Upgrade FailedThe agent couldn't update. Doesn't affect sessionsYes

Two Unavailable cases are normal and clear on their own. A newly added host can show Unavailable before its first heartbeat, and Microsoft notes that a host that shut down before it could update its status can show Unavailable instead of Shutdown. Give a new or just-stopped host a few minutes before you troubleshoot it.

For the non-fatal checks, see AVD session host needs assistance.


Which health checks make a host Unavailable

The session host's sessionHostHealthCheckResults lists each check by name (Session Hosts - Get). Microsoft classes them as fatal or non-fatal; a failed fatal check stops connections and takes the host to Unavailable:

Health checkWhat it verifiesIf it fails
DomainJoinedCheckThe host is joined to a domainFatal: Unavailable
DomainTrustCheckNo domain trust problem blocks authenticationFatal: Unavailable
SxSStackListenerCheckThe side-by-side stack is listening for connectionsFatal: Unavailable
MonitoringAgentCheckThe Geneva monitoring agent is installed and runningNon-fatal: Needs Assistance
MetaDataServiceCheckThe Azure Instance Metadata Service is reachableNon-fatal: Needs Assistance
UrlsAccessibleCheckThe required AVD URLs are reachableNon-fatal: Needs Assistance
AppAttachHealthCheckApp attach staging and destaging workNon-fatal: some apps may stop working

The API defines more checks, such as FSLogixHealthCheck, DomainReachable and SupportedEncryptionCheck, but lists them as disabled. A missing heartbeat isn't a health check at all: the host goes Unavailable because the service stops hearing from it, and its lastHeartBeat stops moving.


First, find out why

Don't guess. In the Azure portal, open the host pool, select Session hosts, then select the host: the failed health checks are listed with their error. Or check a whole pool at once with PowerShell:

Get-AzWvdSessionHost -ResourceGroupName "rg-avd" -HostPoolName "hp-pooled" |
  Where-Object Status -ne "Available" |
  Select-Object Name, Status, LastHeartBeat, UpdateErrorMessage

Then read the pattern:

  • Old LastHeartBeat, no failed check: the agent isn't talking to the service. Start with the VM's power state, then the agent, then the network.
  • Recent heartbeat and a failed check: the agent is fine and the check names the fix.
  • One host: a problem on that VM. Every host in a pool at once: a shared cause, such as DNS, a firewall or proxy change, a domain controller or an expired key in your image process.

On the host itself, Event Viewer → Windows Logs → Application, sources WVD-Agent and RDAgentBootLoader, holds the agent's errors. AVD connection errors lists every agent event code.


Causes and fixes

The VM is off or still booting

A deallocated VM shows Shutdown, but a VM that's starting, restarting or applying updates shows Unavailable until the agent heartbeats. With Start VM on Connect or a scaling plan, hosts move through Unavailable on every start. If one stays Unavailable more than a few minutes after boot, look for Service Control Manager events 7000 or 7011 for the Remote Desktop Agent Loader: Microsoft's fix for a boot-time timeout is to set it to Automatic (Delayed Start) and raise ServicesPipeTimeout to 60000 ms (Troubleshoot Azure Virtual Desktop Agent issues).

The AVD agent has stopped

Open Services and check Remote Desktop Agent Loader (RDAgentBootLoader). If it's stopped, start it, wait 10 seconds and refresh. If it stops again on its own, it's almost always a registration problem: see the token fix below.

The agent can't reach the broker

A firewall, proxy or DNS change that blocks the AVD service URLs stops the heartbeat. The agent logs event 3277 with INVALID_FORM or event 3703 for the gateway URLs. To test the path the agent uses:

  1. Read BrokerResourceIdURI and BrokerResourceIdURIGlobal under HKLM\SOFTWARE\Microsoft\RDInfraAgent.
  2. Add /api/health to each and open them in a browser on the host. Each should say RD Broker is Healthy.
  3. If they don't load, allow the required URLs for Azure Virtual Desktop through your firewall or proxy, and run the Required URL Check tool (WVDAgentUrlTool.exe) on the host to find the blocked one.

Check DNS too: a host pointed at a DNS server that can't resolve public names reaches neither the broker nor your domain.

The registration token expired or is invalid

The agent logs event 3277 with INVALID_REGISTRATION_TOKEN or EXPIRED_MACHINE_TOKEN, and RDAgentBootLoader keeps stopping. A host pool registration key is valid for between one hour and 27 days, so an image or script that bakes in a key fails once the key expires. Microsoft also notes that the machine token of a host left powered off for more than 90 days expires; power such hosts on for at least 20 minutes every 90 days.

To re-register the host, generate a new registration key on the host pool, then run as an administrator on the host:

$newKey = "<registration key>"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\RDInfraAgent" -Name "IsRegistered" -Value 0 -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\RDInfraAgent" -Name "RegistrationToken" -Value $newKey -Force
Restart-Service RDAgentBootLoader

When it worked, IsRegistered is back to 1 and RegistrationToken is blank. Generate keys when you deploy hosts, not when you build the image.

Domain join or domain trust failed

A failed DomainJoinedCheck or DomainTrustCheck means the host can't authenticate users against Active Directory: the users see ConnectionFailedAdTrustedRelationshipFailure if they get that far. Check, in order:

  • DNS. The host's network must point at DNS servers that resolve your domain, usually your domain controllers or a forwarder to them. A virtual network DNS change is a common pool-wide cause.
  • Domain controller reachability. From the host, nltest /dsgetdc:<your domain> should return a domain controller.
  • The computer account's trust. A host restored from an old snapshot or re-imaged with the same name can have a stale machine password. Test-ComputerSecureChannel returns False when the trust is broken; Test-ComputerSecureChannel -Repair -Credential <domain admin> resets it.

On a pooled host, replacing the host from your image is usually faster than repairing the trust.

The side-by-side stack isn't listening

A failed SxSStackListenerCheck means the RDP stack the agent uses isn't accepting connections. Run qwinsta.exe: both rdp-tcp and rdp-sxs should show Listen. Microsoft's first step is to restart the VM. If rdp-sxs still isn't listening, stop RDAgentBootLoader, uninstall Remote Desktop Services SxS Network Stack, reinstall it from the newest SxSStack*.msi under C:\Program Files\Microsoft RDInfra, restart and run qwinsta.exe again.

Two things cause this repeatedly: an agent upgrade that didn't finish, and an image built on a Windows edition that isn't supported for AVD, where the SxS stack never activates.

Stuck in Upgrading or Unavailable after an agent update

If a host has said Upgrading or Unavailable for a long time after an agent update, the agent or the stack didn't install. Reinstall the stack as above. If that doesn't work, Microsoft's last resort is to uninstall the agent, boot loader and stack, remove the host from the pool, generate a new registration key and reinstall the agent and boot loader.


Quick reference

SymptomLikely causeFix
Unavailable just after start, then AvailableNormal boot or first heartbeatWait a few minutes
Unavailable after every bootAgent loader timing outDelayed start, ServicesPipeTimeout 60000
Old LastHeartBeat, RDAgentBootLoader stoppedInvalid or expired registration tokenNew key, IsRegistered 0, restart the loader
Event 3277 INVALID_FORM or 3703Broker or gateway URLs blocked/api/health test, allow the required URLs
DomainJoinedCheck or DomainTrustCheck failedDNS, domain controller or machine accountFix DNS, repair the secure channel, or replace the host
SxSStackListenerCheck failedrdp-sxs not listeningRestart, then reinstall the SxS stack
Every host in a pool Unavailable at onceShared network, DNS or domain changeCheck what changed for the whole pool

For every other AVD error by layer, see our complete list of Azure Virtual Desktop error codes.


Where Atlas AVD helps

  • Unavailable hosts in one filter. The Session Hosts list filters by status, including Unavailable and Needs Assistance, across your host pools.
  • An alert before the ticket. Atlas raises a VM Unavailable alert when a running session host has reported Unavailable or Needs Assistance for 10 minutes, delivered to Teams, Slack or a signed webhook. A pool-wide outage sends a few host alerts and one summary, not one per host.
  • New hosts that don't come up are explained. When Atlas builds a session host, it waits for the host to report Available, lets the normal post-registration Unavailable settle first, and restarts the VM only when it has no user sessions. If the host still isn't Available, the deployment job log names its failed health checks and last heartbeat.
  • Replace, don't repair. When a pooled host is broken, Drain & Reclaim or a Re-Image puts a fresh host from your image in its place. DrainGuard deletes drained hosts only once they're empty.
  • Run the fix on many hosts. Scripts runs a script, such as the stack listener check, through Azure Run Command on up to 50 VMs at a time with each host's output in one view.

The Self-Healing Engine, coming soon, will restart hosts the broker reports as unavailable, with caps so a host that keeps failing goes to a person. If the problem is Atlas itself rather than a session host, check your deployment's health.

Atlas AVD screenshot. All names, metrics and values are demo data.

That's the real Atlas AVD console in our demo environment; the rules shown are sample data. AVD fleet management covers health checks across a whole estate.


FAQ

What does Unavailable mean in Azure Virtual Desktop?

The session host is turned off, has stopped heartbeating to the AVD service, or failed a fatal health check such as domain join, domain trust or the side-by-side stack listener. The service sends it no new user sessions.

What's the difference between Unavailable and Needs Assistance?

Needs Assistance is a failed non-fatal check, such as a blocked URL or the metadata service, and the host still takes new sessions. Unavailable is a fatal failure or a missing heartbeat, and the host takes no new sessions.

Why do new session hosts show Unavailable?

A newly added host can show Unavailable until the AVD agent sends its first heartbeat, which usually takes a few minutes. If it stays Unavailable, check the registration key: an expired or invalid key logs event 3277 with INVALID_REGISTRATION_TOKEN.

How long is an AVD registration key valid?

Between one hour and 27 days, as you choose when you generate it. A host that's already registered doesn't need the key again, but a host left powered off for more than 90 days can have its machine token expire.

How do I fix SxSStackListenerCheck?

Run qwinsta.exe and check that rdp-sxs shows Listen. If not, restart the VM, and if that doesn't fix it, reinstall the Remote Desktop Services SxS Network Stack from the MSI under C:\Program Files\Microsoft RDInfra.

Why are all the hosts in my pool Unavailable at once?

A shared cause: usually a DNS, firewall or proxy change that cuts the hosts off from the AVD service or your domain controllers. Test one host's /api/health broker URL and domain controller lookup, then fix the shared setting.

Last updated 25 November 2026. Microsoft details are drawn from Microsoft Learn as of November 2026: Session host statuses and health checks, Troubleshoot Azure Virtual Desktop Agent issues, Session Hosts - Get and Add session hosts to a host pool.

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

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.

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