AzDO build agent in a docker image that has Terraform installed
Agent is added to the default pool of the AzDO organization targeted.
Terraform version v0.13.3
Microsoft documentation on configuring the build agent in docker
from where ever you want to run your docker image:
docker build -t dockeragent:latest .
docker run -e AZP_URL=<Azure DevOps instance> -e AZP_TOKEN=<PAT token> -e AZP_AGENT_NAME=mydockeragent dockeragent:latest
In your Azure DevOps pipeline yaml:
pool: default