Last active
April 30, 2016 16:20
-
-
Save vicperdana/d29370bb26fe1f1a868776bbb3eb4e55 to your computer and use it in GitHub Desktop.
azuredeploy-base.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
}, | |
"variables": { | |
"storageAccountName": "vicplinkeddemostor", | |
"location": "[resourceGroup().location]", | |
"addressPrefix": "10.0.0.0/16", | |
"subnet1Name": "FrontEnd-Subnet", | |
"subnet2Name": "BackEnd-Subnet", | |
"subnet1Prefix": "10.0.0.0/24", | |
"subnet2Prefix": "10.0.1.0/24", | |
"storageAccountType": "Standard_LRS", | |
"virtualNetworkName": "VicPVNET", | |
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", | |
"subnet1Ref": "[concat(variables('vnetID'),'/subnets/',variables('subnet1Name'))]", | |
"subnet2Ref": "[concat(variables('vnetID'),'/subnets/',variables('subnet2Name'))]", | |
"apiVersion": "2015-06-15", | |
"sharedBaseUrl" : "https://raw.githubusercontent.com/vicperdana/azure-quickstart-templates/master/windows-iis-sql-linked-multivm/nested/", | |
"secondTemplate" : { | |
"templateUrl" : "[concat(variables('sharedBaseUrl'),'azuredeploy-web.json')]", | |
"paramUrl" : "[concat(variables('sharedBaseUrl'),'azuredeploy-web.parameters.json')]" | |
}, | |
"thirdTemplate" : { | |
"templateUrl" : "[concat(variables('sharedBaseUrl'),'azuredeploy-db.json')]", | |
"paramUrl" : "[concat(variables('sharedBaseUrl'),'azuredeploy-db.parameters.json')]" | |
} | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Storage/storageAccounts", | |
"name": "[variables('storageAccountName')]", | |
"apiVersion": "[variables('apiVersion')]", | |
"location": "[variables('location')]", | |
"properties": { | |
"accountType": "[variables('storageAccountType')]" | |
} | |
}, | |
{ | |
"apiVersion": "[variables('apiVersion')]", | |
"type": "Microsoft.Network/virtualNetworks", | |
"name": "[variables('virtualNetworkName')]", | |
"location": "[variables('location')]", | |
"properties": { | |
"addressSpace": { | |
"addressPrefixes": [ | |
"[variables('addressPrefix')]" | |
] | |
}, | |
"subnets": [ | |
{ | |
"name": "[variables('subnet1Name')]", | |
"properties": { | |
"addressPrefix": "[variables('subnet1Prefix')]" | |
} | |
}, | |
{ | |
"name": "[variables('subnet2Name')]", | |
"properties": { | |
"addressPrefix": "[variables('subnet2Prefix')]" | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"apiVersion": "2015-01-01", | |
"name": "webserversLinked", | |
"type": "Microsoft.Resources/deployments", | |
"dependsOn": [ | |
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", | |
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" | |
], | |
"properties": { | |
"mode": "Incremental", | |
"templateLink": { | |
"uri": "[variables('secondTemplate').templateUrl]", | |
"contentVersion": "1.0.0.0" | |
}, | |
"parametersLink": { | |
"uri": "[variables('secondTemplate').paramUrl]", | |
"contentVersion": "1.0.0.0" | |
} | |
} | |
}, | |
{ | |
"apiVersion": "2015-01-01", | |
"name": "dbserverLinked", | |
"type": "Microsoft.Resources/deployments", | |
"dependsOn": [ | |
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", | |
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" | |
], | |
"properties": { | |
"mode": "Incremental", | |
"templateLink": { | |
"uri": "[variables('thirdTemplate').templateUrl]", | |
"contentVersion": "1.0.0.0" | |
}, | |
"parametersLink": { | |
"uri": "[variables('thirdTemplate').paramUrl]", | |
"contentVersion": "1.0.0.0" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment