Unable to connect windows VM via Azure Bastion

Abrar Adil S 401 Reputation points
2025-08-22T04:35:15.32+00:00

we have a user assigned with Windows 10/11 Enterprise License assigned to the Cloud Account, We want to login to Windows VM using the Azure AD Account via Bastion.

I have Enabled the extension Windows AAD Login, and added the user with RBAC Virtual Machine User Login and Virtual Machine Administrator login and RDP port. requesting some assistance on how we can proceed further.

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.
{count} votes

1 answer

Sort by: Most helpful
  1. Priya ranjan Jena 265 Reputation points Microsoft External Staff Moderator
    2025-08-22T06:56:40.0733333+00:00

    Hi Abrar Adil S,

    Thank you for reaching out on Microsoft Q&A forum

    Please be assisted with below followings for bastion service.

    Extension and Permissions:

    Make sure the Azure AD Login extension is correctly installed on your VM, as you have already assigned the RBAC roles (Virtual Machine User Login and Virtual Machine Administrator Login), ensure the user is indeed granted access properly without any conflicts.

    Connection Settings:

    When connecting through Bastion, on the Bastion connection page, make sure you are using the correct format for the username. If your VM is domain-joined, use the format: ******@domain.com.

    Enable System Assigned Managed Identity

    This is automatically enabled when you toggle Login with AAD credentials during VM creation.

    If not, enable it manually in the VM’s Identity blade.

    Network Requirements

    Ensure Public IP is disassociated from the machine to make azure bastion functional.

    Ensure outbound access to Azure AD endpoints over TCP port 443 is allowed.

    Bastion service should be attached to same v-net.

    Confirm the VM has internet connectivity and the Azure VM Agent is in a healthy state.

    Please find the link below for Azure Bastion reference.

    https://learn.microsoft.com/en-us/azure/bastion/bastion-overview

    If you find this comment helpful, Please “up-vote” for the information provided , this can be beneficial to community members.

    Kindly let us know if you have any additional questions.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.