aci-devops-agent
Azure/aci-devops-agent/azurerm
Terraform Module to deploy a Azure DevOps self-hosted agents on Azure Container Instance
terraform-azurerm-aci-devops-agent This repository contains a Terraform module that helps you to deploy Azure DevOps self-hosted agents running on Azure Container Instance. You can choose to deploy Linux or Windows agents, provide custom Docker images for the agents to include the tools you really need. It also give you the option to deploy the agents into a private virtual network, if the agents needs to access internal resources. How-to use this module to deploy Azure DevOps agents Build the Docker images This module requires that you build your own Linux and/or Windows Docker images, to run the Azure DevOps agents. The docker contains Dockerfile and instructions for both. Create an Azure DevOps agent pool and personal access token Before running this module, you need to create an agent
| Name | Type | Description | Default |
|---|---|---|---|
| location | string | The Azure location to use for deployment | required |
| azure_devops_org_name | string | The name of the Azure DevOps organization in which the containerized agents will | required |
| azure_devops_personal_access_token | string | The personal access token to use to connect to Azure DevOps (see https://docs.mi | required |
| resource_group_name | string | The name of the resource group in which the containerized agents will be deploye | required |
| enable_vnet_integration | bool | (Optional) A flag that indicates if the containerized agents must be deployed in | false |
| vnet_name | string | (Optional) The name of the virtual network in which the containerized agents wil | "" |
| linux_agents_configuration | object({ count | (Optional) The configuration of the Linux agents to deploy | {
"agent_name_prefix": "",
"agent_po |
| windows_agents_configuration | object({ count | (Optional) The configuration of the Windows agents to deploy | {
"agent_name_prefix": "",
"agent_po |
| image_registry_credential | object({ username = string | (Optional) The credentials to use to connect to the Docker private registry wher | {
"password": "",
"server": "",
"u |
| create_resource_group | bool | (Optional) A flag that indicates if the resource group in which the agents will | true |
| subnet_name | string | (Optional) The name of the subnet of the vnet in which the containerized agents | "" |
| dns_config | object({ nameservers = | (Optional) The DNS config information for a container group. | null |
| vnet_resource_group_name | string | (Optional) The name of the resource group that contains the virtual network in w | "" |
linux_agents_names — An array that contains the names of Linux agents that have been deployed with the current configuratvnet_integration_enabled — A flag that indicates if the vnet integration has been enabled with the current configuration.subnet_id — If the vnet integration is enabled, the id of the subnet in which the agents are deployed.has_windows_agents — A flag that indicates if Windows agents have been deployed with the current configuration.windows_agents_count — A number that indicates the number of Windows agents that have been deployed with the current configwindows_agents_names — An array that contains the names of Windows agents that have been deployed with the current configurhas_linux_agents — A flag that indicates if Linux agents have been deployed with the current configuration.linux_agents_count — A number that indicates the number of Linux agents that have been deployed with the current configur