You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a path-based redirect rule with include_path = false the rule should be created with include_path = false, and this flag should show up that way in the Azure Portal.
Actual Behavior
Terraform applies the configuration without reporting errors, but it does not set include_path. What's more, when I look at the rule in Azure the radio button for this option is entirely unselected. It should have "yes" or "no", but no option is selected.
Unfortunately, when this value is not set in Azure, the Application Gateway seems to act like it is set to true, which is the opposite of the default value in Terraform, and the opposite of what you want if you explicitly set it to false.
The rule loses its value for "include path" every time you apply changes, too, so you have to go into the Azure portal to fix it every time you let Terraform change things about your gateway. This might not apply to every sort of change.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
May 17, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_application_gateway
-> redirect_configurationTerraform Configuration Files
Debug Output
https://gist.github.com/mharen/afbd217d673d3d3f658b1c844166bf1c
Expected Behavior
When creating a path-based redirect rule with
include_path = false
the rule should be created withinclude_path = false
, and this flag should show up that way in the Azure Portal.Actual Behavior
Terraform applies the configuration without reporting errors, but it does not set
include_path
. What's more, when I look at the rule in Azure the radio button for this option is entirely unselected. It should have "yes" or "no", but no option is selected.Unfortunately, when this value is not set in Azure, the Application Gateway seems to act like it is set to
true
, which is the opposite of the default value in Terraform, and the opposite of what you want if you explicitly set it tofalse
.E.g. my example config creates a redirect:
Verify the bug:
☝️ that redirect ends with
/vault
, the path, but it shouldn't.If I go into the Azure portal and manually toggle the "include path" option to "no", then the redirect works as intended:
Steps to Reproduce
terraform apply
Important Factoids
This happens for v2 Application Gateways, too.
The rule loses its value for "include path" every time you apply changes, too, so you have to go into the Azure portal to fix it every time you let Terraform change things about your gateway. This might not apply to every sort of change.
The text was updated successfully, but these errors were encountered: