Migrate API version to 2015-05-01-preview
This commit is contained in:
Родитель
c209d56b17
Коммит
73f1bc9a6b
|
@ -99,8 +99,12 @@
|
|||
}
|
||||
},
|
||||
"variables": {
|
||||
"vmSourceImageName": "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_2_LTS-amd64-server-20150309-en-us-30GB",
|
||||
"sourceImageName": "[concat('/',subscription().subscriptionId,'/services/images/',variables('vmSourceImageName'))]",
|
||||
"imageReference": {
|
||||
"publisher": "Canonical",
|
||||
"offer": "UbuntuServer",
|
||||
"sku": "14.04.2-LTS",
|
||||
"version": "latest"
|
||||
},
|
||||
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',parameters('virtualNetworkName'))]",
|
||||
"subnetDmzRef": "[concat(variables('vnetID'),'/subnets/',parameters('subnetDmzName'))]",
|
||||
"subnetMemcachedRef": "[concat(variables('vnetID'),'/subnets/',parameters('subnetMemcachedName'))]",
|
||||
|
@ -110,16 +114,16 @@
|
|||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[parameters('newStorageAccountName')]",
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"accountType": "Standard_LRS"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[parameters('virtualNetworkName')]",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -146,7 +150,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "publicip",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -158,7 +162,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "nicapache",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -183,7 +187,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "[concat('nicmemcached', copyindex())]",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -209,7 +213,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('domainName')]",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -227,10 +231,15 @@
|
|||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"sourceImage": {
|
||||
"id": "[variables('sourceImageName')]"
|
||||
},
|
||||
"destinationVhdsContainer": "[concat('http://',parameters('newStorageAccountName'),'.blob.core.windows.net/vhds/')]"
|
||||
"imageReference": "[variables('imageReference')]",
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat('http://', parameters('newStorageAccountName'), '.blob.core.windows.net/vhds/', variables('domainName'), '-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
}
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
|
@ -242,7 +251,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[concat(variables('memcachedMachineNamePrefix'), copyindex())]",
|
||||
"location": "[parameters('location')]",
|
||||
|
@ -264,10 +273,15 @@
|
|||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"sourceImage": {
|
||||
"id": "[variables('sourceImageName')]"
|
||||
},
|
||||
"destinationVhdsContainer": "[concat('http://',parameters('newStorageAccountName'),'.blob.core.windows.net/vhds/')]"
|
||||
"imageReference": "[variables('imageReference')]",
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat('http://', parameters('newStorageAccountName'), '.blob.core.windows.net/vhds/', variables('memcachedMachineNamePrefix'), copyindex(), '-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
}
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
|
@ -279,9 +293,9 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(variables('memcachedMachineNamePrefix'), copyindex(), '/install_memcached')]",
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"location": "[parameters('location')]",
|
||||
"copy": {
|
||||
"name": "extensionLoop",
|
||||
|
@ -304,9 +318,9 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('domainName'), '/install_apache')]",
|
||||
"apiVersion": "2014-12-01-preview",
|
||||
"location": "[parameters('location')]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/', parameters('domainName'))]"
|
||||
|
@ -325,9 +339,5 @@
|
|||
}
|
||||
],
|
||||
"outputs": {
|
||||
"exampleOutput1": {
|
||||
"value": "[variables('sourceImageName')]",
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
"description": "This template creates one or more memcached services on Ubuntu 14.04 VMs in a private subnet. It also creates one publicly accessible Apache VM with a PHP test page to confirm that memcached is installed and accessible.",
|
||||
"summary": "Multiple memcached servers in a private subnet and a publicly accessible Apache test page.",
|
||||
"githubUsername": "arsenvlad",
|
||||
"dateUpdated": "2015-04-06"
|
||||
"dateUpdated": "2015-04-25"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче