Today we shall see how to trigger runbooks using webhooks when an alert is fired from Azure Monitor.
To illustrate this, I have taken a specific example of triggering a runbook, when an Azure virtual machine is de-allocated.
Step 1: Simulate a de-allocation event by Stopping a virtual machine.
Step 2: Check the activity logs for the de-allocation event.
Step 3: Click on the “+ Add activity log alert”. This will start up a pane to fill out the alert details.
Step 4: Before filling out the alert details, I encourage you to go ahead and create an empty Runbook. So that you can create the webhook for the Runbook, which is required while filling out the alert details.
Step 5: Once you click on the “Webhook”, you will get the below pane. Click on “Create new webhook” and fill out the details accordingly. Make sure you copy the URL…
View original post 118 more words