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
Error: "actions.0.route_configuration_override_action.0.cache_duration" must be longer than zero seconds, got "00:00:00"
Expected Behaviour
It should successfully create the rule with duration set to 0 seconds.
This is possible in the Azure Portal, and is according to Microsoft the only way to "disable" the default caching behaviour for responses which do not have cache headers.
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.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.7
AzureRM Provider Version
3.40.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_rule
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should successfully create the rule with duration set to 0 seconds.
This is possible in the Azure Portal, and is according to Microsoft the only way to "disable" the default caching behaviour for responses which do not have cache headers.
Relevant portion of the docs (https://learn.microsoft.com/en-us/azure/frontdoor/front-door-rules-engine-actions?tabs=portal&pivots=front-door-standard-premium#properties – under "Cache duration"):
The relevant code is at
terraform-provider-azurerm/internal/services/cdn/validate/front_door_validation_helpers.go
Lines 53 to 55 in 48cd750
As far as I can tell this explicit check should be removed.
Actual Behaviour
Validation error.
Steps to Reproduce
terraform validate
Important Factoids
No response
References
The text was updated successfully, but these errors were encountered: