avd-hcl
Native Azure Virtual Desktop deployed and operated with Terraform and Packer—the recommended enterprise IaC option alongside Bicep.
DesignWhat it does
- Provides modular Terraform roots for the platform, FSLogix storage, Key Vault, monitoring, AVD control plane, session hosts, and Compute Gallery.
- Uses Packer with Windows Desktop Optimization Tool (WDOT) for golden image builds.
- Keeps secrets out of Terraform state using ephemeral reads and write-only attributes with Azure Key Vault and managed identities.
- Supports pooled or personal Entra-joined host pools, autoscale, Start VM on Connect, and blue/green host rotation.
Try it in a lab
# Azure Cloud Shell (PowerShell)
if (-not (Test-Path ~/avd-hcl)) { git clone https://github.com/avd-ops/avd-hcl.git ~/avd-hcl }
Set-Location ~/avd-hcl; git checkout -q main; git pull -q --ff-only
Get-Content ./README.md
Full details are in the README.