Azure AVDs are not showing user id assigned and instead showing as unassigned

Garza, Jorge (NTT) 20 Reputation points
2025-03-04T20:47:03.1166667+00:00

Hi,

In Azure console, under hostpools, there are multiple AVDs in which have user assigned however it is displaying as it is not assigned. I'm able to login correctly and if I run a powershell cmdlet, it is showing the AVD is assigned to a user.

If I clicked under [Assign], my account is not listed because it is already assigned to this machine, however in console is showing is not assigned.

We have seen this starting in March and suddenly is getting back as normal and suddenly is doing this again.

We have reports using kql script and it is sending incorrect data (same as console) however in PS is fetching data correctly. We need to use kql to get reports

Does anyone know what is happening?

Thank you...

User's image

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

2 answers

Sort by: Most helpful
  1. Suresh Estharakula 310 Reputation points Microsoft External Staff
    2025-03-04T23:04:32.41+00:00

    Hi Garza, Jorge (NTT),

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Based on our understanding of your issue, we recommend that you refer to the following methods for troubleshooting:

    • In the event that your Azure Virtual Desktop (AVD) instances appear as unassigned in the Azure portal, despite users being assigned—an assertion you can verify using PowerShell—this situation may arise from several factors, including data synchronization problems, portal errors, or inconsistencies between the Azure management layer and your actual environment.
    • Additionally, confirm that your account possesses the appropriate Azure role (such as Desktop Virtualization Contributor) and verify that it has the necessary permissions to view and assign AVDs within the portal. It is also important to check for any conditional access policies or other security settings that may be impacting access to the portal.
    • Wait for a few minutes and refresh the Azure portal to see if the data becomes synchronized.
    • If the issue persists, try logging out and logging back in to the Azure portal, or clear the browser cache and cookies.

    Verify the user assignment using the following PowerShell cmdlet to check whether the user is correctly assigned to the AVD:

    Get-AzWvdSessionHost -ResourceGroupName <YourResourceGroup> -HostPoolName <YourHostPoolName>
    
    Set-AzWvdSessionHost -ResourceGroupName <YourResourceGroup> -HostPoolName <YourHostPoolName> -SessionHostName <SessionHostName> -UserPrincipalName <UserEmail>
    

    Please you can refer to the below documents:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-management-issues?source=recommendations

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-set-up-overview?source=recommendations

    If you found it helpful, could you kindly click the “Accept Answer and upvote” on the post.

    If you have any further queries, please let us know we are glad to help you.


  2. toddhammer 0 Reputation points Microsoft Employee
    2025-03-05T14:32:41.4133333+00:00

    I appreciate the answer, but the customer said right off they verified with powershell and the user is assigned. It just doesn't show up in the portal. The second person said they have seen this in the last week. I'm a support engineer here in Microsoft and just got a case with this issue. This could very well be a bug. It's suspicious this came up all of the sudden. I'll update here if I find anything.


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.