【问题标题】:ARM Template split array into more granular controlsARM 模板将数组拆分为更精细的控件
【发布时间】:2021-03-11 15:33:19
【问题描述】:

近年来,除了 SQL,我没有编写太多代码。我必须为 Azure 实现一个自定义模板,但我不确定如何将授权数组拆分为单个段以便在 Azure 门户中更好地显示。

我已经开发了模板并创建了参数文件。

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "mspOfferName": {
            "value": "Offer01"
        },
        "mspOfferDescription": {
            "value": "Blah Blah"
        },
        "managedByTenantId": {
            "value": "GUID"
        },
        "authorizations": {
            "value": [
                        { 
                            "principalId": "{AAD Group ID to go here}", 
                            "roleDefinitionId": "GUID",
                            "principalIdDisplayName": "Contributors",
                            "tags": ["Owners: abc, Contributors: def"]
                        }, 
                        { 
                            "principalId": "{AAD Group ID to go here}", 
                            "roleDefinitionId": "GUID",
                            "principalIdDisplayName": "Readers" 
                        },
            {
                            "principalId": "{AAD Group ID to go here}",
                            "principalIdDisplayName": "PIM_Group",
                            "roleDefinitionId": "GUID",
                            "delegatedRoleDefinitionIds": [
                                "GUID",
                                "GUID"
                            ]
                        }   
                    ]
        }
    }
}

它可以毫无问题地上传到 Azure,但我希望在门户上看到更多控件。现在我看到的是这样的:

有什么方法可以查看更多控件;说:principalId 的文本框,roleDefinitionId 的文本框,principalDisplayName 的文本框为每个组?

【问题讨论】:

  • 视图基于您的模板。我们无法改变它。

标签: azure azure-resource-manager arm-template


【解决方案1】:

很遗憾,这是不可能的。

当您在门户中部署模板时,parameters 中定义的每个独立参数都会有一个文本框。

【讨论】:

    猜你喜欢
    • 2017-06-11
    • 2012-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-22
    相关资源
    最近更新 更多