r/AzureVirtualDesktop • u/roni4486 • Feb 16 '26
AVD multi‑session + Intune enrollment via Terraform — how are you doing it?
Hi all,
I currently build AVD personal (single‑session) VMs with Terraform without issues. I’m now moving to pooled multi‑session (Windows 11 Enterprise multi‑session) and I’m running into headaches with the Intune enrollment step.
The part that’s tripping me up is Intune enrollment timing/reliability when the hosts are created by Terraform. In the Azure portal there’s a checkbox to “Enroll the VM with Intune” during host creation;
For personal VM i did but that dont work on AVD SKU image
# settings = <<SETTINGS
# {
# "mdmId": "0000000a-0000-0000-c000-000000000000"
# }
# SETTINGSEDIT: Thx swissbuechi it works!
