Migrating Citrix to AVD — Part 5: Images and Session Hosts

Migrating Citrix to AVD — Part 5: Images and Session Hosts

MIGRATING CITRIX TO AVD — PART 5 OF 10

Images and Session Hosts

This is post 5 of a ten-part series. Part 4 built the four objects users touch — host pool, application group, workspace, RDP properties. Part 5 builds what runs inside them: the golden image and the session hosts it produces. The image is the one artifact every user in the estate will log into, so it is also the one place where a shortcut taken now becomes a support ticket for everyone later.

Work the migration with the Citrix to AVD Migration Checklist.

Build fresh — never convert a Citrix master image

The tempting move is to take the existing Citrix master image, uninstall the VDA, and call it the AVD image. Do not. A Citrix master image carries more than the VDA: Profile Management hooks, Citrix policies baked into the OS, HDX settings, and the provisioning identity of the old platform. Stripping is possible — the VDA uninstalls cleanly from Programs and Features, or at scale with XenDesktopVdaSetup.exe /remove, and Profile Management uninstalls the same way — but “uninstalled” is not “never there.” Start from a fresh Azure Marketplace image and install only what AVD needs. The old image stays as a reference for what was installed, not as the base for what will run.

The operating system: Windows 11 Enterprise multi-session

The default desktop image for pooled host pools is Windows 11 Enterprise multi-session — one VM, many concurrent interactive sessions, the familiar Windows client experience instead of a Windows Server desktop. Single-session Windows 11 Enterprise is the image for personal host pools, where one user owns one VM. That mapping is the same one Part 4 set for the pools themselves, and the image follows the pool type.

Pick the image from the Azure Marketplace: search the Windows 11 offering and select the Enterprise multi-session plan. Microsoft refreshes Marketplace images monthly, after the security patch release, so a fresh build starts patched. The image needs an eligible licence per user — the same licences Part 1 named: Microsoft 365 E3/E5, A3/A5, F3, Business Premium, Windows Enterprise E3/E5, or Windows VDA E3/E5. Multi-session runs only inside the AVD service (or through an approved provider such as Citrix); it will not activate against an on-premises KMS, and you cannot upgrade an existing Pro or Enterprise VM to multi-session — it is a redeploy.

The golden image build, step by step

Build on a throwaway VM, never on a host that will serve users. The order matters, and two of the steps are things you must not do:

Step What to do Why
1. Base VM Create a VM from the Marketplace multi-session image, without the “Login with Microsoft Entra ID” flag The build VM is a workshop, not a session host
2. Snapshot Snapshot the OS disk before installing anything heavy Rollback points; a failed app install costs minutes, not a rebuild
3. Install Sign in, install apps, updates, and settings; join the domain only if a step needs it Apps baked into the image are the same on every host
4. FSLogix Check the FSLogix version — it comes preinstalled on multi-session Marketplace images; update it with FSLogixAppsSetup.exe /install /quiet if it is not the latest Profiles follow the user, not the host; Part 6 configures the container
5. Unjoin Remove the VM from the domain before Sysprep A domain-joined image Syspreps badly
6. Do NOT install the AVD agent Never install the agent on the image, and never join the build VM to a host pool Hosts built from an agent-bearing image fail to join — the registration token expires
7. Sysprep Disable antivirus first, then run sysprep.exe /generalize /shutdown Generalizing strips machine identity so every host gets a fresh one
8. Capture Capture the generalized VM into Azure Compute Gallery, then delete the base VM The Gallery version is the artifact; the build VM is scrap

Three rules from Microsoft’s own golden-image guidance, worth printing on the wall: never capture the same VM twice — rebuild from the last snapshot instead; never build a new base VM from an existing custom image — always start fresh from the Marketplace image; and never capture a VM that already exists in a host pool.

Hub-cycle diagram: the golden image build — Marketplace multi-session, snapshot the OS disk, install apps and FSLogix, unjoin and Sysprep, capture to the Gallery as version 1.0.0.

Azure Compute Gallery: one version, every region

The Gallery is where the image lives after capture, and it has three levels: the gallery (the repository), the image definition (the logical grouping — OS type, OS state, Hyper-V generation, security type), and the image version (the deployable copy, named Major.Minor.Patch, for example 1.0.0). You deploy from a version, never from a definition. Learn recommends Gallery images for production because of replication and versioning; a standalone managed image is the simpler-deployment alternative.

Replication is the point of the Gallery for a multi-region estate: each version replicates to the regions you choose — including the source region — with a replica count per region. That is how the Part 3 landing zone gets the same image in every region without rebuilding it. The Gallery service itself carries no extra charge; you pay storage per replica, billed as a snapshot on the image version’s occupied size, plus network egress for the first copy from the source region to each replicated region. Learn’s own example: a 127 GB OS disk occupying 10 GB, replicated to three regions with two replicas each, bills as six 10 GB snapshots. Keep that arithmetic next to the sizing table below — the image is cheap, the hosts are not.

Sizing by workload tier, with honest cost math

Sizing comes from the Part 2 evidence, not from a vendor’s default. Learn’s session-host sizing guidance gives maximum users per vCPU for multi-session hosts — generic guidelines for initial estimates, to be confirmed by the pilot:

Workload tier Max users per vCPU Minimum host Example sizes
Light 6 8 vCPU / 16 GB RAM D8s_v5, D8s_v4
Medium 4 8 vCPU / 16 GB RAM D8s_v5, D8s_v4
Heavy 2 8 vCPU / 16 GB RAM D16s_v5, D16s_v4
Power 1 6 vCPU / 56 GB RAM D16ds_v5, NV-series (GPU)

For the worked estate — 480 peak sessions, medium workload — the math is 8 vCPUs × 4 users = 32 sessions per host, so 15 hosts at the ceiling, plus headroom. Single-session personal hosts size differently: Light 2 vCPU / 8 GB, Medium 4 vCPU / 16 GB, Heavy 8 vCPU / 32 GB, with 30 GB minimum profile storage in every tier. Learn’s guidance keeps multi-session VMs in the 4–24 vCPU range, and for 20 or more users on one VM, several smaller VMs beat one or two large ones.

Panel-duo diagram: the sizing rule — 4 users per vCPU for medium workloads, Light 6, Heavy 2, Power 1, 8 vCPU / 16 GB minimum — and the honest sizing steps: tier from Part 2 evidence, 32 sessions per host, cost is compute plus disk plus replicas.

Now the cost honesty. There is no separate AVD service fee for session hosts in Azure — the bill is the underlying consumption: VM compute per hour (usually the largest line), managed-disk storage for the OS and data disks, and network bandwidth, plus the FSLogix profile storage on Azure Files or Azure NetApp Files and the Gallery replica storage above. Against those lines, set the licence saving: the Citrix licence lines retired, minus the Azure consumption. A host that is deallocated stops metering compute; a host left running through the night does not. That is why the Part 10 scaling plan matters more than any single sizing choice — the image decides the cost per host, the scaling plan decides how many hosts run.

One image, or several?

One image is the starting point, not the rule. The split decision is the series’ rule, and it is editorial — Microsoft publishes no guidance on how many images an estate should keep — so treat it as a decision with a cost, not a default:

– One general image for everyone is the default. Every app that can live in it, lives in it.

– An IT image earns its keep when admin tooling would pollute the general image or hand every user tools they should not have.

– A vendor or specialist image earns its keep when apps conflict with each other, carry machine-bound licensing, or need a GPU persona the general image does not have.

– Compliance isolation earns a separate image when a population’s data rules forbid sharing an image with anyone else.

The governing rule is: as few images as possible, as many as necessary. And a second image is approved only after the alternatives fail — push the difference to App Attach or to application groups first (Part 7), and only split the image when neither can carry it. When more than one image exists, run them sanely: one shared base build process, every image in the Gallery on the same versioning and monthly cadence, the validation pool first for every new version, and a named owner per image. Two images with two build processes and two cadences is not a strategy; it is two estates.

Session hosts: the agent lives on the host, not in the image

Hosts join the pool at provisioning, and that is where the AVD agent lands — two MSIs installed on each VM, the Azure Virtual Desktop Agent and the Agent Boot Loader, with the host pool’s registration key pasted in when the installer asks for it. After install, four components are listed: the Boot Loader, the Infrastructure Agent, the Geneva Agent, and the SxS Network Stack. The agent auto-updates after install. The registration key is generated in the portal under the host pool, and it is valid only for the duration you specify — a maximum of 27 days, so generate it when you are ready to build, not a month ahead. Hosts powered off for more than 90 days have their machine token expire; power them on for at least 20 minutes inside that window to refresh it.

The validation pool from Part 4 is where the first hosts from a new image version land. A new image version that has never served a real logon is a theory, not an image — and the pilot in Part 9 is where the sizing table above gets confirmed or corrected.

The translation table, part 4

The series builds its Citrix → AVD translation table part by part; the complete table lives in the checklist. Part 2 mapped the objects, Part 3 the design, Part 4 the types inside those objects. This part maps the image layer:

Citrix Azure Virtual Desktop
MCS master image (or snapshot) Azure Compute Gallery image version (Major.Minor.Patch)
PVS vDisk, streamed to target devices Gallery image version deployed to session hosts (no per-machine copy to maintain)
Citrix VDA on the master image AVD agent + Boot Loader, installed on each session host at provisioning — never in the image
Citrix Profile Management (UPM) hooks in the image FSLogix, preinstalled on multi-session Marketplace images; configured in Part 6
Windows Server multi-session OS Windows 11 Enterprise multi-session
Master image update (new snapshot / vDisk version) New Gallery image version; hosts reimaged from it, validation pool first

The honest verdict: when the image says stay

A clean image can also conclude the migration should wait. Stay on Citrix, or run hybrid longer, when a business-critical app will not run on Windows 11 multi-session and has no single-session or App Attach path yet — the image cannot fix an app that refuses the OS. Stay when the estate’s apps are machine-bound licensed per device and the licensing cost of moving them to shared multi-session hosts has not been modelled; the licence line can erase the saving the whole business case rests on. Stay when no one owns the image: an unowned golden image rots in weeks, and a rotted image is worse than a Citrix farm that still gets patched.

The output: one image, fifteen hosts, one owner

Part 5 ends with a versioned golden image in the Gallery — Windows 11 Enterprise multi-session, FSLogix in place, no Citrix residue, no AVD agent baked in — replicated to the landing-zone regions, and a validation pool running hosts from version 1.0.0 at the medium tier’s 32 sessions per host. If a test user logs into a validation host and gets the right desktop and apps, the image is real. If the host fails to join the pool, check the registration key’s age and whether the agent was installed on the image by mistake — those two are the whole troubleshooting guide for this part.

Next, in Part 6 — Profiles: From Citrix UPM to FSLogix: the profile container, converting UPM profiles, what converts and what to leave behind, and the logon-time evidence that proves it worked.

Sources: Microsoft Learn — Create an Azure Virtual Desktop golden image, Windows multi-session FAQ, Azure Compute Gallery image versions, Add session hosts to a host pool, Session host virtual machine sizing guidelines, Understand and estimate costs for Azure Virtual Desktop, Configure FSLogix profile containers; Citrix docs — Remove the VDA, Install Profile Management, Create machine catalogs.*

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.