简体   繁体   English

Azure Devops - 使用 Terraform 创建管道环境

[英]Azure Devops - create pipeline environment with Terraform

Is there a way to create environments inside the Azure Devops Pipeline using Terraform?有没有办法使用 Terraform 在 Azure Devops Pipeline 内创建环境? Or is there any other way to automate this?或者有没有其他方法可以自动执行此操作?

You can automate the creation of an ADO pipeline environment with the REST API .您可以使用REST API自动创建 ADO 管道环境。

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 .terraform 上,您可以在此处找到 Azure Devops 提供程序的所有 terraform 资源。 For the moment, it is not possible to create target environments of Azure Pipelines.目前,无法创建 Azure Pipelines 的目标环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM