-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Cosmos_Throughput.json
59 lines (59 loc) · 2.06 KB
/
Cosmos_Throughput.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"properties": {
"displayName": "Enable Azure Cosmos DB throughput policy",
"policyType": "BuiltIn",
"description": "Enable throughput control for Azure Cosmos DB resources in the specified scope (Management group, Subscription or resource group). Takes max throughput as parameter. Use this policy to help enforce throughput control via the resource provider.",
"metadata": {
"version": "1.0.0",
"category": "Cosmos DB"
},
"version": "1.0.0",
"parameters": {
"throughputMax": {
"type": "Integer",
"metadata": {
"displayName": "Max RUs",
"description": "The maximum throughput (RU/s) that can be assigned to a container via the Resource Provider during create or update."
}
},
"effect": {
"type": "String",
"metadata": {
"displayName": "Policy Effect",
"description": "The desired effect of the throughput limit policy. The key based metadata write access policy is always enforced."
},
"allowedValues": [
"audit",
"deny",
"disabled"
],
"defaultValue": "deny"
}
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "Cosmos_MaxThroughput_Deny",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0b7ef78e-a035-4f23-b9bd-aff122a1b1cf",
"definitionVersion": "1.*.*",
"parameters": {
"throughputMax": {
"value": "[parameters('throughputMax')]"
},
"effect": {
"value": "[parameters('effect')]"
}
}
},
{
"policyDefinitionReferenceId": "Cosmos_DisableMetadata_Append",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4750c32b-89c0-46af-bfcb-2e4541a818d5",
"definitionVersion": "1.*.*"
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/cb5e1e90-7c33-491c-a15b-24885c915752",
"name": "cb5e1e90-7c33-491c-a15b-24885c915752"
}