azure virtual desktop: adding users after initial deployment

%3CLINGO-SUB%20id%3D%22lingo-sub-486970%22%20slang%3D%22en-US%22%3Eazure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-486970%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20are%20looking%20into%20the%20azure%20windows%20virtual%20desktop%20which%20seems%20like%20an%20excellent%20cloud%20based%20VDI%20solution.%26nbsp%3B%20We%20have%20deployed%20it%20and%20used%20a%20couple%20of%20test%20users%20(office%20365%20%2F%20Azure%20AD%20users).%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20we%20add%20additional%20users%20to%20use%20virtual%20desktops.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-486970%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-505835%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-505835%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F20136%22%20target%3D%22_blank%22%3E%40Suleyman%20Ali%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20depends%20on%20how%20much%20users%20have%20you%20configured%20on%20the%20initial%20deployment%20of%20the%20VDI%2C%20how%20much%20licences%20do%20you%20have%2C%20how%20much%20machines%20did%20you%20configured%20on%20the%20initial%20deployment%20and%20the%20method%20if%20it%20were%20user%20by%20machine%20or%20pool.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20to%20add%20more%20users%2C%20you%20can%20do%20this%20by%20the%20office%20365%20portal%20or%20azure%20active%20directory.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20it%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-507506%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-507506%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253908%22%20target%3D%22_blank%22%3E%40RodNet%3C%2FA%3Ethanks.%26nbsp%3B%20we%20looked%20at%20all%20the%20documentation%20and%20we%20were%20able%20to%20do%20this%20via%20powershell%20using%20add-rdsappgroupuser%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-812115%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-812115%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F20136%22%20target%3D%22_blank%22%3E%40Suleyman%20Ali%3C%2FA%3E%26nbsp%3B%20%3A%20Can%20you%20tell%20me%20more%20on%20this%2C%20I%20have%20deployed%20the%20Azure%20VDI%20successfully%2C%20also%20I%20can%20login%20to%20the%20VDI%20with%20global%20admin%20user%20ID%20and%20pass.%20I%20want%20to%20add%202%20more%20users%20to%20it.%20max%20capacity%20of%20the%20pool%20is%204%20.%20Thanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-812514%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-812514%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394906%22%20target%3D%22_blank%22%3E%40Amar619%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20deployd%20succesfully%20the%20WVDI%20and%20whant%20to%20add%20more%20users%20to%20use%20Just%20follow%20the%20steps%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1-%20The%20User%20must%20exist%20on%20Azure%20AD%20with%20a%20valid%20UPN%2C%20this%20will%20be%20used%20to%20give%20access%20to%20VDI.%3CBR%20%2F%3E%3CBR%20%2F%3E2%20-%20Open%20Power%20Shell%20and%20Run%20the%20following%20cmdlet%20to%20sign%20in%20to%20the%20Windows%20Virtual%20Desktop%20environment%3A%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%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%3C%2FA%3E%22%3CBR%20%2F%3E%3CBR%20%2F%3E3-%20Add%20users%20to%20the%20desktop%20application%20group%20by%20using%20this%20cmdlet%3A%3CBR%20%2F%3E%3CBR%20%2F%3EAdd-RdsAppGroupUser%3CBR%20%2F%3E-TenantName%20%3CYOURTENANTNAME%3E%3CBR%20%2F%3E-Hostpoolname%20%3CHOSTPOOLNAME%3E%3CBR%20%2F%3E-%20AppGroupName%20%22Desktop%20Application%20Group%22%20-UserPrincipalName%20%3CUSERUPN%20user%3D%22%22%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20references%20for%20this%20cmdlets%20and%20steps%20are%20described%20on%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-azure-marketplace%23optional-assign-additional-users-to-the-desktop-application-group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-azure-marketplace%23optional-assign-additional-users-to-the-desktop-application-group%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20Hope%20this%20could%20help%20you.%3CBR%20%2F%3E%3Agrinning_face%3A%3CBR%20%2F%3E%3CBR%20%2F%3ERemind%20to%20pass%20the%20same%20USERUPN%20for%20the%20user%20on%20Azure%20Active%20Directora.%3CBR%20%2F%3E%3C%2FUSERUPN%3E%3C%2FHOSTPOOLNAME%3E%3C%2FYOURTENANTNAME%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1051661%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1051661%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253908%22%20target%3D%22_blank%22%3E%40RodNet%3C%2FA%3E%26nbsp%3BIs%20there%20a%20way%20to%20add%20via%20a%20group%20or%20do%20you%20have%20to%20add%20each%20user%20individually%3F%3C%2FP%3E%3CP%3EWhat%20do%20you%20do%20in%20the%20case%20of%20a%20large%20deployment%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057446%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057446%22%20slang%3D%22en-US%22%3E%3CP%3EHey%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F164217%22%20target%3D%22_blank%22%3E%40Aseem%20Nayar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20also%20deploy%20a%20VDI%20Management%20Portal%20-%20which%20currently%20can%20only%20be%20configured%20as%20an%20App%20Service.%20From%20what%20I%20know%20Microsoft%20team%20is%20working%20currently%20to%20create%20a%20new%20management%20portal%20that%20will%20be%20available%20from%20the%20Azure%20Portal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20am%20administering%203%20deployments%20of%20VDI%20in%20Azure%20and%20unfortunately%20for%20now%20you%20can%20only%20add%20single%20users%20which%20has%20to%20be%20synced%20in%20your%20AAD.%20If%20you%20would%20like%20to%20add%20multiple%20users%20I%20can%20share%20a%20script%20with%20you%20that%20it%20will%20do%20this%20for%20you.%20You%20just%20have%20to%20fill%20CSV%20file%20with%20Username%2C%20AppGroup%20and%20HostPool%20column%20and%20then%20script%20will%20add%20all%20the%20users%20to%20the%20specific%20AppGroup%20for%20you%20automaticly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20there%20are%20two%20licensing%20models.%20One%20that%20is%20using%20CAL%20licensing%20and%20the%20other%20that%20is%20using%20M365%20License%20or%20E5%20Lisence%20if%20you%20have%20Windows%2010%20Enterprise.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20Microsoft%20Documentation%20Page%20with%20all%20the%20Powershell%20Comands%20that%20you%20can%20use%20with%20Azure%20VDI%20Deployment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EWojciech%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1225856%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1225856%22%20slang%3D%22en-US%22%3EHi%20Wojciech%2C%20can%20you%20provide%20the%20script%20to%20add%20users%20from%20a%20CSV%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1225954%22%20slang%3D%22en-US%22%3ERe%3A%20azure%20virtual%20desktop%3A%20adding%20users%20after%20initial%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1225954%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F580679%22%20target%3D%22_blank%22%3E%40SMFWC395%3C%2FA%3E%26nbsp%3BI%20created%20a%20script%20that%20will%20sync%20an%20AD%20group%20with%20WVD.%26nbsp%3B%20It's%20posted%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftsrob50%2FWVD-Public%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftsrob50%2FWVD-Public%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

hi,

 

we are looking into the azure windows virtual desktop which seems like an excellent cloud based VDI solution.  We have deployed it and used a couple of test users (office 365 / Azure AD users).  

 

How can we add additional users to use virtual desktops.

 

 

8 Replies
Highlighted

Hi @Suleyman Ali 

 

It will depends on how much users have you configured on the initial deployment of the VDI, how much licences do you have, how much machines did you configured on the initial deployment and the method if it were user by machine or pool.

 

But to add more users, you can do this by the office 365 portal or azure active directory.

 

Hope it helps.

 

Highlighted

@RodNetthanks.  we looked at all the documentation and we were able to do this via powershell using add-rdsappgroupuser

Highlighted

@Suleyman Ali  : Can you tell me more on this, I have deployed the Azure VDI successfully, also I can login to the VDI with global admin user ID and pass. I want to add 2 more users to it. max capacity of the pool is 4 . Thanks in advance.

Highlighted
Hi @Amar619

If you have deployd succesfully the WVDI and whant to add more users to use Just follow the steps:

1- The User must exist on Azure AD with a valid UPN, this will be used to give access to VDI.

2 - Open Power Shell and Run the following cmdlet to sign in to the Windows Virtual Desktop environment:

Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"

3- Add users to the desktop application group by using this cmdlet:

Add-RdsAppGroupUser
-TenantName <yourtenantname>
-Hostpoolname <hostpoolname>
- AppGroupName "Desktop Application Group" -UserPrincipalName <userupn ex:user@contoso.com>

The references for this cmdlets and steps are described on:

https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-azure-marketplace#optional-...


I Hope this could help you.
:grinning_face:

Remind to pass the same USERUPN for the user on Azure Active Directora.
Highlighted

@RodNet Is there a way to add via a group or do you have to add each user individually?

What do you do in the case of a large deployment?

 

Highlighted

Hey@Aseem Nayar 

 

You can also deploy a VDI Management Portal - which currently can only be configured as an App Service. From what I know Microsoft team is working currently to create a new management portal that will be available from the Azure Portal.

 

Currently I am administering 3 deployments of VDI in Azure and unfortunately for now you can only add single users which has to be synced in your AAD. If you would like to add multiple users I can share a script with you that it will do this for you. You just have to fill CSV file with Username, AppGroup and HostPool column and then script will add all the users to the specific AppGroup for you automaticly.

 

Currently there are two licensing models. One that is using CAL licensing and the other that is using M365 License or E5 Lisence if you have Windows 10 Enterprise.

 

Here is the Microsoft Documentation Page with all the Powershell Comands that you can use with Azure VDI Deployment.

 

https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/

 

Regards,

Wojciech

 

Highlighted
Hi Wojciech, can you provide the script to add users from a CSV?
Highlighted

@SMFWC395 I created a script that will sync an AD group with WVD.  It's posted here https://github.com/tsrob50/WVD-Public