From bd5dddc07589d35434537a153b0ed2bac483ebe3 Mon Sep 17 00:00:00 2001
From: phahulin
Date: Thu, 16 Nov 2017 16:52:18 +0300
Subject: [PATCH] Add vmSize option
---
TestTestNet/netstats-server/template.json | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/TestTestNet/netstats-server/template.json b/TestTestNet/netstats-server/template.json
index 4134cab..3fc1f95 100644
--- a/TestTestNet/netstats-server/template.json
+++ b/TestTestNet/netstats-server/template.json
@@ -20,6 +20,22 @@
"description": "Username for the Virtual Machine"
}
},
+ "vmSize": {
+ "type": "string",
+ "metadata": {
+ "description": "VM Resources"
+ },
+ "defaultValue": "Standard_A4m_v2",
+ "allowedValues": [
+ "Standard_A1_v2",
+ "Standard_A2_v2",
+ "Standard_A4_v2",
+ "Standard_A8_v2",
+ "Standard_A2m_v2",
+ "Standard_A4m_v2",
+ "Standard_A8m_v2"
+ ]
+ },
"sshPublicKey": {
"type": "string",
"metadata": {
@@ -45,7 +61,7 @@
"publicIPAddressName": "myPublicIP",
"publicIPAddressType": "Static",
"vmName": "MyUbuntuVM",
- "vmSize": "Standard_A1",
+ "vmSize": "[parameters('vmSize')]",
"virtualNetworkName": "MyVNET",
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",