Azure Automation: Update Management Runbook


This will be a quick one.

As I was looking for a solution to add Azure VM to update management through Terraform I came up short. Therefore we opted to have Terraform do a web call to trigger a Runbook in Azure Automation. I went spelunking and found that the AA team had already done most of the job, but it was a bit out of date. I therefore tok up the mantle and brought the code logic up to date and added support for sending parameters through a webhook.

The updated runbook to add VMs to both Update Management and Change Tracking:



A maintenance Runbook to remove retired VMs from Update Management and Change Tracking:


Happy Tinkering!

Leave a Reply

Your email address will not be published. Required fields are marked *