-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Getting a warning about disabled_rules when trying to set managed_rules to be ignored in lifecycle changes #23379
Comments
And I'll state it works fine so long as I don't add the lifecycle ignore. |
Same problem here. No solution found. |
Reached out to a colleague at a previous company I was part of and they had the same issue. Eventually just abandoned the state file and started fresh with the entire app gateway outside of Terraform. They are on 3.61. |
Near as I can tell the relevant code is at:
I don't know enough about the inner code to point out the issue, but it seems like disabledRules isn't being set to null when you set managed_rules to be ignored? |
It looks like #23412 got created that would resolve this issue. I'm not familiar with the push to prod for the Terraform Azure RM Provider, but how often do these PRs get integrated into releases? |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.4.5
AzureRM Provider Version
3.56.0
Affected Resource(s)/Data Source(s)
azurerm_web_application_firewall_policy
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
There is no reference to the older disabled_rules block in any of the configs or the state file, but when going to add managed_rules to be ignored by lifecycle changes so we can start controlling it outside of Terraform the plan states I can't have "disabled_rules" set while "rule" is set. Not in a state to easily move to the latest AzureRM or TF providers, but reviewing the change logs I didn't see anything that seemed related to this.
Actual Behaviour
Warning generates in the TF plan that disabled_rules can't be set.
Steps to Reproduce
terraform plan
Important Factoids
Running from ADO pipelines on a production environment
References
No response
The text was updated successfully, but these errors were encountered: