JobSchedule的JSON格式 [英] JSON Format For JobSchedule
问题描述
我正在寻找有关在Azure批处理帐户中创建JobSchedules数组的格式的帮助.
I am looking for help on the format for creating an array of JobSchedules within an Azure Batch Account.
无论我尝试哪种组合,我似乎都无法正确选择格式.这是我通常用于单个JobSchedule的内容:
No matter the combination I try, I just can't seem to get the format right. Here is what I typically use for a single JobSchedule:
{
"id":"jobid-001",
"displayName":"myjob-001",
时间表":{
"doNotRunUntil":"2018-09-18T00:00:00.000Z",
"recurrenceInterval":"PT7M"
},
"jobSpecification":{
约束":{
},
"jobManagerTask":{
"id":"task-001",
"commandLine":"/myScript.sh",
约束":{
"maxWallClockTime":空,
"retentionTime":null,
"maxTaskRetryCount":0
},
"userIdentity":{
"autoUser":{
范围":"pool",
"elevationLevel":"admin"
}
},
"resourceFiles":null,
环境设置":null,
"containerSettings":空,
"displayName":"task-001",
"killJobOnCompletion":是的,
"runExclusive":false
},
"poolInfo":{
"poolId":"mypool01"
}
}
}
{
"id": "jobid-001",
"displayName": "myjob-001",
"schedule": {
"doNotRunUntil": "2018-09-18T00:00:00.000Z",
"recurrenceInterval": "PT7M"
},
"jobSpecification": {
"constraints": {
},
"jobManagerTask": {
"id": "task-001",
"commandLine": "/myScript.sh",
"constraints": {
"maxWallClockTime": null,
"retentionTime": null,
"maxTaskRetryCount": 0
},
"userIdentity": {
"autoUser": {
"scope": "pool",
"elevationLevel": "admin"
}
},
"resourceFiles": null,
"environmentSettings": null,
"containerSettings": null,
"displayName": "task-001",
"killJobOnCompletion": true,
"runExclusive": false
},
"poolInfo": {
"poolId": "mypool01"
}
}
}
< tmui style ="top:1px; right:1px;"></tmui>
<tmui style="top:1px;right:1px;"></tmui>
teekon
推荐答案
顺便说一句,问这个的原因是这样我就可以将此json文件传递给Cloud Shell.< tmui样式="top:1px; right:1px;"></tmui>
By the way, reason for asking this is so I can pass this json file to the Cloud Shell.<tmui style="top:1px;right:1px;"></tmui>
这篇关于JobSchedule的JSON格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!