【问题标题】:Can we create a custom policy in azure to prevent the deletion of the resources in a subscription?我们可以在 azure 中创建自定义策略以防止删除订阅中的资源吗?
【发布时间】:2019-07-08 04:32:42
【问题描述】:

我知道我们可以对订阅级别应用锁定,但应用锁定会阻止您撤销 IAM 角色,所以我想知道我们是否可以制定自定义策略来避免删除?

【问题讨论】:

    标签: azure azure-policy


    【解决方案1】:

    不,因为通过在资源\范围上授予名为 write 的操作来允许删除,因此如果您创建一个禁止该操作的策略,您将失去编辑资源的能力,因为您无法仅指定删除。

    锁是为此而生的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 1970-01-01
      • 2020-06-21
      • 1970-01-01
      相关资源
      最近更新 更多