How can I get my VMs with AADLoginForWindows extension installed to actually use EntraID for login?

Ryan Kimber 0 Reputation points
2025-03-03T17:50:53.6966667+00:00

I have provisioned a scale set using Terraform, and an image using Packer.

My scale set is up and running, the VMs can be accessed using Bastion and the Administrator account.

I can see that the AADLoginForWindows 2.2.0 extension has been installed and is joining the VM to EntraID.

However, then I try to login using EntraID credentials, the machine seems to try NTML authentication and rejects me. I don't see any Azure AD or Entra ID credential providers in the registry at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers.

Also, Bastion doesn't show me an option for an EntraId login. The options are VM Password and Password from Azure Key Vault.

What else am I missing?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

2 answers

Sort by: Most helpful
  1. Sanoop M 4,345 Reputation points Moderator
    2025-03-04T18:40:43.9533333+00:00

    Hello @Ryan Kimber,

    Thank you for your response.

    I understand that you are using Terraform to create the host pool and scale set.

    Please note that you can use Terraform to create Windows Virtual Machine and I am attaching you the document below for detailed guide for your reference.

    Quickstart: Use Terraform to create a Windows VM - Azure Virtual Machines | Microsoft Learn

    Please note that there are only two ways to enable Microsoft Entra login for your Windows VM:

    Please refer to the below Screenshot for your reference.

    User's image

    Please note that you can use Azure Cloud Shell to enable Microsoft Entra login for your Windows VM.

    Please refer to the below document for the detailed guide for your reference.

    https://learn.microsoft.com/en-us/entra/identity/devices/howto-vm-sign-in-azure-ad-windows?source=recommendations#azure-cloud-shell

    At this time, you can use Azure Bastion to log in with Microsoft Entra authentication via the Azure CLI and the native RDP client mstsc.

    Please refer to the below table Screenshot to know in what methods Microsoft Entra authentication login to Virtual Machines is currently supported.

    User's image

    Please refer to the below document for your reference.

    Configure Bastion for native client connections - Azure Bastion | Microsoft Learn

    I hope this above information provided is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.