Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Automatically use resource group location for all resources
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickRe committed Sep 10, 2020
1 parent 2223b98 commit 3c64953
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"hostingPlanName": {
"type": "string"
},
"siteLocation": {
"type": "string",
"allowedValues": [
"southcentralus","msftwestus","msfteastus","msfteastasia","msftnortheurope","eastus2stage","centralusstage","southafricanorth","westus","australiaeast","brazilsouth","southeastasia","centralus","japanwest","centralindia","uksouth","canadaeast","koreacentral","francecentral","northeurope","westus2","eastus","westindia","eastus2","australiacentral","germanywestcentral","norwayeast","switzerlandnorth","northcentralus","ukwest","australiasoutheast","koreasouth","canadacentral","southindia","westcentralus","eastasiastage","northcentralusstage","eastasia","japaneast","westeurope"
],
"defaultValue": "westeurope"
},
"sku": {
"type": "string",
"allowedValues": [
Expand Down Expand Up @@ -77,7 +70,7 @@
{
"name": "[parameters('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[parameters('siteLocation')]",
"location": "[resourceGroup().location]",
"apiVersion": "2018-02-01",
"sku": {
"name": "[variables('sku')]"
Expand All @@ -91,7 +84,7 @@
{
"name": "[parameters('siteName')]",
"type": "Microsoft.Web/sites",
"location": "[parameters('siteLocation')]",
"location": "[resourceGroup().location]",
"apiVersion": "2018-11-01",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
Expand Down Expand Up @@ -158,7 +151,7 @@
{
"name": "[variables('appInsightsName')]",
"type": "Microsoft.Insights/components",
"location": "[parameters('siteLocation')]",
"location": "[resourceGroup().location]",
"apiVersion": "2014-04-01",
"condition": "[parameters('Deploy App Insights')]",
"dependsOn": [
Expand Down

0 comments on commit 3c64953

Please sign in to comment.