An Azure service that is used to provision Windows and Linux virtual machines.
Hello Garcia, Cha,
Thank you for sharing the details regarding the AADLoginForWindows extension deployment failure on your VM. Based on the error message and information provided, the issue appears to be related to prerequisites or connectivity required for enabling Microsoft Entra ID authentication on Windows VMs.
Below are the most common causes and recommended steps to resolve the issue:
- Check OS Compatibility
The AADLoginForWindows extension supports the following Windows versions:
- Windows Server 2022 or later
Windows 10 / 11 (22H2 or later)
If your VM is running an unsupported OS version, the extension will fail with Exit code 50.
Reference: https://learn.microsoft.com/en-us/entra/identity/devices/howto-vm-sign-in-azure-ad-windows#prerequisites
2. Enable System Assigned Managed Identity
The extension requires a system-assigned managed identity on the VM. Without it, the extension cannot retrieve tenant information from Azure Instance Metadata Service.
3.Validate Network and Firewall Configuration
The VM must have outbound HTTPS access to the following Microsoft identity endpoints:
-
https://login.microsoftonline.com -
https://enterpriseregistration.windows.net -
https://device.login.microsoftonline.com -
https://pas.windows.net - Ensure NSGs, firewalls, or corporate proxies allow outbound HTTPS (443) traffic to these endpoints.
- Confirm DNS resolution works correctly.
Reference: Troubleshooting Azure Windows VM extension failures
Troubleshoot AADLoginForWindows deployment
Once the above prerequisites are verified, reinstall the extension and let us know the outcome. This will help us further investigate if the issue persists.