【问题标题】:Azure policy - Cosmos DB SQL (Core) API - Restricting RU (Throughput) to not morethan 500Azure 策略 - Cosmos DB SQL(核心)API - 将 RU(吞吐量)限制为不超过 500
【发布时间】:2020-01-30 14:27:19
【问题描述】:

我正在尝试为 Cosmos DB (SQL API) 实施一项 azure 策略,以拒绝用户创建超过 500 个吞吐量。

这里我使用 JSON 作为策略规则,

{
  "mode": "All",
    "policyRule":{
         "if": {
          "allOf": [
             {
                "field": "type",
                "equals": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases"
             },
             {
                "not": {
                    "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.minimumThroughput",
                    "greater": 500
                }
             }
          ]
       },
       "then": {
          "effect": "deny"
       }
    }
}

这不起作用,并且无法找到正在做什么的问题。

你能帮忙吗?

【问题讨论】:

    标签: azure azure-cosmosdb-sqlapi azure-policy


    【解决方案1】:

    您的政策设置为拒绝任何不超过 500 的吞吐量。

    【讨论】:

    • 嗨,凯姆利。感谢您的回复。我正在寻找相同的
    猜你喜欢
    • 1970-01-01
    • 2021-09-24
    • 1970-01-01
    • 2021-04-05
    • 2020-08-29
    • 1970-01-01
    • 2021-08-14
    • 1970-01-01
    • 2021-01-01
    相关资源
    最近更新 更多