In this article I present how I build my private Azure pipeline agent in Azure based on Packer script provided by Microsoft that it’s use for build the Hosted Azure pipeline agent.
For build my private agent I do that in 4 steps:
- Create an image (VHD format) with Packer script provided by Microsoft
- Use this VHD for create a custom VM image with Terraform
- Provision a new Azure DevOps Pipeline Agent VM with Terraform
- Install and Configure the Azure DevOps Pipeline Agent with Ansible