Automation account runbook jobschedules #14308
Unanswered
anderssonpof
asked this question in
Q&A
Replies: 1 comment
-
the jobschedule name should use guid() to create a unique string. I found the solution in this discussion: #9288 resource jobSchedule 'Microsoft.Automation/automationAccounts/jobSchedules@2023-11-01' = {
name: guid(resourceGroup().id)
parent: automationAccount
properties: {
parameters: parameters
runbook: {
name: runbook.name
}
runOn: hybridWorkerGroup.name
schedule: {
name: schedule.name
}
}
} I found that guid(resourceGroup().id) doesn't allow for multiple schedules and I used guid(automationAccount.id) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to link runbooks with jobschedules in my automation account and I'm getting a nonsensical error.
The module
params.json
I'm getting this from ARM
There is no model in https://learn.microsoft.com/en-us/azure/templates/microsoft.automation/automationaccounts/jobschedules?pivots=deployment-language-bicep
or
https://learn.microsoft.com/en-us/rest/api/automation/job-schedule/create?view=rest-automation-2023-11-01&tabs=HTTP
Beta Was this translation helpful? Give feedback.
All reactions