Skip to content

Commit d28c2d6

Browse files
committed
updates to allow choosing size of vm's and data disks
1 parent 5b1949d commit d28c2d6

File tree

1 file changed

+60
-4
lines changed

1 file changed

+60
-4
lines changed

template.json

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
}
1414
},
1515
"vnetGroup": {
16-
"defaultValue": "",
1716
"type": "String",
1817
"metadata": {
1918
"description": "VNET Resource Group."
@@ -62,6 +61,63 @@
6261
"description": "Name you would like to give to postgres' subnet."
6362
}
6463
},
64+
"zookeeperVMSize": {
65+
"type": "string",
66+
"defaultValue": "Standard_A3 ",
67+
"allowedValues": [
68+
"Standard_D2_v2",
69+
"Standard_D3_v2",
70+
"Standard_D4_v2",
71+
"Standard_D12_v2",
72+
"Standard_A2",
73+
"Standard_A3",
74+
"Standard_A4",
75+
"Standard_A5",
76+
"Standard_A6",
77+
"Standard_A7",
78+
"Standard_DS2",
79+
"Standard_DS3",
80+
"Standard_DS4",
81+
"Standard_DS12",
82+
"Standard_DS13",
83+
"Standard_DS14"
84+
],
85+
"metadata": {
86+
"description": "Size of the zookeeper vm's"
87+
}
88+
},
89+
"postgresVMSize": {
90+
"type": "string",
91+
"defaultValue": "Standard_DS12 ",
92+
"allowedValues": [
93+
"Standard_D2_v2",
94+
"Standard_D3_v2",
95+
"Standard_D4_v2",
96+
"Standard_D12_v2",
97+
"Standard_A2",
98+
"Standard_A3",
99+
"Standard_A4",
100+
"Standard_A5",
101+
"Standard_A6",
102+
"Standard_A7",
103+
"Standard_DS2",
104+
"Standard_DS3",
105+
"Standard_DS4",
106+
"Standard_DS12",
107+
"Standard_DS13",
108+
"Standard_DS14"
109+
],
110+
"metadata": {
111+
"description": "Size of the postgres vm's"
112+
}
113+
},
114+
"postgresDataSize": {
115+
"defaultValue": 256,
116+
"type": "Int",
117+
"metadata": {
118+
"description": "Size of the postgres data ssd in GB."
119+
}
120+
},
65121
"instanceCount": {
66122
"defaultValue": 2,
67123
"minValue": 2,
@@ -215,7 +271,7 @@
215271
"id": "[resourceId('Microsoft.Compute/availabilitySets', 'zookeeperAvailabilitySet')]"
216272
},
217273
"hardwareProfile": {
218-
"vmSize": "Standard_A2"
274+
"vmSize": "[parameters('zookeeperVMSize')]"
219275
},
220276
"osProfile": {
221277
"computerName": "[concat('zookeeper', copyIndex())]",
@@ -329,7 +385,7 @@
329385
"id": "[resourceId('Microsoft.Compute/availabilitySets', 'postgresAvailabilitySet')]"
330386
},
331387
"hardwareProfile": {
332-
"vmSize": "Standard_DS1"
388+
"vmSize": "[parameters('postgresVMSize')]"
333389
},
334390
"osProfile": {
335391
"computerName": "[concat('postgres', copyIndex())]",
@@ -354,7 +410,7 @@
354410
"dataDisks": [
355411
{
356412
"name": "data0",
357-
"diskSizeGB": "256",
413+
"diskSizeGB": "[parameters('postgresDataSize')]",
358414
"lun": 0,
359415
"vhd": {
360416
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountPrefix')[copyIndex()], 'd', variables('storageAccountSuffix')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, 'vhds/', 'data0', copyIndex(), '.vhd')]"

0 commit comments

Comments
 (0)