Adding a new user to a WVD app is really easy. Start by establishing a connection with the WVD tenant:

  1. Start a Powershell console as an Administrator
  2. Connect to the WVD tenant using: Add-RdsAccount -DeploymentUrl https://rdbroker.wvd.microsoft.com – note you will need to login as a tenant administrator. Tenant admins can be created using https://docs.microsoft.com/en-us/azure/virtual-desktop/virtual-desktop-fall-2019/tenant-setup-azure-active-directory
  3. Add the user to the app group with the command: Add-RdsAppGroupUser [tenant-name] [host-group-name] [app-group] -UserPrincipalName [user-name]
  4. To confirm that they are added correctly, you can list all users assigned to the app group: Get-RdsAppGroupUser [tenant-name] [host-group-name] [app-group]

Issues

If you get User is not authorized to query the management service when running Add-RdsAppGroupUser then get an RDS owner on the tenant to run the following command:

New-RdsRoleAssignment -RoleDefinitionName "RDS Owner" -SignInName "[user-name]" -TenantGroupName "Default Tenant Group" -TenantName "[tenant-name]"

This will provide access to all host-pools / app-groups on the tenant.

If you are unable to run the Add-RdsAccount command successfully, it could mean you need to be added as a TenantCreator or that you need to install and import the libraries you need to run this. To do this run the following commands before the Add-RdsAccount command:

  1. Install-Module -Name Microsoft.RDInfra.RDPowerShell, and then
  2. Import-Module -Name Microsoft.RDInfra.RDPowerShell

See https://docs.microsoft.com/en-gb/powershell/windows-virtual-desktop/overview for more details.

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

©2021 Charlie Mac and Associates Pty Ltd

CONTACT US

Please feel free to contact us if you have any questions.

Sending

Log in with your credentials

Forgot your details?