question

UdayKiranReddy-2840 avatar image
0 Votes"
UdayKiranReddy-2840 asked prmanhas-MSFT edited

Unable to login to VM with Azure AD, how to fix this?

I have selected Azure AD Authentication while creating a server 2019 Azure VM.

And added the relavant roles also in the VM settings for my user as below.

140590-image.png

When tried to RDP:

140530-image.png

140558-image.png

I tried with:
AzureAD\user@domain.com
domain.com\user
user@domain.com

All are same issue.

azure-virtual-machines
image.png (98.9 KiB)
image.png (72.6 KiB)
image.png (1.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlanKinane avatar image
0 Votes"
AlanKinane answered

Is the device you are connecting from registered, joined or hybrid joined to the same VM? Please see here: https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows#log-in-using-azure-ad-credentials-to-a-windows-vm

Otherwise, here is a workaround if you modify your RDP connection to include these settings:
authentication level:i:2
enablecredsspsupport:i:0

https://xenit.se/tech-blog/how-to-rdp-into-a-azure-ad-joined-vm-in-azure/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.