Hello @Juan Manuel Rueda Lopez , Thank you for reaching out to Microsoft Q&A. We apologize for the delay in responding to your question.
Is the expected performance as described? When you match a custom rule and input is allowed, is it no longer examined by the managed rules?
Your understanding is correct. As per the documentation here custom rules are processed before processing the rules in a managed rule set. Custom rules hold a higher priority than the rest of the rules in the managed rule sets and once a match is processed, rules with lower priorities aren't processed further.
You can below troubleshooting steps
- You can validate if the custom rule is set properly, especially the NegationConditon you can refer to the examples mentioned here.
- You can also validate the priority set for the custom rule as it determines the rule valuation order. The lower the value, the earlier the evaluation of the rule.
If the issue still persists can you please provide more information regarding custom rule set, a sample example of the request query string will be helpful. Please let me know if you have any additional questions. Thank you!