зеркало из
1
0
Форкнуть 0

Member OS disk VHD name must be unique

This commit is contained in:
Val M 2015-04-25 12:35:57 -07:00
Родитель 097b986882
Коммит 9587f7cd00
8 изменённых файлов: 454 добавлений и 454 удалений

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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]"
}
}
}
]
}

Просмотреть файл

@ -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]"
}
}
}
]
}
"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]"
}
}
}
]
}