Home > Enterprise >  Azure Devops - create pipeline environment with Terraform
Azure Devops - create pipeline environment with Terraform

Time:11-11

Is there a way to create environments inside the Azure Devops Pipeline using Terraform? Or is there any other way to automate this?

CodePudding user response:

You can automate the creation of an ADO pipeline environment with the REST API.

POST https://dev.azure.com/{organization}/{project}/_apis/distributedtask/environments?api-version=6.0-preview.1

On terraform, you can find all the terraform resources of Azure Devops provider, here. For the moment, it is not possible to create target environments of Azure Pipelines.

  • Related