Azure AD login to Windows 2019 Datacenter VM via bastion failing

Atanu Gupta 141 Reputation points
2022-09-16T11:27:17.06+00:00

Hello,

I have created and configured my Windows VM (Windows Server 2019 Datacenter) for Azure AD login along with the Virtual Machine Administrator Login role

241780-1.png

Role Assignment

241798-2.png

My bastion host is also native client enabled and are connecting the Linux machines very well. But when it comes to connecting Windows VM with AAD credentials it not getting connected saying "Your credentials did not work" (whereas i am able to connect with the VMs admin credentials generated at the time of VM creation)

az network bastion rdp --name "<bastion host name>" --resource-group "<resource group name>" --target-resource-id "<windows vm resource id>"

Any help will be highly appreciated.

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
242 questions
{count} votes

2 answers

Sort by: Most helpful
  1. msrini-MSFT 9,256 Reputation points Microsoft Employee
    2022-09-16T16:14:29.13+00:00

    Hi,

    did you try logging in using your UPN instead of domain\username ?

    Reference : https://learn.microsoft.com/en-us/azure/bastion/troubleshoot#domain

    Regards,
    Karthik Srinivas


  2. Mahavir Saroj 201 Reputation points
    2024-03-23T17:44:00.2033333+00:00

    I believe Azure bastion doesn't support for AAD credentials login. Correct me if i'm wrong

    0 comments No comments