gpt4 book ai didi

azure - 通过 Azure CLI 创建 Azure DevOps 组织

转载 作者:行者123 更新时间:2023-12-02 06:09:08 25 4
gpt4 key购买 nike

我想使用 az 命令行创建一个新的 Azure DevOps 组织。

我已经安装了 devops 扩展。

我已阅读 Microsoft documentation它描述了如何通过Web界面创建组织,但没有描述命令行。

我还阅读了 az 的文档和 az devops扩展名。

我错过了什么吗?

最佳答案

目前不支持通过 az devops 命令行或 DevOps REST API 创建 Azure DevOps 组织。

但是,您可以使用 Azure CLI az resource create创建 microsoft.visualstudio/account 类型的资源作为解决方法。这将创建一个 Azure DevOps 组织。例如:

az resource create -g AzureResourceGroup -n MyDevopsOrganizationName `
--resource-type microsoft.visualstudio/account --is-full-object `
--properties '{\"location\":\"Central Us\", \"properties\":{ \"operationType\": \"Create\"}}'

上面的命令创建 Azure DevOps 组织 MyDevopsOrganizationName。https://MyDevopsOrganizationName.visualstudio.com

您还可以use an ARM template to create an Azure DevOps organization .

关于azure - 通过 Azure CLI 创建 Azure DevOps 组织,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63891559/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com