Forum Discussion
altoControl
Jun 05, 2020Copper Contributor
Assign users to RemoteApp group by PowerShell
Hello everyone. I need to add users to a RemoteApp application group but I want to do it purely in PowerShell. In previous versions (fall 2019) I could do this by using "Add-RdsAppGroupUser" com...
- Jun 07, 2020Unfortunately this doesn’t answer the OPs question.
The new Az.DesktopVirtualization PowerShell module includes a lot of commands but does not seem to include a direct replacement for the Add-RdsAppGroupUser which is what he asks for.
This is because assignment of users to Application groups in Spring 2020 is done via Azure Role Definitions.
Microsoft example of this is as below:
New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtualization User" -ResourceName <appgroupname> -ResourceGroupName <resourcegroupname> -ResourceType 'Microsoft.DesktopVirtualization/applicationGroups'
I believe that this example of adding a user to the Desktop Application group.
I will try this myself to test.
James
Jamesatighe
Jun 07, 2020Brass Contributor
Unfortunately this doesn’t answer the OPs question.
The new Az.DesktopVirtualization PowerShell module includes a lot of commands but does not seem to include a direct replacement for the Add-RdsAppGroupUser which is what he asks for.
This is because assignment of users to Application groups in Spring 2020 is done via Azure Role Definitions.
Microsoft example of this is as below:
New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtualization User" -ResourceName <appgroupname> -ResourceGroupName <resourcegroupname> -ResourceType 'Microsoft.DesktopVirtualization/applicationGroups'
I believe that this example of adding a user to the Desktop Application group.
I will try this myself to test.
James
The new Az.DesktopVirtualization PowerShell module includes a lot of commands but does not seem to include a direct replacement for the Add-RdsAppGroupUser which is what he asks for.
This is because assignment of users to Application groups in Spring 2020 is done via Azure Role Definitions.
Microsoft example of this is as below:
New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtualization User" -ResourceName <appgroupname> -ResourceGroupName <resourcegroupname> -ResourceType 'Microsoft.DesktopVirtualization/applicationGroups'
I believe that this example of adding a user to the Desktop Application group.
I will try this myself to test.
James
Marcos_Augusto
Microsoft
Aug 11, 2021Spot on! Thanks!!! Jamesatighe