Hello @Tariq Ghouri,
Please follow below steps-
- Navigate to the VM\Extensions + applications
- Note the Version, for Win11ms, I would expect 2.2.0.0.
- Click the Uninstall button.
- Reboot the VM
- Once the VM is back online after reboot, open Cloud Shell
- Run the following in Cloud Shell substituting in your Resource Group name, VM name, and LocationAzure PowerShellAI ConvertCopy
Set-AzVMExtension -ResourceGroupName "<RESOURCE GROUP NAME>" -VMName "<VM NAME>" -Name "AADLoginForWindows" -Location "<LOCATION>" -Publisher "Microsoft.Azure.ActiveDirectory" -Type "AADLoginForWindows" -TypeHandlerVersion "2.2"
Ensure user must have Virtual Machine User Login or Virtual Machine Administrator Login role
In Azure portal go to AVD VM > Select Access control (IAM) > Select Role Assignments > Confirm the User account has been granted Virtual Machine User Login or Virtual Machine Administrator Login
Checked have the necessary licenses to allow multiple users to connect to the virtual machine.
Ensure RDP property targetisaadjoined:i:1 was added to the AVD host pool. So, add going through. Navigate to Azure portal > select host pool configured for Azure AD Joined > select RDP Properties blade > Select Advanced Tab > added- targetisaadjoined:i:1
May have "per user MFA" enabled - which does not work with AVD, disable it. as per: Log in to a Windows virtual machine in Azure by using Microsoft Entra ID - Microsoft Entra | Microsoft Learn
If you have any further queries, do let us know.