Search code examples
azureazure-batch

Set azure batch cluster to run in specific hours


Is it possible to run Azure Batch cluster only in specific hours? What variables should I use for it? Eg. from 6 am to 6pm. Will cluster be available to run in other hours if any tasks will be forced on it?


Solution

  • You can use Batch autoscaling formulas to accomplish this via time(). Please see this link for an example.