There is a lot of stuff to study to use Azure Automation.
Therefor I Write a simple PowerShell Script to manage the Scaling of WVD Pool.
You have to use the script with saved credential. (Reference)
######## Script Start ########
$ResourceGroupName = 'WVD_Infrastructure'; # ResourceGroup that contains HostPool
$WorkDayTimeStart = '08:30';
$WorkDayTimeEnd = '18:30';
$WorkTimeAvailableSessionThreshold = 2; #New VM will Start if remain this session only
$RestTimeAvailableSessionThreshold = 0; #New VM will Start if remain this session only
$CredentailFileName = "AzCredential.txt";


