Microsoft AZ-140: Session Host Images and Provisioning — Study Guide

Part of the Microsoft Azure Virtual Desktop Specialty AZ-140 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Session host images and provisioning underpin the reliability, performance, and security posture of Azure Virtual Desktop. Well-governed image pipelines minimize drift, accelerate rollout, and enable safe rollback while ensuring every session host is identically configured and properly joined to the right identity boundary. This section covers image source selection, Windows Enterprise multi-session options, Azure Compute Gallery, generalization and lifecycle, automation tooling, join models, agent registration, update strategy, and hardening with validation.

Image Sources and Operating System Options

Choosing the right base image and OS determines supportability, management effort, and user experience.

Azure Compute Gallery (formerly Shared Image Gallery) is the authoritative way to manage golden images at scale.

Provisioning, Generalization, and Automation

A disciplined image lifecycle and automation prevent configuration drift and ensure unique identities across hosts.

Join Options, Registration, and Network/DNS Considerations

Identity join and agent registration must be planned alongside name resolution and routing.

Update, Security Hardening, and Validation

Treat session hosts as immutable; scale out new hosts with a new image, drain and retire old ones.

Practical Problem Scenario

Siemens needs to standardize Azure Virtual Desktop across Western Europe and South India with Windows 11 Enterprise multi-session hosts. They require repeatable image customization, fast rollouts, safe rollback, and the ability to support both Microsoft 365 Apps and a line-of-business add-in. A managed Azure AD DS domain exists in the European hub VNet, and Siemens plans to deploy pooled host pools in both regions.

  1. Prepare name resolution and join prerequisites

    • Action: Set the DNS servers on both VNets to the Azure AD DS IPs and ensure VNet peering allows forwarded DNS traffic.
    • Why: Session hosts must resolve the managed domain for AD DS join. Updating VNet DNS first prevents join-time failures and ensures Kerberos and LDAP resolution.
  2. Build a golden image with Azure Image Builder

    • Action: Start from the Marketplace “Windows 11 Enterprise multi-session + Microsoft 365 Apps” image. Use Azure Image Builder to add FSLogix, Defender for Endpoint, language packs, and security baselines; then run Windows Update and sysprep generalization.
    • Why: AIB guarantees a repeatable, auditable pipeline that minimizes drift and produces a sealed image, ensuring every host is identical and compliant.
  3. Publish and replicate via Azure Compute Gallery

    • Action: Publish the captured image as version 1.0.0 in the Azure Compute Gallery and replicate to West Europe and South India. Mark 1.0.0 as latest; when preparing 1.1.0, set 1.1.0 to ExcludeFromLatest until validation completes.
    • Why: Gallery replication positions the image close to where hosts are created for faster provisioning and provides controlled promotion via latest and exclusion flags.
  4. Automate host pool and VM provisioning with Bicep

    • Action: Deploy host pools, application groups, and scaling plans as code. Create session hosts from the gallery version using a parameterized Bicep template that installs the AVD agent with a freshly generated registration token and performs AD DS domain join via the domain extension.
    • Why: Infrastructure as code ensures consistency across regions, makes rollouts idempotent, and streamlines registration to the broker with minimal manual steps.
  5. Validate in a dedicated validation host pool

    • Action: Stand up a small validation host pool in West Europe, enable validation environment, and direct a pilot group to it. Measure login performance, FSLogix behavior, and graphics counters; resolve findings, then remove ExcludeFromLatest on 1.1.0.
    • Why: Early detection of regressions prevents broad user impact and allows Siemens to promote only proven images.
  6. Execute production rollout with rollback safety

    • Action: Scale out new hosts in both regions from 1.1.0. Place old hosts in drain mode, deallocate and remove them after sessions end. Keep 1.0.0 available for two release cycles.
    • Why: Blue-green style replacement avoids in-place drift and enables instant rollback by provisioning from the previous image if issues arise.
  7. Harden and govern continuously

    • Action: Apply Azure Policy to restrict allowed images and required extensions, enable Defender for Cloud recommendations, and store FSLogix profiles on Azure NetApp Files for predictable high performance.
    • Why: Ongoing governance and high-performance profile storage sustain user experience at scale while preserving security posture.

Networking · All domains · FSLogix

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product