Your Azure Virtual Desktop session hosts are Microsoft Entra joined Windows 11 Enterprise multi-session VMs in a resource group named RG-AVD.
A Microsoft Entra group named Helpdesk-Tier2 must be able to sign in to the session hosts with local administrator privileges to install diagnostic tools. A colleague proposes signing in to each session host and running net localgroup administrators /add "AzureAD\<UPN>" for every Helpdesk-Tier2 member.
You must use a supported method.
What should you do?
On Microsoft Entra joined session hosts, Azure roles authorize sign-in. Virtual Machine Administrator Login grants sign-in with administrator privileges. Adding users to the local Administrators group manually, including with net localgroup, is not supported. Owner alone does not grant sign-in, and Virtual Machine User Login gives only regular user rights.
- Not correct: Run the net localgroup command for each member on every session host. Elevating users manually with net localgroup administrators /add is not supported on Microsoft Entra joined VMs.
- Not correct: Assign the Owner role on RG-AVD to Helpdesk-Tier2. A user with only the Owner or Contributor role does not automatically get privileges to sign in to the VMs.
- Not correct: Assign the Virtual Machine User Login role on RG-AVD to Helpdesk-Tier2. This role allows sign-in only with regular user privileges, so the group would not get local administrator rights.
- Correct: Assign the Virtual Machine Administrator Login role on RG-AVD to Helpdesk-Tier2. This role lets users sign in to the VMs with administrator privileges. Azure roles are the supported way to authorize sign-in to Entra joined VMs.