【问题标题】:Set IAM rule in ARM template在 ARM 模板中设置 IAM 规则
【发布时间】:2018-11-14 22:22:12
【问题描述】:

我有一个用于部署服务总线的 ARM 模板。模板是在这里找到的:https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-resource-manager-overview

我正在尝试将特定用户组添加为贡献者,但不确定如何进行。

谢谢,

【问题讨论】:

    标签: azure arm-template


    【解决方案1】:

    您需要阅读this 文章。基本上这是你感兴趣的sn-p:

    {
      "type": "Microsoft.Authorization/roleAssignments",
      "apiVersion": "2017-05-01",
      "name": "[parameters('roleNameGuid')]", << generate a guid for this value
      "properties": {
        "roleDefinitionId": "[variables(parameters('builtInRoleType'))]", << role id
        "principalId": "[parameters('principalId')]", << need to pass in group objectId
        "scope": "[variables('scope')]" << your scope
      }
    }
    

    贡献者角色定义"Contributor": "[concat(subscription().Id, '/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c')]",

    【讨论】:

      猜你喜欢
      • 2017-10-17
      • 1970-01-01
      • 1970-01-01
      • 2021-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多