forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazuredeploy.json
60 lines (60 loc) · 1.77 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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 60,
"metadata": {
"description": "Service name must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and is limited between 2 and 60 characters in length."
}
},
"sku": {
"type": "string",
"defaultValue": "standard",
"metadata": {
"description": "The SKU of the search service you want to create. E.g. free or standard"
}
},
"replicaCount": {
"type": "int",
"minValue": 1,
"maxValue": 12,
"defaultValue": 1,
"metadata": {
"description": "Replicas distribute search workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard only)."
}
},
"partitionCount": {
"type": "int",
"allowedValues": [
1,
2,
3,
4,
6,
12
],
"defaultValue": 1,
"metadata": {
"description": "Partitions allow for scaling of document count as well as faster indexing by sharding your index over multiple Azure Search units."
}
}
},
"resources": [
{
"apiVersion": "2015-02-28",
"name": "[parameters('name')]",
"type": "Microsoft.Search/searchServices",
"location": "[resourceGroup().location]",
"properties": {
"sku": {
"name": "[toLower(parameters('sku'))]"
},
"replicaCount": "[parameters('replicaCount')]",
"partitionCount": "[parameters('partitionCount')]"
}
}
]
}