A while a go, I wondered how I can create a self-servicing capability to deploy self-hosted environment agents onto my Azure Workloads and thought, why not use the same tool that’s responsible for targeting those environments?!
That’s where I started fiddling around with the Azure DevOps Services REST API and created automation around it to create the required Personal Access Token (PAT) that’s needed for installing an environment agent. This led me to create three articles that does it in phases. If you want to follow these phased tutorials, start your journey on:
- The Token Phase, that is responsible for retrieving the PAT through Azure DevOps Services REST API
- Creating the pre-pipeline phase
- In the end, bringing everything together into one single pipeline