Forum Discussion
Swahlea
Jul 03, 2025Copper Contributor
Bulk Start/Stop of Azure Virtual Desktop Session Hosts in a Host Pool via Single Trigger
Hi Community, We manage an Azure Virtual Desktop (AVD) host pool with a large number of session hosts (e.g., around 100), and we’re looking for a way to start or stop all session hosts in bulk using...
Chris_toffer0707
Jul 05, 2025Iron Contributor
I use parallel jobs in PowerShell just like Kidd mentioned.
Then I use Azure DevOps with a service connection to the subcription hosting the session hosts. The script then executes via a pipeline written i YAML that have the scheduled trigger.
If the script fails on some VMs, writing a simple error handling that can be catched and printed by the end of the job can also be useful in Azure DevOps to monitor reboot completion.