Skip to content

Commit

Permalink
Merge pull request #9848 from terraform-providers/f/timeseriesinsight…
Browse files Browse the repository at this point in the history
…s-env-dataaccess

r/iot_time_series_insights_gen2_environment: exposing `data_access_fqdn`
  • Loading branch information
tombuildsstuff authored Dec 14, 2020
2 parents 6447e0b + e62e956 commit 73b73d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
azValidate "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"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/services/iottimeseriesinsights/parse"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tags"
azSchema "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/schema"
Expand Down Expand Up @@ -96,6 +97,11 @@ func resourceIoTTimeSeriesInsightsGen2Environment() *schema.Resource {
},
},

"data_access_fqdn": {
Type: schema.TypeString,
Computed: true,
},

"tags": tags.Schema(),
},
}
Expand Down Expand Up @@ -207,9 +213,8 @@ func resourceIoTTimeSeriesInsightsGen2EnvironmentRead(d *schema.ResourceData, me
d.Set("name", environment.Name)
d.Set("resource_group_name", id.ResourceGroup)
d.Set("sku_name", environment.Sku.Name)
if location := environment.Location; location != nil {
d.Set("location", azure.NormalizeLocation(*location))
}
d.Set("location", location.NormalizeNilable(environment.Location))
d.Set("data_access_fqdn", environment.DataAccessFqdn)
if err := d.Set("id_properties", flattenIdProperties(environment.TimeSeriesIDProperties)); err != nil {
return fmt.Errorf("setting `id_properties`: %+v", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ A `storage` block supports the following:

* `id` - The ID of the IoT Time Series Insights Gen2 Environment.

* `data_access_fqdn` - The FQDN used to access the environment data.

## Timeouts

The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions:
Expand Down

0 comments on commit 73b73d5

Please sign in to comment.