Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_frontdoor - Expose the header_frontdoor_id attribute #6916

Merged
merged 2 commits into from May 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions azurerm/internal/services/frontdoor/frontdoor_resource.go
Expand Up @@ -51,6 +51,11 @@ func resourceArmFrontDoor() *schema.Resource {
Computed: true,
},

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

"friendly_name": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -705,6 +710,7 @@ func resourceArmFrontDoorRead(d *schema.ResourceData, meta interface{}) error {
}

d.Set("cname", properties.Cname)
d.Set("header_frontdoor_id", properties.FrontdoorID)
d.Set("load_balancer_enabled", properties.EnabledState == frontdoor.EnabledStateEnabled)
d.Set("friendly_name", properties.FriendlyName)

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/frontdoor.html.markdown
Expand Up @@ -294,12 +294,12 @@ The following attributes are exported:

* `cname` - The host that each frontendEndpoint must CNAME to.

* `header_frontdoor_id` - The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend.

* `id` - The ID of the FrontDoor.

## Timeouts



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

* `create` - (Defaults to 6 hours) Used when creating the FrontDoor.
Expand Down