AVD - Sign in failed. Please check your username and password and try again. Despite vm joined to entra ad, rbacs assigned, double checked password

Uri Zafrir 0 Reputation points
2025-03-24T12:47:01.16+00:00

Hello

I've set up AVD using terraform, something like the example here in this link :

(I also tried creating the VM in the host pool manually)

https://github.com/Azure/terraform-azurerm-avm-res-desktopvirtualization-hostpool/blob/main/examples/default/main.tf

I've also added the role "Virtual Machine Administrator Login" to my user. User's image

I can see the VM in the host pool is available

User's image

I can see the AAD join extension is ok

User's image

Inside the VM, I can see it's joined to the entra AD.

User's image

But I still get this error: User's image

this is the output of dsregcmd /status:

PowerShellCopy



+----------------------------------------------------------------------+
| Device State                                                         |
+----------------------------------------------------------------------+

             AzureAdJoined : YES
          EnterpriseJoined : NO
              DomainJoined : NO
               Device Name : VmAvd-0

+----------------------------------------------------------------------+
| Device Details                                                       |
+----------------------------------------------------------------------+

                  DeviceId : d56544b4-5ad5-42ff-a144-dd4d7ee4f23f
                Thumbprint : 80D2D280EF236A993BB94896B61672246C3F07EE
 DeviceCertificateValidity : [ 2025-03-24 11:35:38.000 UTC -- 2035-03-24 12:05:38.000 UTC ]
            KeyContainerId : 1c8da503-8a45-4b72-9e50-51b3aa3e6283
               KeyProvider : Microsoft Software Key Storage Provider
              TpmProtected : NO
          DeviceAuthStatus : SUCCESS

|
+----------------------------------------------------------------------+

                TenantName : <redacted>
                  TenantId : a775278c-ce63-45e6-9667-524bec91ab1b
                eregistration.windows.n
+----------------------------------------------------------------------+
| User State                                                           |
+----------------------------------------------------------------------+

                    NgcSet : NO
           WorkplaceJoined : NO
             WamDefaultSet : NO

+----------------------------------------------------------------------+
| SSO State                                                            |
+----------------------------------------------------------------------+

                AzureAdPrt : NO
       AzureAdPrtAuthority :
             EnterprisePrt : NO
    EnterprisePrtAuthority :

+----------------------------------------------------------------------+
| Diagnostic Data                                                      |
+----------------------------------------------------------------------+

        AadRecoveryEnabled : NO
    Executing Account Name : VmAvd-0\adminuser
               KeySignTest : PASSED

        DisplayNameUpdated : YES
          OsVersionUpdated : YES
           HostNameUpdated : YES

      Last HostName Update : NONE

+----------------------------------------------------------------------+
| IE Proxy Config for Current User                                     |
+----------------------------------------------------------------------+

      Auto Detect Settings : YES
    Auto-Configuration URL :
         Proxy Server List :
         Proxy Bypass List :

+----------------------------------------------------------------------+
| WinHttp Default Proxy Config                                         |
+----------------------------------------------------------------------+

               Access Type : DIRECT

+----------------------------------------------------------------------+
| Ngc Prerequisite Check                                               |
+----------------------------------------------------------------------+

            IsDeviceJoined : YES
             IsUserAzureAD : NO
             PolicyEnabled : NO
          PostLogonEnabled : YES
            DeviceEligible : NO
        SessionIsNotRemote : NO
            CertEnrollment : none
              PreReqResult : WillNotProvision

For more information, please visit https://www.microsoft.com/aadjerrors

I've tried logging in with my user to test local entra ad connectivity , but i get the same error: User's image

Please help!

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

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.