Closed Meandron closed 1 year ago
Hi @Meandron, thank you for reporting this issue. I have created a PR to fix it.
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
When adding a new "rule_group_override" to azurerm_web_application_firewall_policy, it only works if you add it to the end. If you add it in between of existing ones, data gets confused and apply fails.
Terraform Version
1.2.3
AzureRM Provider Version
3.38.0
Affected Resource(s)/Data Source(s)
azurerm_web_application_firewall_policy
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Plan result, when new block is added to the end:
managed_rules {
Actual Behaviour
Error: creating Application Gateway Web Application Firewall Policy: (Name "" / Resource Group ""): network.WebApplicationFirewallPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ApplicationGatewayFirewallUnknownRuleOverride" Message="The override Rule '942450' is unknown for RuleGroup 'REQUEST-932-APPLICATION-ATTACK-RCE' for Application Gateway Firewall in context ''." Details=[]
Steps to Reproduce
Important Factoids
No response
References
No response