'Edit runbook content and publish this content by ARM template
Currently, I want to create a runbook and edit content with available Python code in local, Then publish this runbook. How to do it by ARM template ?
Solution 1:[1]
1. Here is the Microsoft Document, which will help you create Runbook and edit the content using Python. You can directly edit the code of the runbook using the text editor in the Azure portal.
- Create a simple Python runbook
- Test and publish the runbook
- Run and track the status of the runbook job
- Update the runbook to start an Azure virtual machine with runbook parameters
2. And here is the other document which can show you how to deploy runbook using ARM template
- An Azure Automation account with at least one user-assigned managed identity.
- Az modules:
Az.Accounts,Az.ManagedServiceIdentity,Az.Resources, andAz.Storage. imported into the Automation account. - Azure Storage account in which to store the Resource Manager template.
- Azure PowerShell installed on a local machine. You'll also need module
Az.ManagedServiceIdentityis a preview module and not installed as part of the Az module. To install it, runInstall-Module -Name Az.ManagedServiceIdentity
Also, check the Related documents for deploying ARM template. https://docs.microsoft.com/en-us/azure/templates/microsoft.automation/automationaccounts/runbooks?tabs=bicep
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | SaiSakethGuduru-MT |
