1
0
mirror of synced 2024-11-22 13:06:02 +03:00

Merge pull request #66 from derdanu/master

new Api Version, dynamic Storage Uri to support multi cloud environments
This commit is contained in:
Lin Song 2016-09-28 13:35:49 -05:00 committed by GitHub
commit 37b5726ffd

View File

@ -120,14 +120,16 @@
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]",
"apiVersion": "[variables('apiVersion')]",
"apiVersion": "2016-01-01",
"location": "[variables('location')]",
"tags": {
"displayName": "StorageAccount"
},
"properties": {
"accountType": "[variables('vhdStorageType')]"
}
"properties": {},
"sku": {
"name": "[variables('vhdStorageType')]"
},
"kind": "Storage"
},
{
"apiVersion": "[variables('apiVersion')]",
@ -187,9 +189,9 @@
}
},
{
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('vmName')]",
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "VirtualMachine"
@ -211,7 +213,7 @@
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://', variables('storageName'), '.blob.core.windows.net/vmachines/', variables('vmName'), '.vhd')]"
"uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('storageName'))).primaryEndpoints.blob, 'vmachines/', variables('vmName'), '.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"