diff --git a/eris-platform/azuredeploy.json b/eris-platform/azuredeploy.json index cc5653f292ab..fcb886671e90 100644 --- a/eris-platform/azuredeploy.json +++ b/eris-platform/azuredeploy.json @@ -31,16 +31,6 @@ "vmSize": { "type": "string", "defaultValue": "Standard_A1", - "allowedValues": [ - "Standard_A1", - "Standard_A2", - "Standard_A3", - "Standard_A4", - "Standard_D1", - "Standard_D2", - "Standard_D3", - "Standard_D4" - ], "metadata": { "description": "Size of VM" } @@ -68,6 +58,20 @@ "metadata": { "description": "SSH Key or password for the Virtual Machine. SSH key is recommended." } + }, + "_artifactsLocation": { + "defaultValue": "[deployment().properties.templateLink.uri]", + "type": "string", + "metadata": { + "description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated." + } + }, + "_artifactsLocationSasToken": { + "defaultValue": "", + "type": "securestring", + "metadata": { + "description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated." + } } }, "variables": { @@ -82,7 +86,6 @@ "storageAccountType": "Standard_LRS", "publicIPAddressName": "[parameters('dnsLabelPrefix')]", "publicIPAddressType": "Dynamic", - "vmStorageAccountContainerName": "vhds", "vmName": "[parameters('dnsLabelPrefix')]", "virtualNetworkName": "WPVNET", "subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetName'))]", @@ -179,8 +182,8 @@ "name": "[variables('nicName')]", "location": "[parameters('location')]", "dependsOn": [ - "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", - "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" + "[resourceId('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", + "[resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" ], "properties": { "ipConfigurations": [ @@ -205,8 +208,8 @@ "name": "[variables('vmName')]", "location": "[parameters('location')]", "dependsOn": [ - "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", - "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" + "[resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", + "[resourceId('Microsoft.Network/networkInterfaces/', variables('nicName'))]" ], "properties": { "hardwareProfile": { @@ -240,29 +243,13 @@ } } }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(variables('vmName'),'/docker-for-eris')]", - "apiVersion": "2015-06-15", - "location": "[parameters('location')]", - "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" - ], - "properties": { - "publisher": "Microsoft.Azure.Extensions", - "type": "DockerExtension", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "settings": {} - } - }, { "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[concat(variables('vmName'),'/newuserscript')]", "apiVersion": "2015-06-15", "location": "[parameters('location')]", "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'), '/extensions/docker-for-eris')]" + "[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]" ], "properties": { "publisher": "Microsoft.Azure.Extensions", @@ -271,7 +258,7 @@ "autoUpgradeMinorVersion": true, "settings": { "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/eris-platform/setup.sh" + "[uri(parameters('_artifactsLocation'), concat('setup.sh', parameters('_artifactsLocationSasToken')))]" ], "commandToExecute": "[concat('bash setup.sh ', parameters('adminUsername'), ' ', parameters('servicesToStart'), ' ', parameters('chainsToStart'))]" }