Hello Stanley Ramakrishnan
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
You can use the Schedule
property to specify the recurrence pattern for the job.
Here's an example of how to configure an Azure Batch job schedule to run only on weekdays and skip weekends using the Schedule
property:
{
"id": "myJobSchedule",
"displayName": "My Job Schedule",
"schedule": {
"weekDays": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"startTime": "09:00",
"endTime": "17:00",
"interval": {
"minutes": 30
}
},
"jobSpecification": {
"poolInfo": {
"poolId": "myPool"
},
"jobManagerTask": {
"id": "myJobManagerTask",
"commandLine": "cmd /c echo Hello World"
}
}
}
In this example, the weekDays
property specifies an array of weekdays on which the job should run. The startTime
and endTime
properties specify the start and end times for the job, and the interval
property specifies the frequency at which the job should run.
You can modify this example to suit your specific needs.
Hope this helps.