How do you assign App/Desktop Groups to a AD group instead of individuals users?

%3CLINGO-SUB%20id%3D%22lingo-sub-1116693%22%20slang%3D%22en-US%22%3EHow%20do%20you%20assign%20App%2FDesktop%20Groups%20to%20a%20AD%20group%20instead%20of%20individuals%20users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1116693%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20this%20not%20available%3F%20How%20do%20you%20manage%20100%2B%20users%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1118796%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20you%20assign%20App%2FDesktop%20Groups%20to%20a%20AD%20group%20instead%20of%20individuals%20users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1118796%22%20slang%3D%22en-US%22%3ENice.%20I%20wonder%20if%20there's%20a%20way%20to%20pull%20the%20user%20list%20directly%20from%20an%20AD%20group.%20But%20this%20gives%20me%20hope.%20Thank%20you.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1118790%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20you%20assign%20App%2FDesktop%20Groups%20to%20a%20AD%20group%20instead%20of%20individuals%20users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1118790%22%20slang%3D%22en-US%22%3E%3CP%3ERegarding%20management%20of%20the%20desktop%20pool%2C%20Microsoft%20has%20a%20mgmt%20module%20available%20on%20their%20Github%20page%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2Fwvd-management-ux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2Fwvd-management-ux%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20adding%2Fremoving%20users%2C%20PowerShell%20is%20your%20friend%20(until%20the%20management%20page%20is%20released)%2C%20written%20a%20short%20script%20for%20you%20based%20on%20the%20cmdlet%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2Fadd-rdsappgroupuser%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2Fadd-rdsappgroupuser%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAdd-RDsAccount%20-DeploymentUrl%20%22%3CA%20href%3D%22https%3A%2F%2Frdbroker.wvd.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%3C%2FA%3E%22%3CBR%20%2F%3E%24Users%20%3D%20Get-Content%20.%5CUsers.txt%3CBR%20%2F%3E%24WVDTenantName%20%3D%20%22Type%20your%20tenant%20name%20here%22%3CBR%20%2F%3E%24HostPoolName%20%3D%20%22Type%20your%20host%20pool%20name%20here%22%3CBR%20%2F%3E%24DesktopUserGroup%20%3D%20%22Type%20your%20Desktop%20user%20group%20name%20here%22%3CBR%20%2F%3EForeach(%24User%20in%20%24Users)%7B%3CBR%20%2F%3EAdd-RdsAppGroupUser%20-TenantName%20%24WVDTenantName%20-HostPoolName%20%24HostPoolName%20-AppGroupName%20%24DesktopUserGroup%20-UserPrincipalName%20%24User%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Is this not available? How do you manage 100+ users? 

4 Replies

Regarding management of the desktop pool, Microsoft has a mgmt module available on their Github page:

https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-management-ux

 

For adding/removing users, PowerShell is your friend (until the management page is released), written a short script for you based on the cmdlet here:
https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/add-rdsappgroupuser

Add-RDsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
$Users = Get-Content .\Users.txt
$WVDTenantName = "Type your tenant name here"
$HostPoolName = "Type your host pool name here"
$DesktopUserGroup = "Type your Desktop user group name here"
Foreach($User in $Users){
Add-RdsAppGroupUser -TenantName $WVDTenantName -HostPoolName $HostPoolName -AppGroupName $DesktopUserGroup -UserPrincipalName $User
}

Nice. I wonder if there's a way to pull the user list directly from an AD group. But this gives me hope. Thank you.
Check the scripts written by Travis Roberts (Ciraltos):
https://github.com/tsrob50/WVD-Public

He has scripts to do this (AddAppUsers-FromADGroup.ps1)
PS: check out his videos too, very informative!
Excellent. Thank you. Just what I was looking for.