PREP WITH PROOF
Menu
CERTIFICATION STUDY GUIDES / PRACTICAL GUIDE

AZ-140 Study Guide: Azure Virtual Desktop Drain Mode and Host Maintenance

Practice AZ-140 Azure Virtual Desktop operations with a worked drain-mode scenario on active sessions, pooled capacity, and returning a host to service.

THE QUICK ANSWER

For an AZ-140 maintenance question, first make the target host unavailable to new sessions, then handle existing sessions under the maintenance plan. Confirm capacity on the remaining hosts and prove that the updated host can serve users before closing the change.

Check pooled capacity before marking a host for maintenance

An Azure Virtual Desktop help desk pool has four session hosts. Each can support twenty sessions under the team's tested workload. Fifty-five users are connected at the expected start of maintenance. In the paper calculation, three healthy hosts could support sixty sessions, leaving a margin of five. Check how sessions are actually distributed and whether the same limits apply to all three remaining hosts.

If another ten users are due to arrive shortly, the simple model no longer shows enough capacity. Arrange additional approved capacity, move maintenance to a quieter window, or reduce the number of hosts taken out of rotation. The count of healthy hosts and the number of available sessions are different measures. Verify both before deciding that users can be routed elsewhere.

Separate routing new sessions from closing existing ones

Enable drain mode for the host that needs maintenance. This changes whether the service sends new sessions to that host. Verify the setting and inspect the active sessions on that specific host. Drain mode does not sign people out automatically. In a real change window, notify users under the existing process and let them save work before clearing sessions as authorized.

An agent reconnects to a session that already existed. Record that separately from a test user's brand-new session. For testing routing, use a user without an existing session and confirm which healthy host receives the request. For verifying the maintenance window, inspect the target host and confirm that the sessions that must end are actually closed before restarting it.

Verify the updated host before accepting new sessions

After the update, inspect the host in Azure Virtual Desktop and check its ability to serve the intended workload. Review the health information, verify the relevant applications, and look for problems that would affect profile attachment. Keep the host out of normal new-session routing while resolving any failed checks. Confirm that the remaining pool still has enough capacity while you investigate.

When the approved checks pass, disable drain mode and verify that the host becomes eligible again. A new connection can still land on another host because placement is subject to the pool's configuration. Check the pool's allocation and the test session destination before concluding that the updated host is still unavailable.

Work an original AZ-140 maintenance question

An administrator enables drain mode on one pooled host and immediately restarts it. Users report that sessions were interrupted. Explain which step was omitted and what list would have shown the risk. Then repeat the scenario with the correct order: verify spare capacity, stop new placements, handle current sessions, perform maintenance, and verify recovery before reopening the host.

For a final variation, one other healthy host becomes unavailable halfway through maintenance. Recalculate the available capacity and decide which planned changes should pause. Record the evidence for completing maintenance and for restoring enough capacity to handle the normal workload.

If you rehearse this in a test pool, record the host state and session count before each action. Compare the test after reconnecting an existing user and after starting a new session. Write down which observation proves that drain mode is working and which proves the target host is ready for maintenance.

KEEP THESE THREE THINGS

Your next steps

  1. Check pool headroom using the expected concurrent load.
  2. Verify existing sessions before restarting a drained host.
  3. Confirm host health and session eligibility after maintenance.

Sources & official resources

Linked resources checked on 2026-12-02. Technical behavior and provider guidance can change; check the documentation for the version you use.

About this guide and its recommendations

Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.

Suggest a correction →