Azure Automation - Adding Work Loads For Azure Runbook And Publishing It

Introduction

This article will help you to add work loads for Azure Runbook. To get more  knowledge about Azure Automation and what Runbook is, surf for my previous articles.

Note

Before you work on this article, you should have an Azure Runbook, which you have already created.

Follow the below steps now

Step 1

Login to your Azure account and start with Azure graphical runbook. In my case I have already created it, if you have to create a new one, check the previous article of mine.

Step 2

Move for the Library control of the Azure runbook, which has been created. This will help you to add work functions for Azure runbook.

runbook

You will be getting your library items here.

runbook

Step 3

Now, search for write-output in this library items pane.

runbook

Click on the Write-Output item here.

runbook

Click on Add to Canvas now.

runbook

Step 4

Here, it has been added. Let's work on editing the configuration. You should be configuring for the following details here.

  • Name
  • Label
  • Comment
  • Checkpoint for runbook
  • Parameters
  • Optional additional parameters
  • Retry behavior

    runbook

Let's label the name as “Write Hello World to output”.

runbook

Parameters

We should configure the parameter values here. Click on parameters, go for inputobject and select PowerShell expression as DataSource.

runbook

runbook

Step 5

Here, we need an output text as Hello World and hence we are using PowerShell expression over here is added. We will be specifying a string too.

Type the expression as Hello World now.

runbook

Click OK after adding the expression.

runbook

runbook

You can find the input object with a Green color and tick mark now with PowerShell expression.

runbook

Click OK in this blade.

Click Save to save the Graphical runbook of the Azure Automation process.

runbook

runbook

Once your Runbook is saved let's move on for testing.

Testing the Runbook

Click Test pane now in your graphical runbook of Azure automation.

runbook

You will be getting the test screen, mentioned below in your Azure graphical runbook.

runbook

Click Start now.

runbook

Afterwards, start process is given for runbook and it will submit the request to test the Runbook.

runbook

This will display the output of Hello World to your runbook.

runbook

You will be getting your Hello World text here.

Publishing the runbook

Click Publish in the runbook here.

runbook

Click Yes to give confirmation to publish runbook.

runbook

Your runbook is published now.

runbook

runbook


Similar Articles