SOLVED

Add AD group to a hostpool

%3CLINGO-SUB%20id%3D%22lingo-sub-1327295%22%20slang%3D%22en-US%22%3EAdd%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327295%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20add%20a%20group%20instead%20of%20having%20to%20add%20user%20individually%20to%20the%20hostpool%3F%26nbsp%3B%20I%20came%20across%20an%20article%20a%20while%20back%20that%20this%20will%20be%20available%20but%20can't%20find%20it%20anymore.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329263%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329263%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3Bhave%20you%20tried%20this%20script%3F%26nbsp%3B%20i%20came%20across%20this%20last%20night%20but%20from%20the%20comments%20that%20this%20script%20didn't%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329538%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329538%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589125%22%20target%3D%22_blank%22%3E%40delcemt%3C%2FA%3E%26nbsp%3BNo%20haven't%20tried%20it%20personally%20yet%2C%20however%20it%20logically%20looks%20good.%20Is%20there%20any%20specific%20error%20you%20get%20when%20you%20run%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1334808%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1334808%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3BI%20checked%20out%20the%20script%20and%20used%20it.%26nbsp%3B%20It%20worked.%26nbsp%3B%20This%20will%20be%20good%20for%20now%20until%20they%20can%20make%20release%20the%20feature%20in%20the%20portal%20soon.%26nbsp%3B%20Thanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1336608%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1336608%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589125%22%20target%3D%22_blank%22%3E%40delcemt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20better%20script%20that%20you%20can%20use%20with%20taskscheduler%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329118%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329118%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589125%22%20target%3D%22_blank%22%3E%40delcemt%3C%2FA%3E%26nbsp%3Bare%20you%20referring%20to%20this%3F%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftsrob50%2FWVD-Public%2Fblob%2Fmaster%2FAddAppUsers-FromADGroup.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftsrob50%2FWVD-Public%2Fblob%2Fmaster%2FAddAppUsers-FromADGroup.ps1%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1337425%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20AD%20group%20to%20a%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1337425%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589125%22%20target%3D%22_blank%22%3E%40delcemt%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eadditionally%2C%20Microsoft%20announced%20yesterday%20in%20the%20Tech%20Talk%20that%20with%20the%20%22SpringUpdate%22%20and%20the%20updates%20coming%20very%20soon%2C%20the%20Azure%20built-in%20management%20interface%20will%20be%20introduced%2C%20where%20you%20can%20also%20define%20access%20to%20AppGroups%20based%20on%20Groups!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20now%20I%20would%20also%20suggest%20you%20to%20go%20for%20the%20script%2C%20but%20this%20will%20change%20very%20soon!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20a%20nice%20day%2C%3C%2FP%3E%3CP%3EPatrick%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Is there a way to add a group instead of having to add user individually to the hostpool?  I came across an article a while back that this will be available but can't find it anymore.  

6 Replies
Best Response confirmed by delcemt (Occasional Contributor)

@bhushangawale have you tried this script?  i came across this last night but from the comments that this script didn't work.

@delcemt No haven't tried it personally yet, however it logically looks good. Is there any specific error you get when you run it?

@bhushangawale I checked out the script and used it.  It worked.  This will be good for now until they can make release the feature in the portal soon.  Thanks!

 

@delcemt 

 

There is a better script that you can use with taskscheduler

Hi @delcemt ,

 

additionally, Microsoft announced yesterday in the Tech Talk that with the "SpringUpdate" and the updates coming very soon, the Azure built-in management interface will be introduced, where you can also define access to AppGroups based on Groups!

 

For now I would also suggest you to go for the script, but this will change very soon!

 

Have a nice day,

Patrick