From 3c649530027337c5f9b641dcb4340b6482cdeef3 Mon Sep 17 00:00:00 2001 From: Yannick Reekmans Date: Thu, 10 Sep 2020 22:10:39 +0200 Subject: [PATCH] Automatically use resource group location for all resources --- azuredeploy.json | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/azuredeploy.json b/azuredeploy.json index c1668fe1cd..12049c6683 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -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": [ @@ -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')]" @@ -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'))]" @@ -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": [