hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.53k stars 4.6k forks source link

rewrite_rule_set not applied to azurerm_application_gateway #17413

Open klemen-df opened 2 years ago

klemen-df commented 2 years ago

Is there an existing issue for this?

Community Note

Terraform Version

1.0.11

AzureRM Provider Version

2.92.0

Affected Resource(s)/Data Source(s)

azurerm_application_gateway

Terraform Configuration Files

resource "azurerm_application_gateway" "appgw" {
...
  request_routing_rule {
    rewrite_rule_set_name      = "Security"
    name                       = local.request_routing_rule_name
    rule_type                  = "Basic"
    http_listener_name         = local.listener_name
    backend_address_pool_name  = local.backend_address_pool_name
    backend_http_settings_name = local.http_setting_name
  }
...
  rewrite_rule_set {
    name = "Security"
    rewrite_rule {
      name          = "Strict-Transport-Security"
      rule_sequence = 1

      response_header_configuration {
        header_name  = "Strict-Transport-Security"
        header_value = "max-age=31536000"
      }
    }
  }

Debug Output/Panic Output

No changes. Your infrastructure matches the configuration.

Expected Behaviour

rewrite_rule_set should be applied to request_routing_rule

Actual Behaviour

rewrite_rule_set should is not applied to request_routing_rule

Steps to Reproduce

Important Factoids

No response

References

https://github.com/hashicorp/terraform-provider-azurerm/issues/8397

klemen-df commented 2 years ago

Hi,

any feedback?