Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions 101-availabilityset-multiplevm-create/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,22 @@
2,
3,
4,
5
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
],
"metadata": {
"description": "Number of VMs to deploy, limit 5 since this sample is using a single storage account"
Expand Down Expand Up @@ -54,18 +69,29 @@
"type": "string",
"defaultValue": "2016-Datacenter",
"allowedValues": [
"2012-R2-Datacenter",
"2016-Datacenter-Server-Core",
"2016-Datacenter"
],
"metadata": {
"description": "The Windows version for the VM. This will pick a fully patched image of this given Windows version. Allowed values: 2008-R2-SP1, 2012-Datacenter, 2012-R2-Datacenter."
"description": "The Windows version for the VM. This will pick a fully patched image of this given Windows version. Allowed values: 2016-Datacenter, 2016-Datacenter-Server-Corer."
}
},
"vmSize": {
"type": "string",
"allowedValues": [
"Standard_A1",
"Standard_A3",
"Standard_A7"
],
"metadata": {
"description": "The size of the AD VMs Created"
},
"defaultValue": "Standard_A1"
}
},
"variables": {
"availabilitySetName": "[toLower(concat('aSet-', resourceGroup().name))]",
"storageAccountType": "Standard_LRS",
"VMSize": "Standard_A1",
"dnsPrefix": "[tolower(concat('vmdns', resourceGroup().name))]",
"windowsImageVersion": "latest",
"dataDiskSize": 2,
Expand Down Expand Up @@ -286,7 +312,7 @@
"id": "[resourceId('Microsoft.Compute/availabilitySets',variables('availabilitySetName'))]"
},
"hardwareProfile": {
"vmSize": "[variables('vmSize')]"
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[concat(parameters('vmNamePrefix'), copyIndex())]",
Expand Down Expand Up @@ -348,4 +374,4 @@
}
],
"outputs": { }
}
}