Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Manage roles, groups, and rights assignments on Azure Virtual Desktop session hosts

A worked example

Single answer

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?

Choose one answer
Why

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.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free