-
Notifications
You must be signed in to change notification settings - Fork 8
/
azuredeploy.json
270 lines (270 loc) · 8.19 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
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"namePrefix": {
"type": "string",
"minLength": 3,
"maxLength": 8,
"metadata": {
"description": "Naming prefix for each new resource created. 3-char min, 8-char max, lowercase alphanumeric"
}
},
"vmSize": {
"type": "string",
"metadata": {
"description": "Size of the S2D VMs to be created"
},
"defaultValue": "Standard_DS4_v2"
},
"enableAcceleratedNetworking": {
"type": "bool",
"metadata": {
"description": "Enable (true) or Disable (false) Accelerated Networking - if enabling, make sure you are selecting appropriate VM Size and Region"
}
},
"imageSku":{
"type": "string",
"allowedValues": [
"2016-Datacenter-Server-Core",
"2016-Datacenter"
],
"metadata": {
"description": "Operating System Image to use for provisioning each S2D VM"
},
"defaultValue": "2016-Datacenter-Server-Core"
},
"vmCount": {
"type": "int",
"minValue": 2,
"maxValue": 3,
"metadata": {
"description": "Number of S2D VMs to be created in 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": 1023
},
"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
},
"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"
}
},
"existingVirtualNetworkRGName": {
"type": "string",
"metadata": {
"description": "Resource Group Name for the existing VNET."
}
},
"existingVirtualNetworkName": {
"type": "string",
"metadata": {
"description": "Name of the existing VNET."
}
},
"existingSubnetName": {
"type": "string",
"metadata": {
"description": "Name of the existing subnet in the existing VNET to which the S2D VMs should be deployed"
}
},
"sofsName": {
"type": "string",
"metadata": {
"description": "Name of clustered Scale-Out File Server role"
},
"defaultValue": "fs01"
},
"shareName": {
"type": "string",
"metadata": {
"description": "Name of shared data folder on clustered Scale-Out File Server role"
},
"defaultValue": "data"
},
"scheduledUpdateDay": {
"type": "string",
"allowedValues": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"metadata": {
"description": "Day to perform scheduled cluster-aware updating each week"
},
"defaultValue": "Tuesday"
},
"scheduledUpdateTime": {
"type": "string",
"metadata": {
"description": "Time to begin scheduled cluster-aware updating on selected day"
},
"defaultValue": "3:00AM"
},
"realtimeAntimalwareEnabled": {
"type": "string",
"allowedValues": [
"true",
"false"
],
"metadata": {
"description": "True or False to enable realtime antimalware scanning"
},
"defaultValue": "true"
},
"scheduledAntimalwareEnabled": {
"type": "string",
"allowedValues": [
"true",
"false"
],
"metadata": {
"description": "True or False to enable scheduled antimalware scanning"
},
"defaultValue": "true"
},
"scheduledAntimalwareTime": {
"type": "string",
"metadata": {
"description": "Minutes past midnight to begin scheduled antimalware scanning each day"
},
"defaultValue": "120"
},
"_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-storage-spaces-direct-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": {
"subnetRef": "[resourceId(parameters('existingVirtualNetworkRGName'),'Microsoft.Network/virtualNetworks/subnets',parameters('existingVirtualNetworkName'),parameters('existingSubnetName'))]",
"deployS2DClusterTemplateURL": "[concat(parameters('_artifactsLocation'),'/nestedtemplates/deploy-s2d-cluster.json',parameters('_artifactsLocationSasToken'))]",
"deployS2DCluster": "deployS2DCluster"
},
"resources": [
{
"name": "[variables('deployS2DCluster')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('deployS2DClusterTemplateURL')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"namePrefix": {
"value": "[parameters('namePrefix')]"
},
"domainName": {
"value": "[parameters('existingDomainName')]"
},
"adminUsername": {
"value": "[parameters('adminUsername')]"
},
"adminPassword": {
"value": "[parameters('adminPassword')]"
},
"nicSubnetUri": {
"value": "[variables('subnetRef')]"
},
"imageSku": {
"value": "[parameters('imageSku')]"
},
"vmSize": {
"value": "[parameters('vmSize')]"
},
"enableAcceleratedNetworking": {
"value": "[parameters('enableAcceleratedNetworking')]"
},
"vmCount": {
"value": "[parameters('vmCount')]"
},
"vmDiskSize": {
"value": "[parameters('vmDiskSize')]"
},
"vmDiskCount": {
"value": "[parameters('vmDiskCount')]"
},
"sofsName": {
"value": "[parameters('sofsName')]"
},
"shareName": {
"value": "[parameters('shareName')]"
},
"scheduledUpdateDay": {
"value": "[parameters('scheduledUpdateDay')]"
},
"scheduledUpdateTime": {
"value": "[parameters('scheduledUpdateTime')]"
},
"realtimeAntimalwareEnabled": {
"value": "[parameters('realtimeAntimalwareEnabled')]"
},
"scheduledAntimalwareEnabled": {
"value": "[parameters('scheduledAntimalwareEnabled')]"
},
"scheduledAntimalwareTime": {
"value": "[parameters('scheduledAntimalwareTime')]"
},
"_artifactsLocation": {
"value": "[parameters('_artifactsLocation')]"
},
"_artifactsLocationSasToken": {
"value": "[parameters('_artifactsLocationSasToken')]"
}
}
}
}
],
"outputs": {
"sofsPath": {
"type": "string",
"value": "[concat('\\\\',reference(variables('deployS2DCluster')).outputs.sofsName.value,'\\',reference(variables('deployS2DCluster')).outputs.shareName.value)]"
}
}
}