Skip to content
Back to Blog

Test Every New AVD Session Host Before Your Users Do

D
Founder and CEO, Atlas AVD·
Test Every New AVD Session Host Before Your Users Do

Most AVD administrators have lived this morning. Autoscale builds a new session host overnight, or the monthly image update replaces one. Azure says the deployment succeeded, the host registers with the host pool, the AVD agent reports Available, and users start landing on it.

Then the first person to sign in gets a temporary profile, because the FSLogix container didn't attach. Or their drives are missing because a logon script failed. Or Teams has no media optimization. By every measure Azure checks, the host was healthy. It just didn't work for a person.

The Session Acceptance Test in Atlas AVD closes that gap. Before a new or reimaged session host takes users, a dedicated test account signs in to it, Atlas checks what a real user would hit, signs the account out, and only then lets users on.

The short version: turn on the Session Acceptance Test for a host pool, and every host Atlas builds for it stays in drain mode until a test account has signed in and passed the checks you require: sign-in, FSLogix profile attach, Group Policy and logon scripts, Teams and AVD media optimization components, audio, your own test script, and a clean sign-out. A host that fails stays drained and raises an alert. It's off by default.


The gap between "deployed" and "working"

Azure and the AVD agent can tell you that a VM is running, joined to your directory, and registered to the host pool. They can't tell you whether a user's sign-in will go well, because the things that break a session happen inside the sign-in itself:

  • The FSLogix profile container fails to attach, and the user gets a temporary profile.
  • Group Policy for the user fails to apply, or a logon script exits with an error.
  • The image is missing Teams or the Remote Desktop WebRTC Redirector Service.
  • The Windows Audio services aren't running.

The usual answer is for someone to sign in by hand after every build or image change. That works until autoscale builds hosts at 3am, or a busy week means nobody gets to it. Then the first test is a user, usually first thing in the morning. If it's a problem in the golden image, it's every user on every new host.


How the Session Acceptance Test works

Once it's on for a host pool, it runs on every host Atlas builds for that pool:

  1. The host stays in drain mode. Atlas finishes building the host but doesn't let users on yet.
  2. A dedicated test account signs in. Atlas signs a Microsoft Entra test account in to the host, the way a user would get a session, and runs the checks.
  3. You can watch it happen. Each step appears on the provisioning job as it finishes, with what it found and how long it took.
  4. The result decides what happens to the host. If every required check passes, Atlas takes the host out of drain mode and users can sign in. If a check fails, the host stays in drain mode and the Session Acceptance Test Failed alert is raised, naming the checks that failed.

Every run is kept with the host pool, so you can see the history for any host, and Atlas Advisor can answer questions like "did the acceptance test pass on the new hosts?"


What it checks

  • Test account signs in. The account signs in, and Atlas records how long the sign-in and the profile load took.
  • FSLogix profile container attaches. The container is mounted and the profile is not a temporary one. Skipped when FSLogix profile containers aren't turned on for the host. The FSLogix troubleshooting guide covers what to look at when this one fails.
  • Group Policy and logon scripts. Group Policy for the user applies without errors, and every logon script it assigns returns exit code 0.
  • Teams and AVD media optimization components. Teams, the Remote Desktop WebRTC Redirector Service and the Azure Virtual Desktop Teams setting are in place.
  • Audio. The Windows Audio services are running.
  • Your test script. Optionally, a PowerShell script from your Scripts library runs as the test account. Exit code 0 passes. Use it for anything specific to your environment: a line-of-business app that has to launch, a mapped drive, a license server.
  • Sign-out and profile detach. The account signs out, and its profile and profile container unload cleanly, so the next real user doesn't hit a locked profile.

You choose how strict it is

  • Required checks, per host pool. Under Session Acceptance Checks That Must Pass, remove the checks a pool doesn't need, for example Teams for a pool without Teams users. Checks you remove still run and show their result; they just don't hold the host back.
  • What happens on a failure. The default keeps a failed host in drain mode. Alert only releases the host and still raises the alert, for a pool where capacity matters more than a perfect sign-in.
  • Run it on demand. From the host pool's Session Acceptance Test section, Run test checks any existing host, for example after you change a GPO or an FSLogix setting. It doesn't change the host's drain mode unless you ask it to.
  • Set it where it belongs. The test is a setting in the Configuration Matrix, so you can turn it on at Global for every host pool, for one tenant, or for a single host pool. For an MSP, that means one client's production pool can require it while the rest don't.

It gates image rollouts too

If you roll out images in rings, a ring can require a passing Session Acceptance Test before it promotes. The ring waits until a host in its pools has passed the test since the ring started. A failure halts the rollout and rolls the ring's pools back to the previous image version.

That matters most for the ring nobody uses. An idle canary ring with no users would otherwise promote a broken image on bake time alone. With the test required, the image has to prove a real sign-in works before it moves on.


The test account is handled for you

The test uses a dedicated Microsoft Entra account with no admin roles, in the same groups as your users, so it gets the same desktop, FSLogix settings and Group Policy they do. When you save it, Atlas sets a new password for it, keeps that password only in your Key Vault, and changes it again after every run, so nobody knows it.

If you'd rather not give Atlas permission to change the account's password, you can enter the password yourself instead and change it on your own schedule. The setup guide also covers the Conditional Access exception the account needs, kept as narrow as possible.


What it doesn't test

The test signs in on the host itself. It doesn't go through the Azure Virtual Desktop gateway, and it can't confirm that Teams shows AVD Media Optimized or that microphones and speakers redirect, because those need a real Remote Desktop client on the other end. What it does cover is everything that happens inside the session, which is where most "my desktop is broken" tickets come from.


FAQ

What is a session acceptance test in Azure Virtual Desktop?

It's a check that a new session host works for a real user before users are allowed on it. In Atlas AVD, a dedicated test account signs in to the host while it is in drain mode, and Atlas checks the profile, Group Policy, Teams components and audio before releasing it.

Does the Session Acceptance Test slow down autoscale?

The host stays in drain mode for the length of the test, which is one sign-in, the checks and a sign-out. Users aren't sent to the host during that time; they keep landing on hosts that are already in service. If a pool is short of capacity, the new host joins a few minutes later than it would have without the test.

What happens if a new host fails the test?

By default it stays in drain mode and the Session Acceptance Test Failed alert is raised, naming the checks that failed. With Alert only, the host is released to users and the alert is still raised.

Is the Session Acceptance Test on by default?

No. It's off until you turn it on in the Configuration Matrix, for every host pool, one tenant, or a single host pool.

Does it work with on-premises session hosts?

No. The test runs through Azure Run Command, so it needs session hosts in Azure.


The Session Acceptance Test is one of hundreds of features in Atlas AVD built to take the repetitive, easy-to-miss parts of AVD management off your plate. Read the setup guide to turn it on, or try the interactive demo.

Related Resources

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 PowerShell Cheat Sheet: Az.DesktopVirtualization Commands You Can Copy

Copyable Az.DesktopVirtualization commands for the AVD jobs you do every week: host pools, session hosts, drain mode, user sessions (message, disconnect, log off), registration tokens, application groups and scaling plans, plus the naming and parameter traps that break scripts.

Read more
Blog

Onboarding Defender for Endpoint on Non-Persistent AVD Session Hosts

Session hosts rebuilt from a golden image need Microsoft's VDI onboarding script and the single-entry-per-device model, or every rebuild adds another device to Defender for Endpoint. The steps, what to keep out of the image, how to clean up duplicate devices, and the FSLogix exclusions Defender Antivirus needs.

Read more
Blog

Choosing FSLogix Storage: Cloud Cache vs Azure Files vs Azure NetApp Files

Microsoft recommends Azure Files for most FSLogix deployments, Azure NetApp Files for very large or latency-sensitive estates, and Cloud Cache when profiles must survive an outage. The comparison, identity support for Entra ID-joined hosts, what Cloud Cache really costs, and the three business continuity patterns.

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 session host can deploy, register and report Available while the first user to sign in gets a temporary profile, a failed logon script or no Teams media optimization. The Atlas AVD Session Acceptance Test signs a dedicated test account in to every new or reimaged host while it is still in drain mode, and only lets users on when it passes.

By David Smith, Founder and CEO, Atlas AVD,