Cannot connect on Azure Virtual Desktop with Azure AD Credentials

Olivier Lumeau 121 Reputation points
2023-01-17T21:40:23.8766667+00:00

I've created an Azure Virtual Desktop and I cannot connect using an Azure AD user
With the local admin account, it works.

I have checked all the prerequisites
My virtual desktop is well Azure AD joined.
I added the user with the command here below

(in fact I've had the same issue with a Windows vm but this one has been solved.
in the extensions there is well: AADLoginForWindows
I added the user on the vm (access work or school)

I also assigned the role assignement: User Access Administrator
to the user

I always receive login failed.

Can you help me, please?

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,451 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adam Zachary 2,891 Reputation points
    2023-01-17T23:20:21.2933333+00:00

    We had a similar issue before and the reason was because we had a conditional access policy.

    So make sure that your Conditional Access policy exclude multi-factor authentication requirements for your solution.

    Also, Have you assigned the Virtual Machine User Login role-based access control (RBAC) permission to the VM or resource group for each user? Doublecheck your RBAC settings. Make sure that you have the right permissions. Virtual Machine Administrator Login / Virtual Machine User Login.

    Please note that VM sign-ins don't support per-user enabled or enforced Azure AD Multi-Factor Authentication. If you try to sign in with multi-factor authentication on a VM, you won't be able to sign in and will receive an error message.

    0 comments No comments