From 9587f7cd001475c05a0d63420f9a96cf952190e6 Mon Sep 17 00:00:00 2001 From: Val M Date: Sat, 25 Apr 2015 12:35:57 -0700 Subject: [PATCH] Member OS disk VHD name must be unique --- .../member-resources-D1.json | 2 +- .../member-resources-D11.json | 2 +- .../member-resources-D12.json | 2 +- .../member-resources-D13.json | 2 +- .../member-resources-D14.json | 2 +- .../member-resources-D2.json | 2 +- .../member-resources-D3.json | 370 ++++++------ .../member-resources-D4.json | 526 +++++++++--------- 8 files changed, 454 insertions(+), 454 deletions(-) diff --git a/mongodb-high-availability/member-resources-D1.json b/mongodb-high-availability/member-resources-D1.json index 6c6aa99..e73a5c7 100644 --- a/mongodb-high-availability/member-resources-D1.json +++ b/mongodb-high-availability/member-resources-D1.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D11.json b/mongodb-high-availability/member-resources-D11.json index c9c670c..58d25d2 100644 --- a/mongodb-high-availability/member-resources-D11.json +++ b/mongodb-high-availability/member-resources-D11.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D12.json b/mongodb-high-availability/member-resources-D12.json index 7ea4d7e..6b06904 100644 --- a/mongodb-high-availability/member-resources-D12.json +++ b/mongodb-high-availability/member-resources-D12.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D13.json b/mongodb-high-availability/member-resources-D13.json index 595be63..fc2b2d2 100644 --- a/mongodb-high-availability/member-resources-D13.json +++ b/mongodb-high-availability/member-resources-D13.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D14.json b/mongodb-high-availability/member-resources-D14.json index 93795f9..d9ef3d0 100644 --- a/mongodb-high-availability/member-resources-D14.json +++ b/mongodb-high-availability/member-resources-D14.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D2.json b/mongodb-high-availability/member-resources-D2.json index c9c670c..58d25d2 100644 --- a/mongodb-high-availability/member-resources-D2.json +++ b/mongodb-high-availability/member-resources-D2.json @@ -75,7 +75,7 @@ "osDisk": { "name": "osdisk", "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" diff --git a/mongodb-high-availability/member-resources-D3.json b/mongodb-high-availability/member-resources-D3.json index 776a8bd..84b844d 100644 --- a/mongodb-high-availability/member-resources-D3.json +++ b/mongodb-high-availability/member-resources-D3.json @@ -1,194 +1,194 @@ -{ - "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "commonSettings": { - "type": "object", - "metadata": { - "Description": "Common settings object" - } - }, - "storageSettings": { - "type": "object", - "metadata": { - "Description": "Storage settings object" - } - }, - "networkSettings": { - "type": "object", - "metadata": { - "Description": "Network settings object" - } - }, - "machineSettings": { - "type": "object", - "metadata": { - "Description": "Machine settings object" - } - } - }, - "variables": { - }, - "resources": [ - { - "type": "Microsoft.Network/networkInterfaces", - "name": "[concat('nicMember', parameters('machineSettings').machineIndex)]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "privateIPAllocationMethod": "Static", - "privateIPAddress": "[concat(parameters('networkSettings').machineIpPrefix, parameters('machineSettings').machineIndex)]", - "subnet": { - "id": "[parameters('networkSettings').subnetRef]" - } - } - } - ] - } - }, - { - "type": "Microsoft.Compute/virtualMachines", - "name": "[concat('vmMember', parameters('machineSettings').machineIndex)]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "dependsOn": [ - "[concat('Microsoft.Network/networkInterfaces/', 'nicMember', parameters('machineSettings').machineIndex)]" - ], - "properties": { - "availabilitySet": { - "id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('commonSettings').availabilitySetName)]" - }, - "hardwareProfile": { - "vmSize": "[parameters('machineSettings').vmSize]" - }, - "osProfile": { - "computername": "[concat(parameters('machineSettings').machineNamePrefix, 'member', parameters('machineSettings').machineIndex)]", - "adminUsername": "[parameters('machineSettings').adminUsername]", - "adminPassword": "[parameters('machineSettings').adminPassword]" - }, - "storageProfile": { - "imageReference": "[parameters('machineSettings').osImageReference]", - "osDisk": { - "name": "osdisk", - "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "FromImage" - }, - "dataDisks": [ - { - "name": "dataDisk0", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 0, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk0.vhd')]" - }, +{ + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "commonSettings": { + "type": "object", + "metadata": { + "Description": "Common settings object" + } + }, + "storageSettings": { + "type": "object", + "metadata": { + "Description": "Storage settings object" + } + }, + "networkSettings": { + "type": "object", + "metadata": { + "Description": "Network settings object" + } + }, + "machineSettings": { + "type": "object", + "metadata": { + "Description": "Machine settings object" + } + } + }, + "variables": { + }, + "resources": [ + { + "type": "Microsoft.Network/networkInterfaces", + "name": "[concat('nicMember', parameters('machineSettings').machineIndex)]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Static", + "privateIPAddress": "[concat(parameters('networkSettings').machineIpPrefix, parameters('machineSettings').machineIndex)]", + "subnet": { + "id": "[parameters('networkSettings').subnetRef]" + } + } + } + ] + } + }, + { + "type": "Microsoft.Compute/virtualMachines", + "name": "[concat('vmMember', parameters('machineSettings').machineIndex)]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "dependsOn": [ + "[concat('Microsoft.Network/networkInterfaces/', 'nicMember', parameters('machineSettings').machineIndex)]" + ], + "properties": { + "availabilitySet": { + "id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('commonSettings').availabilitySetName)]" + }, + "hardwareProfile": { + "vmSize": "[parameters('machineSettings').vmSize]" + }, + "osProfile": { + "computername": "[concat(parameters('machineSettings').machineNamePrefix, 'member', parameters('machineSettings').machineIndex)]", + "adminUsername": "[parameters('machineSettings').adminUsername]", + "adminPassword": "[parameters('machineSettings').adminPassword]" + }, + "storageProfile": { + "imageReference": "[parameters('machineSettings').osImageReference]", + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + }, + "dataDisks": [ + { + "name": "dataDisk0", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 0, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk0.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk1", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 1, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk1.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk1", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 1, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk1.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk2", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 2, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk2.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk2", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 2, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk2.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk3", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 3, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk3.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk3", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 3, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk3.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk4", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 4, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk4.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk4", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 4, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk4.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk5", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 5, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk5.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk5", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 5, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk5.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk6", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 6, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk6.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk6", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 6, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk6.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk7", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 7, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk7.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk7", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 7, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk7.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - } - ] - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.Network/networkInterfaces',concat('nicMember', parameters('machineSettings').machineIndex))]" - } - ] - } - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat('vmMember', parameters('machineSettings').machineIndex, '/installmongodb')]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', 'vmMember', parameters('machineSettings').machineIndex)]" - ], - "properties": { - "publisher": "Microsoft.OSTCExtensions", - "type": "CustomScriptForLinux", - "typeHandlerVersion": "1.2", - "settings": { - "fileUris": "[parameters('machineSettings').vmScripts]", - "commandToExecute": "[parameters('machineSettings').commandToExecute]" - } - } - } - ] + "createOption": "Empty" + } + ] + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',concat('nicMember', parameters('machineSettings').machineIndex))]" + } + ] + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat('vmMember', parameters('machineSettings').machineIndex, '/installmongodb')]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', 'vmMember', parameters('machineSettings').machineIndex)]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.2", + "settings": { + "fileUris": "[parameters('machineSettings').vmScripts]", + "commandToExecute": "[parameters('machineSettings').commandToExecute]" + } + } + } + ] } \ No newline at end of file diff --git a/mongodb-high-availability/member-resources-D4.json b/mongodb-high-availability/member-resources-D4.json index 6f0fee5..ea6eb50 100644 --- a/mongodb-high-availability/member-resources-D4.json +++ b/mongodb-high-availability/member-resources-D4.json @@ -1,274 +1,274 @@ -{ - "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "commonSettings": { - "type": "object", - "metadata": { - "Description": "Common settings object" - } - }, - "storageSettings": { - "type": "object", - "metadata": { - "Description": "Storage settings object" - } - }, - "networkSettings": { - "type": "object", - "metadata": { - "Description": "Network settings object" - } - }, - "machineSettings": { - "type": "object", - "metadata": { - "Description": "Machine settings object" - } - } - }, - "variables": { - }, - "resources": [ - { - "type": "Microsoft.Network/networkInterfaces", - "name": "[concat('nicMember', parameters('machineSettings').machineIndex)]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "privateIPAllocationMethod": "Static", - "privateIPAddress": "[concat(parameters('networkSettings').machineIpPrefix, parameters('machineSettings').machineIndex)]", - "subnet": { - "id": "[parameters('networkSettings').subnetRef]" - } - } - } - ] - } - }, - { - "type": "Microsoft.Compute/virtualMachines", - "name": "[concat('vmMember', parameters('machineSettings').machineIndex)]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "dependsOn": [ - "[concat('Microsoft.Network/networkInterfaces/', 'nicMember', parameters('machineSettings').machineIndex)]" - ], - "properties": { - "availabilitySet": { - "id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('commonSettings').availabilitySetName)]" - }, - "hardwareProfile": { - "vmSize": "[parameters('machineSettings').vmSize]" - }, - "osProfile": { - "computername": "[concat(parameters('machineSettings').machineNamePrefix, 'member', parameters('machineSettings').machineIndex)]", - "adminUsername": "[parameters('machineSettings').adminUsername]", - "adminPassword": "[parameters('machineSettings').adminPassword]" - }, - "storageProfile": { - "imageReference": "[parameters('machineSettings').osImageReference]", - "osDisk": { - "name": "osdisk", - "vhd": { - "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'member-os-disk.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "FromImage" - }, - "dataDisks": [ - { - "name": "dataDisk0", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 0, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk0.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk1", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 1, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk1.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk2", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 2, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk2.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk3", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 3, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk3.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk4", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 4, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk4.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk5", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 5, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk5.vhd')]" - }, +{ + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "commonSettings": { + "type": "object", + "metadata": { + "Description": "Common settings object" + } + }, + "storageSettings": { + "type": "object", + "metadata": { + "Description": "Storage settings object" + } + }, + "networkSettings": { + "type": "object", + "metadata": { + "Description": "Network settings object" + } + }, + "machineSettings": { + "type": "object", + "metadata": { + "Description": "Machine settings object" + } + } + }, + "variables": { + }, + "resources": [ + { + "type": "Microsoft.Network/networkInterfaces", + "name": "[concat('nicMember', parameters('machineSettings').machineIndex)]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Static", + "privateIPAddress": "[concat(parameters('networkSettings').machineIpPrefix, parameters('machineSettings').machineIndex)]", + "subnet": { + "id": "[parameters('networkSettings').subnetRef]" + } + } + } + ] + } + }, + { + "type": "Microsoft.Compute/virtualMachines", + "name": "[concat('vmMember', parameters('machineSettings').machineIndex)]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "dependsOn": [ + "[concat('Microsoft.Network/networkInterfaces/', 'nicMember', parameters('machineSettings').machineIndex)]" + ], + "properties": { + "availabilitySet": { + "id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('commonSettings').availabilitySetName)]" + }, + "hardwareProfile": { + "vmSize": "[parameters('machineSettings').vmSize]" + }, + "osProfile": { + "computername": "[concat(parameters('machineSettings').machineNamePrefix, 'member', parameters('machineSettings').machineIndex)]", + "adminUsername": "[parameters('machineSettings').adminUsername]", + "adminPassword": "[parameters('machineSettings').adminPassword]" + }, + "storageProfile": { + "imageReference": "[parameters('machineSettings').osImageReference]", + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'OsDisk.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + }, + "dataDisks": [ + { + "name": "dataDisk0", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 0, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk0.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk6", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 6, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk6.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk1", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 1, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk1.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk7", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 7, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk7.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk2", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 2, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk2.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk8", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 8, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk8.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk3", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 3, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk3.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk9", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 9, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk9.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk4", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 4, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk4.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk10", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 10, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk10.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk5", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 5, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk5.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk11", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 11, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk11.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk6", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 6, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk6.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk12", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 12, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk12.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk7", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 7, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk7.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk13", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 13, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk13.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk8", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 8, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk8.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk14", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 14, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk14.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk9", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 9, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk9.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - }, - { - "name": "dataDisk15", - "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", - "lun": 15, - "vhd": { - "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk15.vhd')]" - }, + "createOption": "Empty" + }, + { + "name": "dataDisk10", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 10, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk10.vhd')]" + }, "caching": "ReadWrite", - "createOption": "Empty" - } - ] - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.Network/networkInterfaces',concat('nicMember', parameters('machineSettings').machineIndex))]" - } - ] - } - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat('vmMember', parameters('machineSettings').machineIndex, '/installmongodb')]", - "apiVersion": "2015-05-01-preview", - "location": "[parameters('commonSettings').region]", - "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', 'vmMember', parameters('machineSettings').machineIndex)]" - ], - "properties": { - "publisher": "Microsoft.OSTCExtensions", - "type": "CustomScriptForLinux", - "typeHandlerVersion": "1.2", - "settings": { - "fileUris": "[parameters('machineSettings').vmScripts]", - "commandToExecute": "[parameters('machineSettings').commandToExecute]" - } - } - } - ] -} \ No newline at end of file + "createOption": "Empty" + }, + { + "name": "dataDisk11", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 11, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk11.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "Empty" + }, + { + "name": "dataDisk12", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 12, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk12.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "Empty" + }, + { + "name": "dataDisk13", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 13, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk13.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "Empty" + }, + { + "name": "dataDisk14", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 14, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk14.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "Empty" + }, + { + "name": "dataDisk15", + "diskSizeGB": "[parameters('machineSettings').dataDiskSize]", + "lun": 15, + "vhd": { + "Uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'vm', parameters('machineSettings').machineIndex, 'dataDisk15.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "Empty" + } + ] + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',concat('nicMember', parameters('machineSettings').machineIndex))]" + } + ] + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat('vmMember', parameters('machineSettings').machineIndex, '/installmongodb')]", + "apiVersion": "2015-05-01-preview", + "location": "[parameters('commonSettings').region]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', 'vmMember', parameters('machineSettings').machineIndex)]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.2", + "settings": { + "fileUris": "[parameters('machineSettings').vmScripts]", + "commandToExecute": "[parameters('machineSettings').commandToExecute]" + } + } + } + ] +}