Unable to Log into Azure VDI Computer From On-premises Hybrid Accounts

Mike 5 Reputation points
2025-03-03T22:51:27.82+00:00

We have a hybrid environment with on-premises Active Directory controllers synchronizing to Azure. Nearly all of our on-premises accounts are synched to Entra.

I just created a new VDI host pool in Azure. The host pool is not joined to Active Directory--it is Entra ID joined. I gave all accounts in Entra the Virtual Machine User Login role for this virtual machine. Under Application Group > Assignments, I assigned permissions to allow login from both on-premises/hybrid accounts and some cloud only accounts.

Problem: The cloud-only accounts are the only accounts that can login to the VDI machines. Whenever a hybrid/AD synched account tries to login, the remote desktop app states "The logon attempt failed". How do I allow on-prem/hybrid accounts to log into this VDI computer?

Also, on the VM I go to Computer Management > Local Users and Groups > Remote Desktop Users. In there, I do see the on-premises account listed as AzureAD<onpremaccount>. But that account still cannot login.

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

2 answers

Sort by: Most helpful
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2025-03-03T23:17:21.18+00:00

    Refer to https://learn.microsoft.com/en-us/azure/virtual-desktop/authentication

    When accessing Azure Virtual Desktop using hybrid identities, sometimes the User Principal Name (UPN) or Security Identifier (SID) for the user in Active Directory (AD) and Microsoft Entra ID don't match. For example, the AD account user@contoso.local may correspond to ******@contoso.com in Microsoft Entra ID. Azure Virtual Desktop only supports this type of configuration if either the UPN or SID for both your AD and Microsoft Entra ID accounts match. SID refers to the user object property "ObjectSID" in AD and "OnPremisesSecurityIdentifier" in Microsoft Entra ID.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Pramidha Yathipathi 1,135 Reputation points Microsoft External Staff Moderator
    2025-03-06T06:23:33.7+00:00

    Hi Mike,

    Good catch! Glad the issue is resolved for you finally. I will have this answer promoted by reposting it. As an Original Poster will not be able to accept your own answer. This is in the attempt to help others looking for a solution for a similar issue.

    Issue:

    The cloud-only accounts are the only accounts that can login to the VDI machines. Whenever a hybrid/AD synched account tries to login, the remote desktop app states "The logon attempt failed". How do I allow on-prem/hybrid accounts to log into this VDI computer?

    Solution:

    Found the solution. Currently we have MFA configured via conditional access AND some of our users have per-user MFA enabled. Our cloud-only accounts are newer and don't have the old per-user MFA setting configured. Because the on-prem accounts were older, they had per-user MFA enabled. This per-user MFA was causing the logins to fail.

    Additional information:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-azure-ad-connections

    VM sign-ins don't support per-user enabled or enforced Microsoft Entra multifactor authentication. If you try to sign in with multifactor authentication on a VM, you won't be able to sign in and will receive an error message.

    User's image

    Thanks again for sharing the solution here. Have a good day!

    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.