Back to exam

AZ-140 Cheatsheet

Configuring and Operating Microsoft Azure Virtual Desktop

Download free PDF

Plan and implement an Azure Virtual Desktop infrastructure (40–45%)

Resources and delivery model

  • **Azure Virtual Desktop (AVD)** supplies managed brokering, gateways and resource discovery. You manage session host VMs, images, applications, identity integration and profile storage.
  • A **host pool** groups session hosts. An **application group** publishes a desktop or RemoteApps from one pool. A **workspace** aggregates application groups into the user feed.
  • Assign users or security groups to the **application group**. Register the group with a workspace so assigned resources appear in clients; host pool management permission alone does not publish a desktop.
  • Keep session hosts in a pool consistent in OS, application set and configuration. Use separate pools for distinct desktop operating systems, workload needs or isolation requirements.
  • A workspace can present groups from multiple pools. Application groups from the same pool use the same workspace; align workspace, app-group and host-pool metadata locations as required.

Pool type and session placement

  • **Pooled** desktops share compute among users; Windows Enterprise multi-session supports concurrent interactive sessions. **Personal** desktops assign a dedicated host to each user.
  • **Automatic personal assignment** allocates an available host at first connection and retains that assignment. **Direct assignment** requires both application-group access and an explicit user-to-host mapping.
  • **Breadth-first** spreads new sessions across available hosts. **Depth-first** fills a host toward its configured session limit before placing new sessions on another host.
  • **MaxSessionLimit** is a per-host concurrency setting. Nominal pooled capacity is host count × sessions per host; reserve headroom for maintenance and failures. Reconnecting users normally return to their existing session.
  • Host-pool metadata location and **session host region** are separate choices. Select nearby compute, profile storage and authentication services to reduce user and sign-in latency.

Sizing, quotas and network capacity

  • Size for **peak concurrent users** and measured CPU, RAM, disk IOPS, graphics and network demand. Required hosts = round up concurrent sessions ÷ tested sessions per host, plus resilience capacity.
  • **D-series** suits general-purpose workloads; **NV-series** supplies GPU capabilities for supported graphics workloads. **B-series** uses CPU credits for bursts and needs careful assessment for sustained interactive load.
  • Check both **regional total vCPU quota** and **VM-family quota**, plus regional SKU availability. Stopping a VM is not a substitute for securing the quota needed for deployment.
  • **VM size** sets aggregate network and disk performance limits. Accelerated Networking reduces networking overhead on supported VMs; extra NICs do not multiply the VM bandwidth ceiling.
  • Estimate bandwidth from concurrent workloads and their actual network paths. Home users connecting directly to Azure do not consume the office internet link. Use the **Experience Estimator** to compare client-to-region latency.

Access rights and infrastructure charges

  • For Windows Enterprise session hosts, each internal user needs eligible **Windows Enterprise, Windows VDA, or Microsoft 365** rights. Examples include Windows Enterprise E3/E5 and Microsoft 365 E3/E5 or Business Premium.
  • **Office 365** or a standalone Microsoft 365 Apps license does not by itself grant Windows desktop access rights. Check application licensing separately, including shared computer activation rights for Microsoft 365 Apps.
  • **Windows Server** session hosts require eligible RDS CALs with Software Assurance or RDS user subscription licenses. Windows client access rights and RDS server licensing are different models.
  • **Per-user access pricing** is for external commercial customers and is enrolled at subscription scope. It adds access charges to compute, storage and networking; keep already licensed internal use in a separate unenrolled subscription.
  • Set the VM **LicenseType** correctly for Windows client session hosts and inspect it with **Get-AzVM**. Use **Update-AzVM** to persist a VM licensing-property change; this property does not assign user licenses.

Hybrid connectivity and DNS

  • For **site-to-site VPN**, plan a virtual network gateway, its public IP, a local network gateway representing the on-premises endpoint and prefixes, and an IPsec connection. ExpressRoute provides private circuit connectivity.
  • Reserve non-overlapping address space and a dedicated **GatewaySubnet**. A workload subnet using the entire VNet range leaves no room for the gateway subnet; plan address ranges before deployment.
  • **VNet peering**, including global peering, carries private traffic over the Microsoft backbone. Peering is non-transitive; gateway transit and use of a remote gateway need deliberate configuration.
  • For AD DS or managed-domain join, configure **VNet DNS** to reachable DNS servers that resolve the domain. Provide redundant resolvers, internal forwarding and internet resolution; renew guest network configuration after changes.
  • Place domain controllers and **AD sites/subnets** near regional session hosts to reduce authentication latency. When remote address ranges change, update VPN prefixes, routing and security rules as well as DNS.

Transport and outbound dependencies

  • **Reverse connect** uses outbound connections from session hosts to the AVD service, primarily over TCP 443. Ordinary AVD access does not require public IPs or internet-facing inbound TCP 3389 on session hosts.
  • Allow the required **AVD, identity, certificate, update and activation endpoints**. Use applicable service tags and Azure Firewall FQDN tags to simplify rules; an AVD allow rule does not automatically allow every application dependency.
  • **NSGs** filter IP, port and protocol traffic. **Azure Firewall** adds centralized outbound and FQDN filtering. Use routes and matching firewall rules to restrict user internet access while preserving service connectivity.
  • For routed firewall designs, keep **DNS resolution and FQDN filtering** consistent; Azure Firewall DNS proxy can centralize this. Confirm symmetric routes and avoid unsupported inspection of required service traffic.
  • A storage **service endpoint** retains the service public endpoint with subnet-based access controls. A **private endpoint** gives the service a private IP and needs matching private DNS resolution; both can use the backbone.

Shortpath and traffic priority

  • **RDP Shortpath** establishes UDP transport for the interactive session when connectivity permits. Managed-network Shortpath uses direct reachability, such as VPN or ExpressRoute; its default host listener is **UDP 3390**.
  • Permit the matching host firewall and NSG traffic. The managed-network listener runs through **svchost.exe**; public-network Shortpath uses supported NAT traversal or relay paths with different network requirements.
  • For managed-network **QoS**, use policy-based marking for UDP traffic from the Shortpath service and port. **DSCP 46** represents Expedited Forwarding; routers must honor the marks throughout the controlled path.
  • Measure **RTT, jitter and packet loss** as well as bandwidth. QoS prioritizes traffic on managed links; it does not create capacity or guarantee priority across the public internet.

Private Link resource targets

  • An AVD **connection** private endpoint targets a **host pool**. A **feed** endpoint targets each workspace whose feed is private. The shared **global** discovery endpoint targets a workspace.
  • For fully private discovery and feeds, plan **one global discovery endpoint**, a feed endpoint per workspace and a connection endpoint per pool, subject to network isolation requirements. A dedicated discovery workspace avoids coupling it to published apps.
  • Plan client VPN/ExpressRoute reachability, host connectivity, **private DNS**, endpoint approval and public-access settings together. A host-pool endpoint does not make FSLogix storage private; configure storage endpoints separately.

Profile storage choices and permissions

  • **FSLogix containers** need suitable low-latency storage. **Azure Files** supplies managed SMB shares; premium SSD-backed shares suit demanding sign-in I/O. Standard HDD-backed shares offer cost-oriented access tiers.
  • **Azure NetApp Files** provides enterprise SMB volumes with provisioned performance. Register **Microsoft.NetApp**, create a NetApp account and capacity pool, configure a delegated subnet and AD connection, then create an SMB volume.
  • For Azure Files, enable a supported **identity-based SMB authentication** source: AD DS, Microsoft Entra Domain Services or Microsoft Entra Kerberos. Match user identity, host join and authentication prerequisites; Entra join alone does not grant file access.
  • Grant both **share-level access** and **NTFS permissions**. Storage File Data SMB Share Contributor permits file read/write/delete; Elevated Contributor also permits ACL changes. Azure resource Owner does not automatically supply identity-based SMB data access.
  • At the profile-share root, allow users to create their own profile directories while restricting access to other users. Apply **CREATOR OWNER** to subfolders and files, with appropriate administrator access and inheritance.
  • Keep storage near hosts and size IOPS, throughput and network bandwidth for **sign-in storms**. A self-managed Scale-Out File Server with Storage Spaces Direct also needs quorum, resilient disks and redundant nodes; node count alone does not determine tolerated failures.

Registration and deployment automation

  • Register **Microsoft.DesktopVirtualization** before creating AVD resources. Host-pool creation, VM provisioning, domain join and agent registration are separate deployment steps.
  • Generate a time-limited pool **registration token** with **New-AzWvdRegistrationInfo**. Install the AVD Agent and Boot Loader on prepared hosts and supply the token to register them with the intended pool.
  • Before registering existing VMs, confirm supported OS, join state, outbound endpoints and domain permissions. Windows Server session hosts also need the **Remote Desktop Session Host** role service.
  • **Az.DesktopVirtualization** manages pools, app groups, workspaces and sessions. **Az.Compute** manages the underlying VM. Deploy ARM or Bicep with **New-AzResourceGroupDeployment**; **az deployment group create** accepts a Bicep template.
  • Use parameterized templates and controlled post-deployment scripts for repeatable builds. Keep credentials and registration tokens out of images and source code; use narrowly scoped managed identities for deployment automation.

Image preparation and capture

  • Build from a supported Windows image; install apps, **FSLogix**, language resources and policy settings before capture. Install user applications in the scope needed by all users and validate multi-session compatibility.
  • **Sysprep /generalize /oobe /shutdown** removes machine-specific state before generalized capture. Deallocate and capture the prepared VM; do not restart the generalized source before creating the reusable image.
  • A **generalized** image lets provisioning supply new computer identity and settings. A **specialized** image retains machine-specific state; choose the OS state and image definition deliberately.
  • For a Hyper-V disk uploaded as an Azure image, convert **VHDX to fixed-size VHD** and meet Azure disk alignment and size requirements. Match VM generation, firmware and image definition; Windows 11 requires a suitable generation 2 design.
  • Add language packs and matching Features on Demand, then validate modern apps and language availability. Control **unused language-pack cleanup** when provisioned languages must remain available.
  • Keep durable application data off the **temporary resource disk**, often D:. To reuse its letter, relocate temporary-disk/pagefile usage safely before assigning a persistent data disk; preserve the required VM and disk performance.

Gallery versions and automated builds

  • **Azure Compute Gallery** organizes image definitions and numbered image versions. Definitions describe compatibility properties; versions hold deployable content and regional replica settings.
  • **Latest** selects the highest eligible major.minor.patch version. **Exclude from latest** prevents automatic selection while preserving explicit version deployment; pin a version for reproducible troubleshooting or rollback.
  • Replicate each required **image version** to target regions and provide enough replicas for deployment scale. A new version needs its own distribution settings; replication does not update already running hosts.
  • **Azure VM Image Builder** uses **Microsoft.VirtualMachineImages** and a user-assigned managed identity with scoped build/distribution permissions. Custom image templates automate image customization and gallery publication.
  • Test a new image in a pilot, deploy replacement hosts, drain old hosts and retire them after sessions end. Stage **Defender for Endpoint onboarding** for each clone at first startup or through a management policy using the supported VDI procedure.

Plan and implement identity and security (15–20%)

Join state and sign-in eligibility

  • **AD DS join** supplies traditional domain authentication. **Microsoft Entra hybrid join** combines domain membership with an Entra device identity. **Microsoft Entra join** uses cloud device identity without traditional domain join.
  • **Microsoft Entra Domain Services** supplies managed domain join, Kerberos/NTLM and Group Policy. Configure domain DNS and authorized join credentials; **AAD DC Administrators** provides managed-domain administrative delegation.
  • Successful access needs an identity supported by the chosen host join model, **application-group assignment**, OS sign-in permission and any required storage access. A feed assignment does not create a missing domain account.
  • For Microsoft Entra joined hosts, assign **Virtual Machine User Login** at the appropriate VM or inherited scope. **Virtual Machine Contributor** manages the resource but does not grant guest OS sign-in; use Administrator Login only when elevated access is required.

Delegate the narrowest AVD role

  • **Desktop Virtualization Host Pool Contributor** manages host pools and their settings, including RDP properties. **Session Host Operator** handles session-host operations such as drain mode; VM power and disk management also need compute permissions.
  • **Desktop Virtualization User Session Operator** can message, disconnect and sign out user sessions. Scope it to the pools the help desk supports.
  • **Application Group Contributor** manages application groups and publishing. **Workspace Contributor** manages workspaces; add **Application Group Reader** when related app-group inspection is needed.
  • **Desktop Virtualization User** grants use of the applications or desktop at application-group scope. Assigning users requires role-assignment authority as well as resource management; Contributor roles generally cannot grant RBAC access.
  • **User Access Administrator** or appropriately scoped RBAC administration permits role assignments. Separate Azure resource roles from **Entra directory roles**, domain permissions and storage data permissions.

Conditional Access and authentication

  • **Conditional Access** selects users, target resources and conditions, then applies grant or session controls. Require **MFA** and **compliant device** grant controls together when both must be satisfied.
  • Target **Azure Virtual Desktop** for service/feed and gateway authentication. Target **Windows Cloud Login** for session-host authentication with Entra SSO; align protection across both authentication stages.
  • **Sign-in frequency** governs reauthentication when authentication is reevaluated. It does not by itself log off a live Windows session at an exact elapsed time; use session-host policies for idle or disconnected-session limits.
  • Use **named locations** based on office public egress IPs to restrict source locations. The client sign-in location and session host IP are different signals. Client-app conditions can distinguish browser access from supported native-client access.
  • **Authentication methods policies** enable and target methods such as Microsoft Authenticator or certificate-based authentication. **Authentication strength** can restrict accepted methods; requiring MFA alone does not force a particular MFA method.
  • **Authenticator push number matching**, passwordless phone sign-in and certificate-based authentication are distinct mechanisms. Validate registration, policy targeting, certificate trust and the authentication requirement for each.

Single sign-on and passwordless access

  • **Microsoft Entra SSO** uses a token to authenticate to supported Entra joined or hybrid joined session hosts. Enable the tenant configuration and the host-pool property **enablerdsaadauth:i:1**, using a supported client.
  • The **Windows Cloud Login** service principal has a **remoteDesktopSecurityConfiguration** object; enabling its RDP protocol setting is part of tenant SSO setup. Hybrid designs can also require an Entra Kerberos server object.
  • **targetisaadjoined:i:1** is a connection property used in specific Entra joined sign-in scenarios. It is distinct from the Entra SSO setting and does not replace tenant SSO prerequisites or VM login permissions.
  • Passwordless methods depend on the complete **client, OS, join and SSO** combination. Test reconnect and lock behavior along with Conditional Access; a cloud feed sign-in and Windows session unlock are separate events.

Host security and application control

  • **Trusted launch** combines supported generation 2 VMs with **Secure Boot** and **vTPM**. A **confidential VM** adds hardware-backed protection for data in use and requires a compatible VM/image deployment.
  • **Microsoft Defender Antivirus** provides antimalware protection; **Get-MpComputerStatus** reports status. **Controlled folder access** protects selected folders; reputation-based protection is configured under **App & browser control**.
  • **Defender for Endpoint** adds endpoint detection and response; Defender web/network protection can block risky destinations. Manage exclusions for FSLogix container files and Cloud Cache components through narrowly scoped policy.
  • **AppLocker** and **App Control for Business (WDAC)** restrict executable code. Publishing only a RemoteApp does not prevent users launching other executables through dialogs or shell features.
  • For WDAC, convert an XML policy to the supported **binary policy format** and deploy using the chosen single-policy or multiple-policy mechanism. Pilot in audit mode before enforcement; the deployment path depends on the policy model.
  • **Screen capture protection** and **watermarking** are session-host policies. They require compatible clients and may restrict unsupported connection paths; validate full desktop and RemoteApp behavior separately.

Administrative access and policy

  • **Azure Bastion** provides administrative RDP to private VM IPs through the Azure portal. Native-client and CLI connections require a supporting Bastion SKU and configuration; eligible peered VNets can share a Bastion deployment.
  • **Just-in-time VM access** opens selected management ports for a limited source and duration through supported NSG/firewall controls. It is a **Defender for Servers Plan 2** capability and is separate from normal AVD brokering.
  • **Managed identities** let VMs and automation access supported Azure APIs without stored credentials. Grant access to the actual VM or automation identity; a RemoteApp publication is not the executing VM identity.
  • **Azure Policy** can restrict permitted VM extensions or audit resource settings across many hosts. Use **Intune configuration profiles** or domain GPOs for guest settings; compliance policies assess state and can feed Conditional Access.

Plan and implement user environments and apps (20–25%)

FSLogix profile configuration

  • **Profile Containers** mount a user VHD/VHDX so profile data follows the user across hosts. **ODFC Containers** isolate supported Microsoft 365 application data; a full profile container already includes that data unless deliberately separated.
  • Configure **HKLM\SOFTWARE\FSLogix\Profiles**, set **Enabled=1** and specify **VHDLocations** for standard SMB storage. Use a UNC path such as **\\account.file.core.windows.net\profiles**, rather than an HTTPS or Blob URL.
  • Ensure the FSLogix agent is installed and configuration is consistent on all hosts. Use supported user authentication plus share/NTFS rights; an Azure management role or a SAS token is not a general replacement for SMB user access.
  • **FSLogix Profile Include List** selects eligible users; **Profile Exclude List** takes precedence. Profile and ODFC containers have separate include/exclude groups. An excluded administrator can use a local profile.
  • Per-user FSLogix registry overrides identify users by **SID**. Check effective settings and nested group membership when a user gets a local profile or loses changes after moving to another host.

Profile failure and folder controls

  • **PreventLoginWithFailure** blocks usable logon when the profile container cannot attach; **PreventLoginWithTempProfile** addresses temporary-profile fallback. Test failure behavior so users do not unknowingly save work to a disposable profile.
  • **DeleteLocalProfileWhenVHDShouldApply** removes an existing matching local profile when the container should apply. Protect any required local data first; it is distinct from blocking a failed container attachment.
  • **redirections.xml** controls selected profile-folder exclusions and inclusions. **RedirXMLSourceFolder** points to its source folder, excluding the filename, so FSLogix can copy the file into the profile.
  • Install **fslogix.admx** in **C:\Windows\PolicyDefinitions** and the English **fslogix.adml** in its **en-US** subfolder, or use the domain Central Store. Apply configuration consistently through GPO or a supported management tool.

Cloud Cache and profile resilience

  • **Cloud Cache** uses a local cache and configured remote providers to tolerate storage interruptions and support resilient profile designs. Configure provider connections with **CCDLocations**, replacing standard **VHDLocations** for that container.
  • Plan fast local cache storage, free space, provider connectivity and write-back behavior. Multiple ordinary **VHDLocations** entries are location choices; they do not replicate each profile between shares.
  • **LRS** protects within one location; **ZRS** synchronously spans availability zones in a region. **GRS/GZRS** add asynchronous geo-replication where supported. ZRS is not synchronous replication between regions.
  • Use multiple regional providers when the Cloud Cache design requires regional profile availability. Test recovery and sign-out synchronization; **replication does not replace backup history**, and loss of unsynchronized cache can lose changes.

RemoteApp publishing and feed names

  • A **desktop application group** publishes the full desktop. A **RemoteApp application group** publishes selected applications from its host pool; maintain the required installation or app-attach availability across its eligible hosts.
  • For installed apps, publish from the **Start menu** or an explicit executable path. Assign groups to the intended users, register them with the workspace, and refresh the client feed after changes.
  • **Update-AzWvdApplication -FriendlyName** changes the user-visible RemoteApp name. **Update-AzWvdDesktop** changes a desktop friendly name. Keep publication identifiers and names stable when updating application versions.
  • When an application update changes its executable path, update or recreate the publication to match the new path and preserve the intended display name and icon. Updating an application group does not install the new executable.
  • An app group belongs to **one host pool**. To publish a suite from several pools, create the corresponding group for each pool and register them into the intended workspace; one workspace can still present a unified feed.

Package delivery with app attach

  • **App attach** separates application packages from the session-host OS image. The application image is mounted and registered for the user session, reducing repeated installations and image rebuilds.
  • Use the **MSIX Packaging Tool** to capture an installer, its files and registry changes into MSIX. Sign the package with a trusted certificate and expand it into a supported app-attach image.
  • **MSIXMGR** prepares supported app images; **VHD/VHDX** and **CIM** are image formats. CIM can reduce mount overhead on supported hosts; package compatibility and image format are separate decisions.
  • Store images on a reachable **SMB share**, grant the required session-host and user access for the chosen identity model, and configure package assignment and availability. Do not confuse an app image with an FSLogix profile VHDX.

Application Masking and policy scope

  • **FSLogix Application Masking** hides selected files, folders, registry entries and applications according to rule assignments. It is useful when different users share the same installed application set.
  • Create rules with the **FSLogix Rules Editor** on a management workstation. Deploy the **.fxr** rule and **.fxa** assignment files to **C:\Program Files\FSLogix\Apps\Rules** on each relevant session host.
  • Apply masking on the host whose view must change and target the intended users/groups. Profile exclusions govern profile contents; **AppLocker/WDAC** supplies broader code-execution enforcement.
  • **GPO loopback processing** applies user settings based on the session host computer OU. **Merge** combines normal user settings with computer-linked user settings; **Replace** uses the computer-linked user-policy set.

Clients, display and redirection

  • **Windows App**, supported Remote Desktop clients and a supported **web client** provide different feature sets. A browser is useful when users cannot install apps; validate required peripherals and security features against the client platform.
  • **Email discovery** uses a DNS **TXT** record named **_msradc** in the email domain to advertise feed discovery for supported clients. Workspace subscription and direct **mstsc.exe** administrative RDP are different connection flows.
  • Configure host-pool **RDP properties** for desktop resolution, scaling, monitors, clipboard, audio, camera, printer and drive redirection. Session-host Group Policy can further restrict the effective behavior.
  • Disable **clipboard** and **drive redirection** when users must not transfer files through those channels. For USB storage, configure drive redirection for all required drives, including devices attached during the session, and verify host policy.
  • Resetting a client can remove workspace subscriptions and saved settings. Confirm the client product and supported reset command before use; after reset, subscribe again and test resource discovery.

Session limits and settings management

  • Use **Remote Desktop Session Host > Session Time Limits** policies for active, idle and disconnected-session limits. **Disconnect** retains the Windows session; **sign out** ends it and closes applications.
  • To log users off after an idle threshold, configure the idle limit and **End session when time limits are reached** as appropriate. A disconnected-session limit controls how long an already disconnected session remains.
  • Use domain GPOs for domain-joined hosts or **Intune** for supported enrolled Entra/hybrid joined hosts. Computer and user policy can interact; computer policy takes precedence for matching session time-limit settings.
  • Manage Edge and OS settings through **configuration policies**. Use least privilege for local Administrators membership; personal desktop assignment does not automatically make a user a local administrator.

OneDrive, Microsoft 365 Apps and Teams

  • Use **per-machine OneDrive installation** for shared hosts and FSLogix for persistent user state on pooled or disposable hosts. Files On-Demand limits local download demand; a profile container and OneDrive file synchronization solve different needs.
  • For OneDrive with **RemoteApp**, use supported Windows session hosts and a supported Windows client. Enable **enhanced shell experience for RemoteApp** on the session hosts and configure their **Run\OneDrive** startup registry value.
  • Deploy **Microsoft 365 Apps** with the correct activation configuration and eligible user licensing. Validate first launch, sign-in, Outlook cache and profile persistence on every image release.
  • **Teams media optimization** redirects supported audio/video processing to the client. Use compatible Teams, client and FSLogix components; the **Visual C++ Redistributable** is required for supported Windows media optimization.
  • **SlimCore** and the **WebRTC Redirector Service** are different Teams optimization paths. The WebRTC service is installed on session hosts; **IsWVDEnvironment=1** identifies the virtual desktop environment. Install Teams per-machine for pooled hosts and verify optimization in the session.

Monitor and maintain an Azure Virtual Desktop infrastructure (10–15%)

Scaling plans and on-demand startup

  • **Scaling plans** manage capacity by schedule and demand. Pooled schedules define **ramp-up, peak, ramp-down and off-peak** phases, minimum active hosts and capacity thresholds; set a realistic per-host session limit.
  • The minimum host percentage establishes a floor, while capacity thresholds can require more hosts. Phase-specific load balancing can favor breadth-first distribution or depth-first consolidation.
  • **Start VM on Connect** is enabled per host pool and powers on eligible existing session hosts when users connect. It increases connection time while the VM starts and does not itself shut down unused VMs.
  • Grant the **Azure Virtual Desktop service principal** the **Desktop Virtualization Power On Contributor** role for Start VM on Connect, or the appropriate **Power On Off Contributor** role for power-management autoscale at the required subscription scope.
  • Match scaling-plan type and metadata region to the host pool. Role assignment requires separate authorization; avoid overlapping autoscale with another power controller. Use exclusions for maintenance hosts and managed identities for custom runbooks.

Drain, patch and update safely

  • **Drain mode** prevents new sessions on a host while preserving existing sessions and reconnections. Use it before maintenance, notify users, then wait or explicitly sign them out before stopping or replacing the VM.
  • **Get-AzWvdUserSession** lists sessions; **Send-AzWvdUserSessionMessage** notifies users; **Disconnect-AzWvdUserSession** disconnects; **Remove-AzWvdUserSession** signs out. **Update-AzWvdSessionHost** controls host settings and personal assignment.
  • Enable a small pilot pool as a **validation environment** to test AVD service updates before wider rollout. Validation is separate from OS patches, application updates and disaster-recovery testing.
  • **Scheduled agent updates** provide up to **two maintenance windows** with explicit or local-host time-zone handling. Monitor failures; agent scheduling does not patch Windows or applications.
  • For OS and application updates, use an appropriate client/server management method or rebuild the golden image. Deallocate unused VMs to stop compute charges; retained disks and other resources can still incur costs.

Diagnostics, Insights and log queries

  • **Diagnostic settings** route AVD platform logs to **Log Analytics**. Enable relevant host pool, workspace and application-group categories; platform diagnostics and VM guest telemetry are separate data sources.
  • **Azure Virtual Desktop Insights** uses collected platform and guest data to show connection reliability, user experience, host performance and client details. Configure **Azure Monitor Agent** and **data collection rules** for required guest counters and events.
  • Use **KQL** to filter connection records by user, pool, state and time. Group daily results with **summarize** and **bin(TimeGenerated, 1d)**; count the intended connection event or distinct correlation ID to avoid counting several states of one connection.
  • Use **client version/OS** fields in connection diagnostics to identify problematic client builds. Correlate connection, error and checkpoint records to separate feed discovery, authentication, brokering and host logon failures.
  • **Azure Activity Log** records resource-management actions. **Entra sign-in logs** explain authentication and Conditional Access decisions; **Service Health** reports relevant platform incidents. Choose the log that owns the event.

Locate the performance bottleneck

  • Start with **host health and agent status**, required URL reachability, DNS, join state and authorization. For slow sign-in, check profile storage latency, SMB authentication, container locks, free space and policy processing.
  • Use **Performance Monitor** and **RemoteFX Graphics** counters for session graphics. **Frames Skipped/Second** counters distinguish insufficient server, network or client resources; assess encoding time, frame rate and image quality together.
  • **qwinsta** or **query session** identifies Windows session IDs for matching counters and events. Confirm the user, host and session before taking action.
  • Compare CPU, memory, disk queues, storage throughput, network utilization and RTT during the same affected interval. Adding hosts helps shared compute pressure; it may not fix a saturated profile share or poor client network.

Backup units and recoverable history

  • **Azure Backup** protects supported session-host VMs and Azure file shares through a **Recovery Services vault**. **Azure Disk Backup** uses a **Backup vault** for supported managed-disk protection; choose by workload and restore unit.
  • For Azure Files protection, align vault, storage account, subscription and region requirements. Protection policies control schedule and retention; a gallery image version is a deployment artifact, not an automatic backup of a live desktop.
  • **Azure NetApp Files snapshots** provide volume recovery points and can support previous-version file recovery. A snapshot of a volume containing profile VHDX files is not automatically an individual-file restore from inside each container.
  • Moving file-share protection between vaults requires a controlled **stop-protection/unregister/register** workflow consistent with retained backups and soft delete. Existing recovery points do not simply move to the new vault.
  • Test restoring profile containers and personal desktop data. Recover a consistent, detached profile copy and preserve permissions; replication alone cannot recover an earlier version after accidental deletion or corruption.

Availability and regional recovery

  • **RTO** is the acceptable recovery time; **RPO** is acceptable data loss. Protect session hosts, images, profiles, apps, DNS and identity dependencies together, then exercise the complete user reconnection path.
  • **Availability zones** protect against zonal failures. For regional failure, use a second regional deployment with reachable applications and replicated profile data; storage ZRS alone does not survive loss of an entire region.
  • **Active-active** keeps usable capacity in both regions. **Active-passive** reserves or prepares recovery capacity with lower normal compute cost but potential startup delay; verify quota and capacity before relying on it.
  • For pooled hosts, maintain regional images and repeatable replacement deployments. **Azure Site Recovery** can replicate eligible stateful/personal VMs; **Azure Backup** provides historical restore points with a different recovery process.
  • Separate regional **host pools** allow controlled placement and can publish into one workspace. Hosts in multiple regions within one pool share that pool's placement behavior; a single feed icon does not by itself provide geographic affinity.
  • Document failover and failback, drain or sign out conflicting sessions, verify profile synchronization and test in isolation. Preprovisioned recovery hosts usually reduce RTO compared with creating all resources during an outage.