Reset the VM's Remote Desktop configuration: You can reset the Remote Desktop configuration by running the following command in the Azure Virtual Desktop VM's PowerShell:
Reset-AzVmAccessExtension -ResourceGroupName "your_resource_group" -VMName "your_vm_name" -Location "your_vm_location" -Name "your_vm_username" -Credential (Get-Credential) -TypeHandlerVersion "2.0" -ForceRerun
Check the Azure Virtual Desktop environment: Verify that your Azure Virtual Desktop environment is configured correctly. Check the host pool, application group, and user assignments.
Examine Azure Virtual Desktop diagnostics: Review Azure Monitor logs for any error messages or issues related to your Azure Virtual Desktop deployment.
Clear browser cache and cookies: Clear your browser's cache and cookies, then try connecting again.