AVD Session Hosts Not Auto-Enrolling in Intune
I'm deploying Azure Virtual Desktop (AVD) session hosts using Terraform, but I can't get the session hosts to auto enroll in Intune.
The Azure AD (Entra ID) extension is configured correctly, and the VMs are successfully joining Entra ID. However, the MDM field shows "None" in Entra, even though I've enabled automatic Intune enrollment for all users and all Windows devices.
This is in Azure Government, and I've updated all the enrollment-related URLs/TLDs to use .us where applicable (MDM Terms of Use, MDM Discovery, MDM Compliance, and WIP Discovery).
From my research, the only requirements seem to be:
- System-assigned managed identity enabled on the VM
- Azure AD login/Entra join extension configured
I'm also running terraform apply using my own account, which has both Contributor and Intune Administrator roles.
Has anyone run into this issue in Azure Gov? If so, what was the root cause and how did you resolve it?
Note - event viewer isnt showing much on the vm
Any troubleshooting tips would be appreciated.