Skip to content

Automation Account - Attaching Job Schedule to Runbook #9288

Answered by jmann8719
jmann8719 asked this question in Q&A
Discussion options

You must be logged in to vote

Managed to resolve this after finding the Job Schedule Name value must be a GUID.

This is the code that worked for me:

resource child_automationaccount_jobschedule 'Microsoft.Automation/automationAccounts/jobSchedules@2022-08-08' = {
  name: guid(resourceGroup().id)
  parent: automationaccount
  properties: {
    runbook: {
      name: child_automationaccount_runbook.name
    }
    schedule: {
      name: child_automationaccount_schedule.name
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmann8719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant