我想使用 az 命令行创建一个新的 Azure DevOps 组织。
我已经安装了 devops 扩展。
我已阅读 Microsoft documentation它描述了如何通过Web界面创建组织,但没有描述命令行。
我错过了什么吗?
最佳答案
目前不支持通过 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/