Forum Discussion
hippygold
Apr 22, 2021Copper Contributor
What is the Tenant Name when creating host pools via the portal
Hi, Some of the PS cmdlets require a tenant name to work. I have a couple of tenants which were created when I started looking at WVD but none of them seem to the related to the newer host pools whi...
hippygold
Apr 22, 2021Copper Contributor
Many thanks for the reply, using the new ones already however I wanted to be able to query application group assignments which seems to be Get-RdsAppGroupUser which requires a TenantName to work.
YannickJanssens1986
Apr 22, 2021Brass Contributor
Try this
$AG = Get-AzWvdApplicationGroup -Name <AppGroupNameHere> -ResourceGroupName <RG name here>
Get-AzRoleAssignment -Scope $AG.id | Where-Object{$_.RoleDefinitionName -eq "Desktop Virtualization User"}
That should list all the users assigned to that group.