Apr 22 2021 02:36 AM
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 which were created via the portal.
Any idea as to what the tenant name maybe ?
TIA
Apr 22 2021 05:58 AM - edited Apr 22 2021 06:02 AM
I think you are looking at old cmdlets from before that WVD was manageable via the portal (in other words before; the Spring release of WVD when it became an ARM service).
Old cmdlets look like, for example: Get-RDSSessionHost
New cmdlet will look like : Get-AzWVDSessionHost
Check here for all the new ones:
https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/?view=azps-5.8.0
Apr 22 2021 06:26 AM
Apr 22 2021 09:12 AM
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.