Please go through the list of other articles to understand Azure Automation.
- Azure Automation – Basics
- Azure Automation: Author Runbook Using PowerShell - Hello World
- Azure Automation - Import PowerShell Runbook From Portal Gallery
- Azure Automation - Publish Runbook
- Azure Automation: Assets – Variables
- Azure Automation: Assets – Modules
- Azure Automation: Assets – Schedules
Once you create a schedule, you can link it to any of the Runbooks available in the Azure Automation account. Let’s see how to link the Runbook with the Schedule.
Navigate to the Automation Account by clicking the required Automation account.
Click on the “Runbooks” tile, as shown in the screenshot shown above to view all the Runbooks. Click any one of the available Runbooks in the Azure Automation account, as shown below:
As soon as you click the Runbook, you will be taken to the “Essentials” tab of the selected “Runbook”, as shown below:
As shown in the above screenshot, currently, there are no schedules associated with this Runbook. Clicking on the “Schedules” tile will take you to the screenshot, shown below, where you can associate a schedule to the current Runbook.
Now, click “Add a schedule” to associate the Runbook to an existing Runbook. Click on the “Add a schedule” link, which will open the following blade:
Clicking the “Link a schedule to your runbook” will open the following blade, which displays all the existing Schedules available in the current Azure automation account, as shown below:
For this demo, I selected “RunEveryDayat10AM” schedule. Please note that, you can also create a new Schedule by clicking on “Create a new schedule” from this blade itself. Once a schedule is selected, you will see the selected schedule, as shown below:
Now, click “OK” button to link the “RunEveryDayat10AM” schedule with the “AzureAutomationTutorial” Runbook. As soon as you click on “OK” button, it will show something like what is shown below:
After few seconds, the selected schedule will be shown in the list, as shown below:
Runbook will now run every day at 10 AM. Hope, you enjoyed the article. Your feedback is highly appreciated.