gpt4 book ai didi

azure - ARM 创建嵌套管理组

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

我尝试创建一个 ARM 模板,用于使用 ManagementGroups 构建基础结构和订阅。我当前的问题是我无法创建嵌套管理组,有人已经做了类似的事情吗?

我已经看过这篇文档文章:

https://learn.microsoft.com/en-us/azure/templates/microsoft.management/managementgroups?tabs=json

最佳答案

参见https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-management-group?tabs=azure-cli#management-group

您需要指定properties.details.parent.id:

"resources": [
{
"name": "[parameters('mgName')]",
"type": "Microsoft.Management/managementGroups",
"apiVersion": "2020-05-01",
"scope": "/",
"location": "eastus",
"properties": {
"details": {
"parent": {
"id": "[tenantResourceId('Microsoft.Management/managementGroups', parameters('parentMG'))]"
}
}
}
}
],

关于azure - ARM 创建嵌套管理组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68177177/

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