πŸ”’ Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided AZ-140 Domain 3
Domain 3 β€” Module 7 of 7 100%
24 of 28 overall

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region
Domain 3: Plan and Implement User Environments and Apps Premium ⏱ ~15 min read

App Attach: Dynamic Application Delivery

App attach separates applications from the OS image by packaging them in VHD(X) or CIM disk images that mount at user sign-in. This keeps golden images clean, simplifies updates, and enables per-user app assignment without reinstalling anything.

What problem does app attach solve?

β˜• Simple explanation

Think of app attach as plug-and-play app cartridges for your desktop.

Normally, apps are β€œbaked into” the Windows image β€” like painting a wall. If you want to change a painting, you have to repaint the whole wall (rebuild the image). App attach is like hanging pictures with hooks instead. Each app is a separate picture (a disk image). When a user arrives, the pictures they need are hung on the wall. When they leave, the pictures come down. You can swap, add, or update pictures without touching the wall.

This means faster image updates, cleaner images, and different users see different apps.

App attach is an AVD feature that dynamically delivers applications to session hosts by mounting application packages (stored as VHD(X) or CIM disk images) at user sign-in. Applications are separated from the operating system image, enabling independent update cycles and per-user app assignment.

The key insight: instead of installing applications INTO the golden image (making the image larger and harder to update), apps are packaged OUTSIDE the image on a file share and mounted on demand. The session host’s OS image stays clean and small. App updates happen by replacing the package β€” no image rebuild required.

App attach vs β€œMSIX app attach”

You might see both terms β€” here is the distinction:

TermWhat It Means
MSIX app attachThe original feature β€” supported MSIX and MSIX Bundle formats only
App attachThe newer, broader feature β€” supports MSIX, MSIX Bundle, CIM, and Appx formats

App attach is the evolution of MSIX app attach. For the exam, app attach is the current term. It supports more package formats and has a simplified management experience in the Azure portal.

How app attach works

The lifecycle β€” four stages

StageWhat HappensWhen
StageThe app package (VHD/CIM) is mounted to the session host. Files are made available to the OS.Before user signs in (or at boot)
RegisterThe app is registered for the specific user β€” it appears in their Start menu and file associationsAt user sign-in
DeregisterThe app registration is removed for the user β€” no longer visibleAt user sign-off
DestageThe app package is unmounted from the session hostWhen no users need the app (or at shutdown)

This lifecycle means apps appear and disappear per user without ever being traditionally β€œinstalled” or β€œuninstalled.”

🏒 Raj’s Citrix migration: β€œAt TerraStack, we used Citrix App Layering for years. App attach is Microsoft’s answer to the same problem β€” separate apps from the OS image. The migration was smoother than I expected. Our 15 LOB apps went from baked-in-image to app attach packages in two weeks. Image rebuild time dropped from 4 hours to 45 minutes because the image now only has Windows, FSLogix, and the AVD agent.”

The mounting process visualised

Azure Files Share
  β”œβ”€β”€ finance-app-v2.1.cim     (Finance app package)
  β”œβ”€β”€ hr-app-v1.5.vhdx         (HR app package)
  └── cad-viewer-v3.0.cim      (CAD viewer package)

                    ↓ mount at sign-in

Session Host VM
  β”œβ”€β”€ Windows 11 (clean image)
  β”œβ”€β”€ FSLogix agent
  β”œβ”€β”€ AVD agent
  └── [Mounted apps appear as locally installed]
        β”œβ”€β”€ Finance App (for Finance group users)
        └── CAD Viewer (for Engineering group users)

Package formats

MSIX

MSIX is Microsoft’s modern application packaging format:

  • Containerised installation β€” apps run in an isolated container
  • Clean install/uninstall β€” no registry pollution, no leftover files
  • Created using the MSIX Packaging Tool (converts Win32 apps to MSIX)
  • Code signing required β€” packages must be signed with a trusted certificate

CIM (Composite Image Filesystem)

CIM is the newer, recommended format for app attach:

FeatureMSIX in VHD(X)CIM
Mount performanceGoodBetter β€” faster mount times
Storage efficiencyStandard VHDX overheadMore efficient β€” no VHD overhead
Supported in app attachYesYes (recommended)
CreationMSIX Packaging Tool + expansion to VHDmsixmgr.exe tool
File systemNTFS inside VHD(X)Native CIM format

Microsoft recommends CIM over VHD(X) for app attach packages due to better performance and storage efficiency.

Creating app attach packages

Step 1: Package the application as MSIX

Use the MSIX Packaging Tool (free from Microsoft Store):

  1. Install the MSIX Packaging Tool on a clean VM
  2. Run the tool and select β€œApplication package”
  3. Install your Win32 application through the tool β€” it captures all changes
  4. The tool creates an MSIX package with all files, registry entries, and dependencies

Step 2: Convert to CIM or expand to VHD(X)

Use the msixmgr.exe command-line tool:

  • To create a CIM image: msixmgr.exe -Unpack -packagePath app.msix -destination \\share\app.cim -applyACLs -create -fileType cim
  • To create a VHD(X) image: msixmgr.exe -Unpack -packagePath app.msix -destination \\share\app.vhdx -applyACLs -create -fileType vhdx

Step 3: Store on a file share

Upload the CIM or VHD(X) file to an Azure Files share or Azure NetApp Files volume accessible by session hosts.

Step 4: Add to AVD in the Azure portal

  1. Navigate to the host pool
  2. Go to App attach and select Add
  3. Browse to the package on the file share
  4. Configure the application name, display name, and icon
  5. Assign the package to one or more application groups
πŸ’‘ Exam tip: CIM vs VHD(X) for app attach

If the exam asks which format is recommended for app attach packages, the answer is CIM. It has faster mount times, better storage efficiency, and is the Microsoft-recommended format for new deployments.

VHD(X) is still supported and works fine, but CIM is the preferred choice. Expect questions that test whether you know CIM exists and is recommended over VHD(X).

Storage for app attach packages

App attach packages must be stored on a file share accessible by all session hosts:

Storage OptionProsCons
Azure Files (Premium)Easy setup, integrated with Azure ADCost per GB higher
Azure Files (Standard)Lower costHigher latency, not recommended for large packages
Azure NetApp FilesBest performance, lowest latencyHigher minimum cost, more complex setup

NTFS permissions on the file share:

  • Session hosts need Read access to the package files
  • Only admins need Write access (for uploading new packages)
  • Users do NOT need direct share access β€” session hosts mount the packages

Benefits of app attach

BenefitHow
Smaller imagesCore OS only β€” apps are separate
Faster image updatesUpdate Windows without touching apps
Independent app updatesReplace an app package without rebuilding the image
Per-user app assignmentDifferent users get different apps from the same host pool
Faster deploymentNew apps are added by uploading a package, not rebuilding infrastructure
Reduced storageOne package serves all session hosts (not duplicated per VM)

Limitations β€” what app attach cannot do

Not every application is a good candidate:

LimitationWhy
Kernel-mode driversApps that install drivers cannot be packaged (e.g., antivirus, VPN clients)
Windows services running as SYSTEMServices that must start at boot before user sign-in are not compatible
COM+ and DCOM registrationsSome legacy COM components do not work in MSIX containers
Heavy registry modificationsApps that modify system-wide registry beyond HKCU may fail
Boot-time dependenciesApps required before any user signs in (e.g., agents, security tools)

These apps should be installed in the golden image instead.

Install in Image vs App Attach vs RemoteApp
AspectInstall in ImageApp AttachRemoteApp
Where app runsOn session host (in desktop session)On session host (appears locally installed)On session host (appears as window on client)
Where app is storedIn the OS image (baked in)On file share as VHD/CIM (mounted at sign-in)In the OS image (published individually)
Image maintenanceRebuild image to update appsNo image change β€” replace package on shareRebuild image to update apps
Per-user assignmentNo β€” all users get all appsYes β€” assign packages to app groupsYes β€” assign users to RemoteApp groups
Update speedSlow β€” image rebuild + redeploymentFast β€” swap package on file shareSlow β€” image rebuild + redeployment
App isolationNo β€” installed in OSYes β€” MSIX container isolationNo β€” installed in OS, published individually
User experienceApp in Start menu inside desktopApp in Start menu inside desktopApp appears as local window on client device
Best forCore apps (OS agents, drivers, always-needed)Department-specific, frequently updated appsLegacy LOB apps for non-desktop users

🎧 Mia’s app delivery strategy: β€œWe use all three methods. Windows, FSLogix, Teams, and the EHR system are in the image β€” every clinician needs them. PACS viewer and speciality clinical tools use app attach β€” only specific departments need them and they update monthly. The patient satisfaction survey is a RemoteApp for admin staff who only need that one app on their tablets.”

Question

What are the four stages of the app attach lifecycle?

Click or press Enter to reveal answer

Answer

Stage (mount package to session host), Register (make app visible to user), Deregister (remove app visibility at sign-off), Destage (unmount package when no users need it). Apps appear and disappear dynamically without traditional install/uninstall.

Click to flip back

Question

What is CIM and why is it recommended over VHD(X) for app attach?

Click or press Enter to reveal answer

Answer

CIM (Composite Image Filesystem) is a newer package format for app attach. It has faster mount times, better storage efficiency (no VHD overhead), and is Microsoft's recommended format for new app attach deployments.

Click to flip back

Question

What types of applications CANNOT be delivered via app attach?

Click or press Enter to reveal answer

Answer

Apps that install kernel-mode drivers (antivirus, VPN), Windows services running as SYSTEM at boot, apps with COM+ registrations, and apps with heavy system-wide registry modifications. These must be installed directly in the golden image.

Click to flip back

Question

What tool converts Win32 applications to MSIX packages?

Click or press Enter to reveal answer

Answer

The MSIX Packaging Tool (free from Microsoft Store). It captures an application installation and creates an MSIX package. Then msixmgr.exe converts the MSIX to CIM or VHD(X) format for app attach.

Click to flip back

Knowledge Check

Raj wants to add a new Finance application to TerraStack's AVD environment without rebuilding the golden image. The app is a standard Win32 desktop application. What is the correct approach?

Knowledge Check

Mia needs to deliver a PACS viewer application that updates monthly. She wants the fastest update process with minimal disruption. What format should she use for app attach?

Knowledge Check

An application requires a kernel-mode driver for USB token authentication. Can it be delivered via app attach?

🎬 Video coming soon

App Attach: Dynamic Application Delivery


Next up: Monitoring with Azure Monitor β€” moving into Domain 4, learn how to monitor AVD health, performance, and user experience with Azure Monitor and AVD Insights.

← Previous

Microsoft 365, Teams and OneDrive on AVD

Next β†’

Monitoring AVD with Azure Monitor

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.