Skip to content

Commit f30f4ac

Browse files
committed
Updated per PR
1 parent e1e09ef commit f30f4ac

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

solution_template/vm-linux-terraform/createUiDefinition.json

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,60 @@
5757
}
5858
],
5959
"steps": [
60+
{
61+
"name": "firstStep",
62+
"label": "Additional Settings",
63+
"bladeTitle": "Additional Settings",
64+
"subLabel": {
65+
"preValidation": "",
66+
"postValidation": "Done"
67+
},
68+
"elements": [
69+
{
70+
"name": "vmSize",
71+
"type": "Microsoft.Compute.SizeSelector",
72+
"label": "Size",
73+
"toolTip": "",
74+
"recommendedSizes": [
75+
"Standard_DS2_v2",
76+
"Standard_DS1_v2",
77+
"Standard_DS11_v2"
78+
],
79+
"osPlatform": "Linux",
80+
"count": 1,
81+
"visible": true
82+
},
83+
{
84+
"name": "vmDiskType",
85+
"type": "Microsoft.Common.OptionsGroup",
86+
"label": "VM disk type",
87+
"defaultValue": "SSD",
88+
"toolTip": "Premium disks (SSD) are backed by solid state drives and offer consistent, low-latency performance. They provide the best balance between price and performance, and are ideal for I/O-intensive applications and production workloads. Standard disks (HDD) are backed by magnetic drives and are preferable for applications where data is accessed infrequently.",
89+
"constraints": {
90+
"allowedValues": [
91+
{
92+
"label": "SSD",
93+
"value": "Premium_LRS"
94+
},
95+
{
96+
"label": "HDD",
97+
"value": "Standard_LRS"
98+
}
99+
]
100+
},
101+
"visible": true
102+
}
103+
]
104+
}
60105
],
61106
"outputs": {
62107
"adminPassword": "[basics('authType').password]",
63108
"adminSSHPublicKey": "[basics('authType').sshPublicKey]",
64109
"adminUserName": "[basics('userName')]",
65110
"authenticationType": "[basics('authType').authenticationType]",
66111
"vmName": "[basics('vmName')]",
67-
"vmSize": "Standard_D1_V2",
112+
"vmSize": "[steps('firstStep').vmSize]",
113+
"storageAccountType": "[steps('firstStep').vmDiskType]",
68114
"location": "[location()]"
69115
}
70116
}

solution_template/vm-linux-terraform/mainTemplate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
},
6464
"type": "string",
6565
"defaultValue": "Standard_DS1_v2"
66+
},
67+
"storageAccountType": {
68+
"defaultValue": "Standard_LRS",
69+
"metadata": {
70+
"description": "Storage Account Type"
71+
},
72+
"type": "string"
6673
}
6774
},
6875
"variables": {
@@ -241,6 +248,12 @@
241248
"offer": "UbuntuServer",
242249
"sku": "16.04-LTS",
243250
"version": "latest"
251+
},
252+
"osDisk": {
253+
"createOption": "FromImage",
254+
"managedDisk": {
255+
"storageAccountType": "[parameters('storageAccountType')]"
256+
}
244257
}
245258
},
246259
"networkProfile": {

0 commit comments

Comments
 (0)