Automated way to add and remove session hosts to pools

%3CLINGO-SUB%20id%3D%22lingo-sub-3177350%22%20slang%3D%22en-US%22%3EAutomated%20way%20to%20add%20and%20remove%20session%20hosts%20to%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3177350%22%20slang%3D%22en-US%22%3E%3CP%3EHI%20All%2C%3C%2FP%3E%3CP%3EI'm%20looking%20for%20an%20automated%20way%20(well%2C%20the%20best%20way)%20to%20add%20and%20remove%20sessions%20hosts%20from%20AVD%20pools.%20I%20was%20looking%20at%20the%20rest%20API%20(which%20we%20already%20us%20a%20lot)%20but%20don't%20see%20any%20endpoint%20making%20this%20possibe%20via%20the%20rest%20API.%20Would%20there%20be%20a%20way%20via%20powershell%20or%20ARM%20maybe%20to%20do%20this%20%3F%26nbsp%3B%3CBR%20%2F%3EWe%20want%20to%20achieve%20this%20to%20do%20monthly%20replacement%20off%20session%20hosts%20(first%20add%2010%2C%20then%20remove%20the%20%22old%2010%20for%20example)%20and%20for%20quickly%20scaling%20out.%26nbsp%3B%3CBR%20%2F%3EPlease%20share%20your%20suggestions%2Fsolutions%20if%20you%20can...%20thanks.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

HI All,

I'm looking for an automated way (well, the best way) to add and remove sessions hosts from AVD pools. I was looking at the rest API (which we already us a lot) but don't see any endpoint making this possibe via the rest API. Would there be a way via powershell or ARM maybe to do this ? 
We want to achieve this to do monthly replacement off session hosts (first add 10, then remove the "old 10 for example) and for quickly scaling out. 
Please share your suggestions/solutions if you can... thanks. 

0 Replies