Automation Account - Attaching Job Schedule to Runbook #9288
Answered
by
jmann8719
Jonathan Mann (jmann8719)
asked this question in
Q&A
|
Hello! I've not been able to track down an answer for this query, so hoping someone can help. I'm creating a Azure Automation Account, Runbook (PowerShell), Schedule and Job Schedule Resources in my template. The deployment succeeds apart from the Job Schedule, returning 'Bad Request' it's unable to retrieve the Runbook or Schedule Value. Bicep is requesting the values as String but I am not sure how to present this as I have tried specifying the names manually with no joy. Has anyone successfully created an Automation Runbook and automatically linked it with a Schedule? Thank you |
Answered by
jmann8719
Dec 13, 2022
Replies: 1 comment
|
Managed to resolve this after finding the Job Schedule Name value must be a GUID. This is the code that worked for me: |
0 replies
Answer selected by
jmann8719
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Managed to resolve this after finding the Job Schedule Name value must be a GUID.
This is the code that worked for me: