繁体   English   中英

Azure DevOps 代理池创建使用 Terraform

[英]Azure DevOps agent pool creating using Terraform

我需要使用 Terraform 创建 Azure DevOps 代理池。

在 Terraform 我正在使用microsoft/azuredevops provider 资源 azuredevops_agent_pool

总之,我Error creating agent pool in Azure DevOps: Access denied. user needs Manage permissions to perform the action. For more information, contact the Azure DevOps Server administrator. Error creating agent pool in Azure DevOps: Access denied. user needs Manage permissions to perform the action. For more information, contact the Azure DevOps Server administrator.

我在 Azure Devops 中拥有管理员权限。 我可以尝试如何处理此错误?

UPD。 我可以从 Web UI azuredevops 创建代理池。 我正在使用带有 PAT 的身份验证。 PAT 配置为完全访问。

UPD2。 我了解项目级别的访问权限不同于组织级别的访问权限。 所以我在项目级别拥有完全访问权限,但 terraform 正在尝试在组织级别创建代理拉动。

目前是不可能的。 我面临同样的问题。 自 2020 年以来,该问题仍然存在。https://github.com/Azure/terraform-azurerm-aci-devops-agent/issues/4

如 README.md 中所述

在运行此模块之前,您需要在您的 Azure DevOps 组织中创建一个代理池,以及它授权管理此代理池的个人访问令牌。

因此无法从官方 Terraform azure DevOps 提供程序自动创建代理池

You might try to find a way through Azure DevOPS REST API: https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/elasticpools/create?view=azure-devops-rest-7.1

暂无
暂无

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

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