【问题标题】:Azure RBAC application-insights-component-contributor vs monitoring-contributorAzure RBAC 应用程序洞察组件贡献者与监控贡献者
【发布时间】:2021-03-15 22:32:07
【问题描述】:

我试图了解 Azure RBAC 中这两个角色之间的重叠。看起来monitor-contributor 完全涵盖了“Microsoft.Resources/deployments/*”之外的application-insights-component-contributor。考虑以下情况,我是否正在将 Web 可用性测试部署到 AppInsights 资源中,并且部署身份是已被授予监视贡献者权限的服务主体。我应该授予此身份“application-insights-component-contributor”以能够创建这些资源还是“监控贡献者”足够好?

1 编辑

我还部署了警报规则以及测试以及作为 rm 模板实施的那些规则,如果 SP 仅被授予监视贡献者,它就会失败

Error: requesting Validation for Template Deployment "app508-dfpg-dev3-diag-eastus2-backoffice-ai-test-dep" (Resource Group "app508-dfpg-ne-diag-eastus2"): resources.DeploymentsClient#Validate: Failure sending request: StatusCode=403 -- Original Error: Code="AuthorizationFailed" Message="The client '2c20abbf-e825-495c-9d06-90c5f04f9c60' with object id '2c20abbf-0000-0000-0000-90c5f04f9c60' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/s/resourcegroups/app508-dfpg-ne-diag-eastus2/providers/Microsoft.Resources/deployments/app508-dfpg-dev3-diag-eastus2-backoffice-ai-test-dep' or the scope is invalid. If access was recently granted, please refresh your credentials."

【问题讨论】:

    标签: azure service-principal azure-rbac


    【解决方案1】:

    不用给Application Insights Component Contributor角色,Monitoring Contributor角色就够了。当您部署网络可用性测试时,您只需要Microsoft.Insights/webtests/* 操作权限,它已经包含在Monitoring Contributor 中。

    【讨论】:

    • 非常感谢您的快速周转,请参阅我的第一次编辑。
    • @AlexeyAuslender 如果您使用 ARM 模板部署它们,您还需要 Microsoft.Resources/deployments/validate/action 权限,它包含在 Application Insights Component Contributor 中作为 Microsoft.Resources/deployments/*,而不是在 Monitoring Contributor 中,所以在您的情况,只要加上Application Insights Component Contributor就可以了。
    猜你喜欢
    • 2011-09-13
    • 2020-11-29
    • 1970-01-01
    • 2019-04-02
    • 1970-01-01
    • 2017-11-17
    • 1970-01-01
    • 1970-01-01
    • 2018-07-28
    相关资源
    最近更新 更多