How do I enable Entra ID login for my Azure Windows VM?

Joseph 0 Reputation points
2025-11-14T02:32:52.2866667+00:00

I want users to sign in to an Azure VM using their Entra ID credentials instead of local accounts. I enabled “Login with Entra ID” in the Azure portal, but the VM still only accepts local admin credentials.

Is there any additional configuration needed on the VM firewall, RDP settings, or Conditional Access side?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. VEMULA SRISAI 13,890 Reputation points Microsoft External Staff Moderator
    2025-11-14T04:59:55.1166667+00:00

    Hello Joseph,

    Thank you for reaching out. Enabling “Login with Microsoft Entra ID” in the portal is the first step, but the VM requires additional configuration to allow Entra ID credentials.

    Steps to Enable Entra ID Login

    1.Install the AAD Login Extension

    Navigate to your VM → Extensions + applications → Add → select Azure AD-based Windows Login.

    2.Enable Managed Identity

    Under VM → Identity, turn on System assigned managed identity and save.

    **3.**Assign Required Roles Assign users one of these roles at the VM scope:

    • Virtual Machine Administrator Login
    • Virtual Machine User Login Use Access Control (IAM) in the VM blade.

    Verify VM Join Status On the VM, run:

    dsregcmd /status
    

    Confirm AzureAdJoined : YES.

    4Update RDP Settings Download the RDP file from Connect → RDP and add:

    enablerdsaadauth:i:1 username:s:******@domain.com

    Sign in using AzureAD\******@domain.com.

    5.Conditional Access MFA during Windows login isn’t supported. If MFA is enforced, exclude Azure Windows VM Sign-in from MFA policies.

    For detailed guidance, see: Sign in to a Windows VM using Microsoft Entra ID.

    If you need any additional information or further assistance, please let us know.

    Was this answer helpful?


  2. AI answer

    2025-11-14T02:33:11.8066667+00:00

    To enable Microsoft Entra ID login for your Azure Windows VM, you need to ensure that the following configurations are in place:

    1. Entra ID Configuration: Make sure that the VM is joined to Microsoft Entra ID. This is essential for Entra ID authentication to work.
    2. User Roles: Users must belong to one of the two Azure roles: Virtual Machine Administrator Login or Virtual Machine User Login. This is necessary for them to access the VM using their Entra ID credentials.
    3. Remote Desktop Protocol (RDP) Settings: Ensure that the RDP settings are properly configured to allow connections using Entra ID credentials. This includes ensuring that the remote desktop connection is enabled on the VM.
    4. Conditional Access Policies: If your organization uses Microsoft Entra Conditional Access, the device from which users are trying to connect must satisfy the Conditional Access requirements. This may involve configuring policies that allow or restrict access based on certain conditions.
    5. Firewall Settings: Check the firewall settings on the VM to ensure that they allow RDP connections. The default port for RDP is 3389, and it should be open for incoming connections.
    6. Client Requirements: Users must be using a Windows 10 or later PC that is either Microsoft Entra registered or joined to the same directory as the VM.

    If you have confirmed all of the above and the issue persists, you may want to review the specific error messages or logs that occur during the login attempt for further troubleshooting.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.