Introduction to Azure DevOps Self Hosted Agents running inside an Azure Container Instance
Running your Azure DevOps self-hosted agent in a Azure Container Instance. Contains serveral dockerfile examples for Windows and Linux container agents as well as all the necessary YAML pipelines and ARM templates.
Getting Started
- Clone this repository.
- Import the YAML pipelines.
- Generate an Azure DevOps PAT with the folowing permissions: Agent Pools (Read & Manage), Deployment Groups (Read & Manage)
- Create an agent pool in Azure DevOps to put your self-hosted agent container inside.
- Alter the variables inside the "infrastructure" pipelines.
- Run the "infrastructure" pipeline for the first time.
- Store PAT token in newly created Azure Key Vault.
- Choose which "container" pipeline you want to start using and alter the variables inside.
- Alter the ARM template parameters file so that the Key Vault references matches up.
- Run the "container" pipeline for the first time.
For more information see the blog article I've wrote about this: https://medium.com/@koosg/build-your-own-azure-devops-agents-with-pipelines-95104be095d5