Skip to content

Commit

Permalink
Location fix
Browse files Browse the repository at this point in the history
Changed resource location from parameter to resourceGroup().location.
Deleted location parameter from deployment template and parameter file.
  • Loading branch information
marcvaneijk committed Apr 15, 2016
1 parent 422ecf4 commit 1d13fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
23 changes: 2 additions & 21 deletions 101-application-gateway-create/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"allowedValues": [
"East US",
"West US",
"Central US",
"South Central US",
"East US 2",
"North Europe",
"West Europe",
"Southeast Asia",
"East Asia",
"Japan West",
"Japan East"
],
"metadata": {
"description": "Azure region where application gateway will be deployed"
}
},
"virtualNetworkName": {
"type": "string",
"metadata": {
Expand Down Expand Up @@ -136,7 +117,7 @@
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworkName')]",
"location": "[parameters('location')]",
"location": "[resourceGroup().location]",
"properties": {
"addressSpace": {
"addressPrefixes": [
Expand All @@ -157,7 +138,7 @@
"apiVersion": "[variables('apiVersion')]",
"name": "[parameters('applicationGatewayName')]",
"type": "Microsoft.Network/applicationGateways",
"location": "[parameters('location')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Network/virtualNetworks/', parameters('virtualNetworkName'))]"
],
Expand Down
3 changes: 0 additions & 3 deletions 101-application-gateway-create/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"value": "Central US"
},
"virtualNetworkName": {
"value": "yourvnetname"
},
Expand Down

0 comments on commit 1d13fa6

Please sign in to comment.