Hi Elisa,
Welcome to Microsoft Q&A forum.
To understand the difference between Enforce maximum request body limit & WAF policy json property is as below:
- Portal/UI setting: "Enforce maximum request body limit" is a friendly label shown in the Azure Portal for clarity. It indicates whether the WAF should enforce the configured maximum request body size for inspection.
- JSON property:
properties.policySettings.requestBodyEnforcementis the actual schema property in the WAF policy ARM template or REST API. This is the authoritative configuration key used by Azure Resource Manager
Both refer to the same logical feature:
- When enabled, WAF enforces the maximum request body size limit (e.g., 128 KB for OWASP CRS).
- When disabled, WAF does not block requests exceeding the limit; it only inspects up to the limit
- Azure Portal uses descriptive labels for usability.
- ARM schema uses technical property names for consistency across APIs and automation.
This separation between properties allows for better flexibility in policy management. You can control inspection and enforcement independently, which gives you more options for performance optimization or security configurations based on your specific scenarios.
Hope, you find this comment helpful, if yes, please “up-vote” for the information provided , this can be beneficial to community members.
Kindly let us know if you have any additional questions.
Thanks