Powershell script to enable Citrix AutoScale

The Citrix console is really difficult to use to configure AutoScale on delivery groups, especially using the cloud version. It's easier to create a script to configure the new AutoScale settings. At the top configure the delivery group settings and then execute.

When creating a delivery group the default Autoscale will be Weekdays/Weekend.

The script will clear this out if $reset = $true

Then will configure each days schedule

$reset = $true

$PeakBufferPercent = 30
$OffPeakBufferPercent = 10
$DeliveryGroupName = 'Windows 2016 STA01'
$PowerOffDelay = 30
$MachineCost = 0.06
$Timezone = 'AUS Eastern Standard Time'

$MondayPeakMachines = 3
$MondayOffpeakMachines = 1
#Times are counted in 30 minute blocks...
$MondayPeakStart = 15
$MondayPeakEnd = 44


$TuesdayPeakMachines = 3
$TuesdayOffpeakMachines = 1
#Times are counted in 30 minute blocks...
$TuesdayPeakStart = 15
$TuesdayPeakEnd = 44

#etc..

 

You will notice that the times are set in 30 minute blocks, 7:30AM would be 15.

 

Download

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*