Yes, Azure VMs work a bit differently here. On a physical device, Entra join is enough. On an Azure VM, Microsoft's supported path is the Microsoft Entra login VM extension plus Azure RBAC roles, and adding the Entra user to the local Administrators group is actually listed as not supported. That's why runas works but interactive sign-in doesn't.
To get it working:
- On the VM in the Azure portal, turn on the system-assigned managed identity (Identity blade). This has to happen before the extension.
- Install the AADLoginForWindows extension on the VM.
- In the VM's Access control (IAM), give the user either Virtual Machine Administrator Login (admin rights) or Virtual Machine User Login (standard user). Owner or Contributor on its own isn't enough to sign in.
- Connect with Remote Desktop Connection: under Advanced, tick "Use a web account to sign in to the remote computer". Use the VM's computer name rather than its IP, and sign in as ******@domain.com.
If your own PC is Entra joined to the same tenant, the classic RDP sign-in with AzureAD\******@domain.com works too.
Was the VM joined by hand from inside Windows, or through the extension when it was created?
If this resolved your issue, please consider accepting it as the answer. If sign-in still fails after the role is assigned, let me know and I'll be happy to keep helping.
Reference: