Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to tune your App gateway WAF.
Every application has it's own requirement and you have to Tune your WAF according to the requirement.
- The general practice is that start out with prevention mode and log the requests and rules that are "Matched"
- Then you can either
- Disable the Rule - https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-crs-rulegroups-rules?tabs=drs21#tuning-of-managed-rule-sets
- Create Exclusions - https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-waf-configuration?tabs=portal
- Create custom rules - https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/custom-waf-rules-overview
to overcome the false positives.
Hope this helps.
Cheers,
Kapil