Steps: Source MSIX → Image Settings → Lifecycle Scripts → Signing → Metadata → Preview
Build a VHDX, VHD, or CIM image with an embedded MSIX for Windows 365 and Azure Virtual Desktop (AVD).
- Source MSIX — Choose the MSIX source:
- Built from this workspace — Use an MSIX already configured in this package’s MSIX phase
- External file path — Point to a
.msixfile on disk
- Image Settings — Configure the disk image:
- Format — VHDX (recommended, single file), VHD (legacy), or CIM (optimized for Windows 11, multi-file set)
- VHDX — Standard for Windows 11 and Server 2022 session hosts. Wider compatibility.
- VHD — Legacy for older Hyper-V. Larger than VHDX.
- CIM — Microsoft’s optimized format for Windows 11 (much faster mount/unmount than VHDX). Creates
{name}.cimplus companion data files (objectid_*/region_*) in the same folder — copy the whole set together, the image is useless without them. The generated Stage/Destage scripts need theCimDiskImagePowerShell module on the session host; AVD’s own App Attach service mounts CIM natively and needs no module.
- Size (MB) — Fixed image size (VHDX/VHD only; CIM auto-compresses).
0= 512 MB default. Must accommodate ~1.2× MSIX payload + 50MB for filesystem.
- Format — VHDX (recommended, single file), VHD (legacy), or CIM (optimized for Windows 11, multi-file set)
- Lifecycle Scripts — (Optional) Custom PowerShell scripts:
- Staging script — Replaces the generated Stage-<App>.ps1 (runs elevated per host: mounts image, stages package)
- Registration script — Replaces the generated Register-<App>.ps1 (runs per-user: registers app)
- Deregistration script — Replaces the generated Deregister-<App>.ps1 (runs per-user: unregisters app)
- Destaging script — Replaces the generated Destage-<App>.ps1 (runs elevated: removes staged package, unmounts image)
- If left empty, all four scripts are auto-generated.
- Signing — Configure certificate signing:
- Use a certificate — Pick from Settings → Signing Certificates, or generate a test certificate
- Publisher display name — Optional friendly name (e.g. "Microsoft Excel") shown in Start menu; separate from the technical Publisher DN
- The certificate is automatically embedded and trusted on session hosts.
- Metadata — Set app identity (display name, publisher, version for user visibility)
- Preview — Review config and validation issues. The step also runs a machine pre-flight: if msixmgr is missing the build is blocked with an explanation, and if the app isn’t running elevated a notice appears with a Request admin rights (UAC) toggle (on by default). With the toggle on, Windows shows an administrator confirmation prompt when the build starts.
Output:
- VHDX:
{PackageName}.vhdx(read-only), four lifecycle scripts,{PackageName}.cer(signing certificate) - VHD:
{PackageName}.vhd(read-only), four lifecycle scripts,{PackageName}.cer - CIM:
{PackageName}.cimplus its companion data files (objectid_*/region_*, copy the whole set together), four lifecycle scripts,{PackageName}.cer
Machine requirements: Administrator privileges (for image creation). The app does not have to run as administrator: when it isn’t elevated, the build requests admin rights on demand via a Windows UAC prompt. Hyper-V is NOT required — the wizard uses Microsoft’s bundled msixmgr tool.
Notes:
- Signing is automatic — The embedded MSIX is always signed with the configured certificate (auto-generated if none exists). The public certificate (
.cer) is included. - CIM guidance — CIM images are optimized for Windows 11 session hosts. Use VHDX for Server 2019 / 2022 or older AVD instances.
- Available in: Pro edition only.