-
Notifications
You must be signed in to change notification settings - Fork 4
/
azuredeploya.json
242 lines (242 loc) · 8.05 KB
/
azuredeploya.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"namePrefix": {
"type": "string",
"minLength": 3,
"maxLength": 6,
"metadata": {
"description": "Naming prefix for each new resource created. 3-char min, 6-char max, lowercase alphanumeric"
}
},
"vmSize": {
"type": "string",
"metadata": {
"description": "Size of the S2D VMs to be created"
},
"defaultValue": "Standard_DS1_v2"
},
"vmCount": {
"type": "int",
"minValue": 2,
"maxValue": 3,
"metadata": {
"description": "Number of S2D VMs to be created in each cluster (Min=2, Max=3)"
},
"defaultValue": 2
},
"vmDiskSize": {
"type": "int",
"minValue": 128,
"maxValue": 1023,
"metadata": {
"description": "Size of each data disk in GB on each S2D VM (Min=128, Max=1023)"
},
"defaultValue": 128
},
"vmDiskCount": {
"type": "int",
"minValue": 2,
"maxValue": 32,
"metadata": {
"description": "Number of data disks on each S2D VM (Min=2, Max=32). Ensure that the VM size you've selected will support this number of data disks."
},
"defaultValue": 2
},
"srLogSize": {
"type": "int",
"minValue": 8,
"maxValue": 1023,
"metadata": {
"description": "Storage Replica Log Size in GB. Ensure that disks selected above will have sufficient space for a Log Volume of this size."
},
"defaultValue": 8
},
"srAsyncRPO": {
"type": "int",
"minValue": 30,
"maxValue": 3600,
"metadata": {
"description": "Storage Replica Recovery Point Objective (RPO) in Seconds"
},
"defaultValue": 300
},
"existingDomainName": {
"type": "string",
"metadata": {
"description": "DNS domain name for existing Active Directory domain"
}
},
"adminUsername": {
"type": "string",
"metadata": {
"description": "Name of the Administrator of the existing Active Directory Domain"
}
},
"adminPassword": {
"type": "securestring",
"minLength": 12,
"metadata": {
"description": "Password for the Administrator account of the existing Active Directory Domain"
}
},
"existingRegionAVirtualNetworkRGName": {
"type": "string",
"metadata": {
"description": "Resource Group Name for the existing VNET in region A."
}
},
"existingRegionAVirtualNetworkName": {
"type": "string",
"metadata": {
"description": "Name of the existing VNET in region A."
}
},
"existingRegionASubnetName": {
"type": "string",
"metadata": {
"description": "Name of the existing subnet in the existing VNET in Region A to which the S2D VMs should be deployed"
}
},
"existingRegionBVirtualNetworkRGName": {
"type": "string",
"metadata": {
"description": "Resource Group Name for the existing VNET in region B."
}
},
"existingRegionBVirtualNetworkName": {
"type": "string",
"metadata": {
"description": "Name of the existing VNET in region B."
}
},
"existingRegionBSubnetName": {
"type": "string",
"metadata": {
"description": "Name of the existing subnet in the existing VNET in Region B to which the S2D VMs should be deployed"
}
},
"sofsNameSuffix": {
"type": "string",
"minLength": 1,
"maxLength": 6,
"metadata": {
"description": "Name suffix of clustered Scale-Out File Server role (1-char min, 6-char max)"
},
"defaultValue": "fs01"
},
"shareName": {
"type": "string",
"metadata": {
"description": "Name of shared data folder on each clustered Scale-Out File Server role"
},
"defaultValue": "data"
},
"_artifactsLocation": {
"type": "string",
"metadata": {
"description": "Location of resources that the script is dependent on such as linked templates and DSC modules"
},
"defaultValue": "https://raw.githubusercontent.com/robotechredmond/301-s2d-sr-dr-md/master"
},
"_artifactsLocationSasToken": {
"type": "securestring",
"metadata": {
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
},
"defaultValue": ""
}
},
"variables": {
"regionANamePrefix": "[concat(parameters('namePrefix'),'-a')]",
"regionBNamePrefix": "[concat(parameters('namePrefix'),'-b')]",
"regionASofsName": "[concat(variables('regionANamePrefix'),'-',parameters('sofsNameSuffix'))]",
"regionBSofsName": "[concat(variables('regionBNamePrefix'),'-',parameters('sofsNameSuffix'))]",
"regionASubnetRef": "[resourceId(parameters('existingRegionAVirtualNetworkRGName'),'Microsoft.Network/virtualNetworks/subnets',parameters('existingRegionAVirtualNetworkName'),parameters('existingRegionASubnetName'))]",
"regionBSubnetRef": "[resourceId(parameters('existingRegionBVirtualNetworkRGName'),'Microsoft.Network/virtualNetworks/subnets',parameters('existingRegionBVirtualNetworkName'),parameters('existingRegionBSubnetName'))]",
"deployS2DClusterTemplateURL": "[concat(parameters('_artifactsLocation'),'/nestedtemplates/deploy-s2d-cluster.json',parameters('_artifactsLocationSasToken'))]",
"regionADeployS2DCluster": "[concat(variables('regionANamePrefix'),'-deployS2DCluster')]",
"regionBDeployS2DCluster": "[concat(variables('regionBNamePrefix'),'-deployS2DCluster')]"
},
"resources": [
{
"name": "[variables('regionADeployS2DCluster')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('deployS2DClusterTemplateURL')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"namePrefix": {
"value": "[variables('regionANamePrefix')]"
},
"remoteNamePrefix": {
"value": "[variables('regionBNamePrefix')]"
},
"activeOrPassive": {
"value": "active"
},
"location": {
"value": "[resourceGroup().location]"
},
"domainName": {
"value": "[parameters('existingDomainName')]"
},
"adminUsername": {
"value": "[parameters('adminUsername')]"
},
"adminPassword": {
"value": "[parameters('adminPassword')]"
},
"nicSubnetUri": {
"value": "[variables('regionASubnetRef')]"
},
"vmSize": {
"value": "[parameters('vmSize')]"
},
"vmCount": {
"value": "[parameters('vmCount')]"
},
"vmDiskSize": {
"value": "[parameters('vmDiskSize')]"
},
"vmDiskCount": {
"value": "[parameters('vmDiskCount')]"
},
"srLogSize": {
"value": "[parameters('srLogSize')]"
},
"srAsyncRPO": {
"value": "[parameters('srAsyncRPO')]"
},
"sofsName": {
"value": "[variables('regionASofsName')]"
},
"remoteSofsName": {
"value": "[variables('regionBSofsName')]"
},
"shareName": {
"value": "[parameters('shareName')]"
},
"_artifactsLocation": {
"value": "[parameters('_artifactsLocation')]"
},
"_artifactsLocationSasToken": {
"value": "[parameters('_artifactsLocationSasToken')]"
}
}
}
}
],
"outputs": {
"regionASofsPath": {
"type": "string",
"value": "[concat('\\\\',reference(variables('regionADeployS2DCluster')).outputs.sofsName.value,'\\',reference(variables('regionADeployS2DCluster')).outputs.shareName.value)]"
}
}
}