Advertisement

Automatically Start and Stop VM’s in a Windows Virtual Desktop Host Pool with Azure Automation

Automatically Start and Stop VM’s in a Windows Virtual Desktop Host Pool with Azure Automation Script code can be found on my Github page here:




This video demonstrates a script I created that starts and stops Virtual Machines in an Azure Windows Virtual Desktop host pool based on the number of users logged into the host pool. It uses the number of users logged in to the host pool, a threshold value of spare capacity and the maximum session per VM to calculate the number of servers that should be running. It then starts and stops VM’s based on that number
.

This script runs as an Azure Automation Runbook. It’s trigger by a webhook every 5 minutes from an Azure Function.

Link to written description here:

Windows Virtual Desktop,WVD,Remote Desktop,Remote Desktop Services,Load Balancing,Depth,Breadth,Depth-First,Breadth First,RDS,Azure,Microsoft,Tutorial,Maximum connections,maximumallowedconnections,walkthrough,Windows 10,multi user,Windows 7,virtualize,VDI,Gateway,Connection broker,RDWeb,remote access,Applications,azure automation,azure function,start,stop,start and stop,cost saving,automation,automatically start,automatically stop,Service Principal,

Post a Comment

0 Comments