Erwin Staal

DevOps Engineer & Azure Architect

July 25, 2021

Automatically renew the image used in an Azure DevOps private agent

In a previous post, I wrote about creating your own hosted Build and Release agents in Azure DevOps. That process could be improved by regenerating the VM image, for example, every month. By doing that, you stay up-to-date with both the latest versions of all the tools installed as well as with security patches. This post will describe how to do that using an Azure DevOps pipeline which will be triggered monthly.