SOLVED

How to assign users to app groups using New PS Module (Az.DesktopVirtualization)

Brass Contributor

Is there any way to assign users to app groups (be it desktop or remote app groups) using newly launched PS module i.e. Az.DesktopVirtualization?

 

I only see a relevant command i.e. Update-AzWvdApplicationGroup, however not sure of its usage when it comes to doing user assignments from PS, anyone experienced this or have any pointers to do it?

 

Thanks in advance!

1 Reply
best response confirmed by bhushangawale (Brass Contributor)
Solution

New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtualization User" -ResourceName <appgroupname> -ResourceGroupName <resourcegroupname> -ResourceType 'Microsoft.DesktopVirtualization/applicationGroups'

1 best response

Accepted Solutions
best response confirmed by bhushangawale (Brass Contributor)
Solution

New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtualization User" -ResourceName <appgroupname> -ResourceGroupName <resourcegroupname> -ResourceType 'Microsoft.DesktopVirtualization/applicationGroups'

View solution in original post