Hi AB123,
Thank you for asking your question.
You can follow the below link to enable Azure AD authentication for windows VM.
If you already have a VM created run the following command in Cloud Shell:
az vm extension set \
--publisher Microsoft.Azure.ActiveDirectory \
--name AADLoginForWindows \
--resource-group myResourceGroup \
--vm-name myVM
In Virtual machine IAM :
Assign the user with Virtual machine user login or Virtual machine Administrator login.
Try taking RDP with using your using Username in following format :
- AzureAD\tom@xyz.com
If you are using Conditional access you need to exepmt Azure windows login.
Please "Accept as answer" if this helps