Search code examples
azureazure-batch

Automatically spawn an Azure Batch AI job periodically


I want to automatically start a job on an Azure Batch AI cluster once a week. The jobs are all identical except for the starting time. I thought of writing a PowerShell Azure Function that does this, but Azure Functions v2 doesn't support PowerShell and I don't want to use v1 in case it will be phased out. I would prefer not to do this in C# or Java. How can I do this?


Solution

  • Currently, there's no option available to trigger a job on Azure Batch AI cluster. Maybe you want to run a shell script which in turn can create a regular schedule using system's task scheduler. Please see if this doc by Said Bleik helps:

    https://github.com/saidbleik/batchai_mm_ad#scheduling-jobs

    I assume this way you can add multiple schedules for the job!