- Create an Azure Automation Account
- Create a Linux virtual machine in the Azure portal
Import runbooks from GitHub with the Azure portal
- In the Azure portal, open your Automation account.
- Select Runbooks blade under Process Automation.
- Click Import a runbook in the Runbooks page.
- In the Import a runbook page, you can either import a file stored on your local machine or from GitHub using Browse for file or Browse from gallery respectively.
- Select the file.
- Enter the Name, Runtime version, and Description.
- Click Import.
- Alternatively, Select Browse Gallery in the Runbooks page to browse the available runbooks.
- You can use the filters above the list to narrow the display by publisher, type, and sort. Locate the gallery item you want and select it to view its details.
- Click Select to select a chosen runbook.
- In the Import a runbook page, enter the Name and select the Runtime versions.
- The Runbook type and Description are auto populated.
- Click Import.
- The runbook appears on the Runbooks tab for the Automation account.
Test a runbook
- Open the Draft version of the runbook in either the textual editor or the graphical editor.
- Click Test to open the Test page.
- If the runbook has parameters, they’re listed in the left pane, where you can provide values to be used for the test.
- If you want to run the test on a Hybrid Runbook Worker, change Run Settings to Hybrid Worker and select the name of the target group. Otherwise, keep the default Azure to run the test in the cloud.
- Click Start to begin the test.
- You can use the buttons under the Output pane to stop or suspend a PowerShell Workflow or graphical runbook while it’s being tested. When you suspend the runbook, it completes the current activity before being suspended. Once the runbook is suspended, you can stop it or restart it.
- Inspect the output from the runbook in the Output pane.
Schedule a runbook in the Azure portal
- In the Azure portal, search for and select Automation Accounts.
- On the Automation Accounts page, select your Automation account from the list.
- Select the runbook from your list of runbooks.
- Select Schedules under Resources.
- Select Add a schedule.
- In the Schedule Runbook pane, select Link a schedule to your runbook.
- Choose Create a new schedule in the Schedule pane.
- Enter a name, description, and other parameters in the New schedule pane.
- Once the schedule is created, highlight it and click OK. It should now be linked to your runbook.
- Look for an email in your mailbox to notify you of the runbook status.