SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-1405412%22%20slang%3D%22en-US%22%3EHow%20to%20assign%20users%20to%20app%20groups%20using%20New%20PS%20Module%20(Az.DesktopVirtualization)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1405412%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20way%20to%20assign%20users%20to%20app%20groups%20(be%20it%20desktop%20or%20remote%20app%20groups)%20using%20newly%20launched%20PS%20module%20i.e.%26nbsp%3BAz.DesktopVirtualization%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20only%20see%20a%20relevant%20command%20i.e.%26nbsp%3BUpdate-AzWvdApplicationGroup%2C%20however%20not%20sure%20of%20its%20usage%20when%20it%20comes%20to%20doing%20user%20assignments%20from%20PS%2C%20anyone%20experienced%20this%20or%20have%20any%20pointers%20to%20do%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1409581%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20assign%20users%20to%20app%20groups%20using%20New%20PS%20Module%20(Az.DesktopVirtualization)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1409581%22%20slang%3D%22en-US%22%3E%3CP%3ENew-AzRoleAssignment%20-SignInName%20%3CUSERUPN%3E%20-RoleDefinitionName%20%22Desktop%20Virtualization%20User%22%20-ResourceName%20%3CAPPGROUPNAME%3E%20-ResourceGroupName%20%3CRESOURCEGROUPNAME%3E%20-ResourceType%20'Microsoft.DesktopVirtualization%2FapplicationGroups'%3C%2FRESOURCEGROUPNAME%3E%3C%2FAPPGROUPNAME%3E%3C%2FUSERUPN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
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 (Contributor)
Solution

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