Create an Azure Automation Runbook Monitor Using a Textual Runbook

Author by Duncan Lindquist

In the first two post you learned how to create a monitor using automation schedules and using the Azure Job Scheduler. In this post I will show you how to use a textual runbook to create a monitor. To do this we need to create a monitor runbook that will then kick off the azure automation runbook. The runbook will look like this: Monrun02Here we are using a while($true) loop to keep the runbook running at the interval we define using the $MonitorFrequency variable. We do this by adding a start-sleep to create the wait time. This is the third and final type of monitor for this series of blog posts. In the next post I will talk through the pros and cons of each type so that you can choose the perfect monitor for your scenario.

Duncan Lindquist

Service Management & Automation Solution Lead