Application Gateway Rewrite "Rule block" - query_string is set to "" when null is passed


        path         = "{var_uri_path_1}-rtf/{var_uri_path_2}"
        reroute      = true
        query_string = null  # using this it should configure a rule that checks only the URL path, not both URL path and query string

applied state:

When no value is provided the state file shows that there is a value of "" (an empty string), which probably means the query_string is essentially being replaced by the rewrite rule.

I’m not entirely sure why this is the case, but I’ll do some investigation as to why empty strings are going through when no value is provided.

Originally posted by @dhensby in azurerm_application_gateway - support for rewriting urls with the `url` block by dhensby · Pull Request #10950 · hashicorp/terraform-provider-azurerm · GitHub