Azure Automation: How to Publish, Start and Test the Runbook - Part Three

Prerequisites

Now, let's get started with the following steps:

Publish the Runbook

The Runbook that we have created is still in Draft mode. We want to publish it before running it in the production mode. When we publish a Runbook, we overwrite the existing Published version with the drafted one.

Step 1: First, open your Runbook from Automation Account blade. Then, select your Runbook and click Publish to publish the Runbook.

Publish


Step 2:
 Now, click Yes when prompted.

prompted

Step 3:
Next, it will show an Authoring Status of Published.

Authoring Status
 
Start the Runbook

Step 4:
 Scroll back to the right for viewing the blade for your Runbook. Now, we need to start the Runbook. So, click Start and then Yes when prompted.

Runbook


 Test the Runbook
 
Step 5: The job status is shown in Job Summary and matches the statuses that we saw when we tested the Runbook.

Job Summary

Step 6:
Once the Runbook status shows Completed, click Output.

Output

Step 7:
The Output blade is opened. Here, we can see that our Hello Run Book is printed in the pane.

output

Summary: In this article, we discussed how to publish, start and test the Runbook in Azure Portal.