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

Frontdoor rule not accepting cache_duration null value #19311

Closed
1 task done
sudeep1607 opened this issue Nov 16, 2022 · 2 comments · Fixed by #19378
Closed
1 task done

Frontdoor rule not accepting cache_duration null value #19311

sudeep1607 opened this issue Nov 16, 2022 · 2 comments · Fixed by #19378
Assignees
Milestone

Comments

@sudeep1607
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.3.4

AzureRM Provider Version

3.31.0

Affected Resource(s)/Data Source(s)

azurerm_cdn_frontdoor_rule

Terraform Configuration Files

+ resource "azurerm_cdn_frontdoor_rule" "frontdoor_rule" {
      + behavior_on_match           = "Continue"
      + cdn_frontdoor_rule_set_id   = "/subscriptions/..........."
      + cdn_frontdoor_rule_set_name = (known after apply)
      + id                          = (known after apply)
      + name                        = "ignoreString"
      + order                       = 0

      + actions {

          + route_configuration_override_action {
              + cache_behavior                = "HonorOrigin"
              + compression_enabled           = true
              + query_string_caching_behavior = "IgnoreQueryString"
            }
        }

      + conditions {

          + url_path_condition {
              + match_values     = [
                  + "data/",
                ]
              + negate_condition = false
              + operator         = "BeginsWith"
            }
          + url_path_condition {
              + match_values     = [
                  + ".html",
                ]
              + negate_condition = false
              + operator         = "EndsWith"
            }
        }
    }

Debug Output/Panic Output

Error: creating Front Door Rule: (Rule Name "ignoreString" / Rule Set Name "cacheRequests" / Profile Name "xyzzy-profile" / Resource Group "xyzzy-rg"): cdn.RulesClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Cache duration must be null for honor origin behavior."

Expected Behaviour

Should be able to create the rule when cache_duration value is set as null

Actual Behaviour

Getting the mentioned error above

Steps to Reproduce

  1. Create a rule using auzrerm_cdn_frontdoor_rule with route_configuration_override_action configured with cache behaviour as HonorOrigin and cache duration as null
  2. terraform plan
  3. terraform apply

Important Factoids

No response

References

No response

@github-actions
Copy link

This functionality has been released in v3.33.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.