Skip to content

Commit

Permalink
app_service_environment - support for location property (#6538)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Ye committed Apr 21, 2020
1 parent ffcfcfb commit e169230
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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"
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e169230

Please sign in to comment.