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
Output when match_values = null
╷
│ Error: expanding 'conditions': "url_filename_condition" is invalid: the 'match_values' field must not be setif the conditions 'operator' is set to 'Any'
│
│ with azurerm_cdn_frontdoor_rule.rs_default_html,
│ on fd.tf line 144, in resource "azurerm_cdn_frontdoor_rule""rs_default_html":
│ 144: resource "azurerm_cdn_frontdoor_rule""rs_default_html" {
│
╵
Output when match_values = [""]
╷
│ Error: expected "conditions.0.url_filename_condition.0.match_values.0" to not be an empty string, got
│
│ with azurerm_cdn_frontdoor_rule.rs_default_html,
│ on fd.tf line 165, in resource "azurerm_cdn_frontdoor_rule""rs_default_html":
│ 165: match_values = [""]
│
╵
Expected Behaviour
match_values is a required field but when setting anything and applying the plan, you get an error
Actual Behaviour
match_values is a required field but when setting anything and applying the plan, you get an error when Operator is Any
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
@httran13, Thank you for opening this issue. I have opened the linked PR to address this issue. match_values are now optional if the operator is set to Any. If the operator is anything other than Any you will receive the below error:
Plan: 0 to add, 1 to change, 0 to destroy.
azurerm_cdn_frontdoor_rule.repro: Modifying... [id=/subscriptions/{subscription}/resourceGroups/afdx-repro23504/providers/Microsoft.Cdn/profiles/repro-profile/ruleSets/reproruleset/rules/DefaultIndexHtml]
╷
│ Error: expanding 'conditions': "url_filename_condition" is invalid: the 'match_values' field must be setif the conditions 'operator' is not set to 'Any'
│
│ with azurerm_cdn_frontdoor_rule.repro,
│ on main.tf line 66, in resource "azurerm_cdn_frontdoor_rule""repro":
│ 66: resource "azurerm_cdn_frontdoor_rule""repro" {
* Initial Check-in...
* Update documentation...
* Fix test case reference...
* Remove ImportStep from Error test case...
* Add extra validation to test case...
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.6.0
AzureRM Provider Version
3.71.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_rule
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
match_values is a required field but when setting anything and applying the plan, you get an error
Actual Behaviour
match_values is a required field but when setting anything and applying the plan, you get an error when Operator is Any
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: