From 9475437c8600aabc4befb29bc609232dafcc8722 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Mon, 20 Apr 2020 16:11:40 +0800 Subject: [PATCH] add support for location of app service environment --- .../services/web/app_service_environment_data_source.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azurerm/internal/services/web/app_service_environment_data_source.go b/azurerm/internal/services/web/app_service_environment_data_source.go index f36671668a7f..02fbde0e797b 100644 --- a/azurerm/internal/services/web/app_service_environment_data_source.go +++ b/azurerm/internal/services/web/app_service_environment_data_source.go @@ -7,6 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/location" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tags" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" @@ -28,6 +29,8 @@ func dataSourceArmAppServiceEnvironment() *schema.Resource { "resource_group_name": azure.SchemaResourceGroupNameForDataSource(), + "location": azure.SchemaLocationForDataSource(), + "front_end_scale_factor": { Type: schema.TypeInt, Computed: true, @@ -63,6 +66,7 @@ func dataSourceArmAppServiceEnvironmentRead(d *schema.ResourceData, meta interfa d.Set("name", name) d.Set("resource_group_name", resourceGroup) + d.Set("location", location.NormalizeNilable(resp.Location)) if props := resp.AppServiceEnvironment; props != nil { frontendScaleFactor := 0