![](/img/trans.png)
[英]How to set the throughput to 10000 RU for Azure Cosmos DB Mongo API in code
[英]Azure policy - Cosmos DB SQL (Core) API - Restricting RU (Throughput) to not morethan 500
我正在嘗試為 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"
}
}
}
這是行不通的,無法找到我在做什么的問題。
能否請你幫忙?
您的策略設置為拒絕任何不超過 500 的吞吐量。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.