-
Notifications
You must be signed in to change notification settings - Fork 1
/
azuredeploy.json
97 lines (97 loc) · 3.25 KB
/
azuredeploy.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"databaseAccountName": {
"defaultValue": null,
"type": "string"
},
"databasePassword": {
"defaultValue": null,
"type": "securestring"
},
"experience": {
"type": "string",
"defaultValue": "DocumentDB",
"allowedValues": [
"DocumentDB",
"Graph",
"Table",
"MongoDB"
]
},
"consistencyLevel": {
"type": "string",
"defaultValue": "Session",
"allowedValues": [
"Strong",
"BoundedStaleness",
"Session",
"ConsistentPrefix",
"Eventual"
]
},
"maxStalenessPrefix": {
"type": "int",
"minValue": 10,
"maxValue": 1000,
"defaultValue": 10,
"metadata": {
"description": "When consistencyLevel is set to BoundedStaleness, then this value is required, else it can be ignored."
}
},
"maxIntervalInSeconds": {
"type": "int",
"minValue": 5,
"maxValue": 600,
"defaultValue": 5,
"metadata": {
"description": "When consistencyLevel is set to BoundedStaleness, then this value is required, else it can be ignored."
}
},
"ipRangeFilter": {
"type": "string",
"metadata": {
"description": "IP addresses/ranges must be comma separated and must not contain any spaces"
}
},
"kind": {
"type": "string",
"defaultValue": "GlobalDocumentDB",
"allowedValues": [
"GlobalDocumentDB",
"MongoDB",
"Parse"
],
"metadata": {
"description": "Indicates the type of database account. This can only be set at database account creation. - GlobalDocumentDB, MongoDB, Parse"
}
}
},
"variables": {
"offerType": "Standard"
},
"resources": [
{
"type": "Microsoft.DocumentDB/databaseAccounts",
"kind": "[parameters('kind')]",
"name": "[parameters('databaseAccountName')]",
"apiVersion": "2015-04-08",
"location": "[resourceGroup().location]",
"tags": {
"defaultExperience": "[parameters('experience')]"
},
"properties": {
"databaseAccountOfferType": "[variables('offerType')]",
"consistencyPolicy": {
"defaultConsistencyLevel": "[parameters('consistencyLevel')]",
"maxIntervalInSeconds": "[parameters('maxIntervalInSeconds')]",
"maxStalenessPrefix": "[parameters('maxStalenessPrefix')]"
},
"ipRangeFilter":"[parameters('ipRangeFilter')]",
"name": "[parameters('databasePassword')]"
},
"dependsOn": []
}
]
}