-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavailabilitySets.json
More file actions
95 lines (95 loc) · 2.84 KB
/
availabilitySets.json
File metadata and controls
95 lines (95 loc) · 2.84 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"name": {
"type": "string",
"metadata": {
"description": "Specifies the name of the availability set."
}
},
"platformUpdateDomainCount": {
"type": "int",
"defaultValue": 5,
"maxValue": 20,
"metadata": {
"description": "Specifies the number of update domains that are used. If this element is not specified, the default value of 5 is used."
}
},
"platformFaultDomainCount": {
"type": "int",
"defaultValue": 3,
"maxValue": 3,
"metadata": {
"description": "Specifies the number of fault domains that are used. If this element is not specified, the default value of 3 is used."
}
},
"skuName": {
"type": "string",
"allowedValues": [
"Aligned",
"Classic"
],
"metadata": {
"description": "Specifies whether the availability set is managed or not."
}
},
"tags": {
"type": "object",
"defaultValue": {},
"metadata": {
"description": "Specifies the tags that will be assigned to the availability set."
}
},
"DependsOn": {
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Pass dependencies"
}
}
},
"variables": {
"comment": {
"definition": "https://docs.microsoft.com/en-us/rest/api/compute/availabilitysets/availabilitysets-create"
},
"availabilitySets": {
"apiVersion": "2017-03-30",
"name": "[parameters('name')]",
"type": "Microsoft.Compute/availabilitySets",
"location": "[resourceGroup().location]",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"tags": "[parameters('tags')]",
"sku": {
"name": "[parameters('skuName')]"
},
"properties": {
"platformUpdateDomainCount": "[parameters('platformUpdateDomainCount')]",
"platformFaultDomainCount": "[parameters('platformFaultDomainCount')]"
}
}
},
"resources": [
{
"apiVersion": "2017-03-30",
"name": "[parameters('name')]",
"type": "Microsoft.Compute/availabilitySets",
"location": "[resourceGroup().location]",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"tags": "[parameters('tags')]",
"sku": {
"name": "[parameters('skuName')]"
},
"properties": {
"platformUpdateDomainCount": "[parameters('platformUpdateDomainCount')]",
"platformFaultDomainCount": "[parameters('platformFaultDomainCount')]"
}
}
],
"outputs": {
"availabilitySets": {
"type": "object",
"value": "[variables('availabilitySets')]"
}
}
}