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:
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.