(UPDATED 6/17/2021 with code for multiple pooled and personal host pools) Azure Virtual Desktop (previously Windows Virtual Desktop (WVD)) has a new option in preview that starts session hosts in a personal or pooled host pool when a user connects. It won’t, however, shut down the session hosts when the user logs out. The script outlined in this video will evaluate all running and available session hosts in a personal or pooled host pool and shut down and deallocate session hosts without an active connection. Deallocating Session hosts while not in use can save money on compute costs.
Continue reading “Shut Down Unused Session Hosts in a Windows Virtual Desktop Pooled or Personal Host Pool” →