π§ Azure Application Gateway WAF policy Request body inspection property is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π Azure Application Gateway
- π Azure Application Gateway WAF Policy - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-06-06T12:03:32.969248618Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 199 | βοΈ CA10Z1__Azure_App_Gateway_WAF_Policy_Links__r.has(INCOMPLIANT) | βοΈ null |
| π’ | 002 | βοΈ 299 | βοΈ CA10Z1__Azure_App_Gateway_WAF_Policy_Links__r.has(COMPLIANT) | βοΈ null |
| π’ | 003 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/policy.yaml | 46F35B851810FAB0E16CC80F347E036A |
| Open | /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml | DB23C44A54CE3EA6FDFFFE0B5553D62A |
| Open | /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/test-data.json | 2F8AC5E944ED3AEB229DF5C2712451BA |
| Open | /types/CA10Z1__CaAzureApplicationGatewayWafPolicy__c/object.extracts.yaml | 1203B501EE9251441BCA934785DC7D22 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/application-gateway/gateway-waf-request-body-inspection/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureApplicationGateway__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Application Gateway has a WAF policy with request body inspection disabled."
remediationMessage: "Enable request body inspection in the WAF policy."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__Azure_App_Gateway_WAF_Policy_Links__r"
- status: "COMPLIANT"
currentStateMessage: "The WAF Policy request body inspection is enabled."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_App_Gateway_WAF_Policy_Links__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The Application Gateway has a WAF policy without a populated requestBodyCheck setting."
relatedLists:
- relationshipName: "CA10Z1__Azure_App_Gateway_WAF_Policy_Links__r"
importExtracts:
- file: /types/CA10Z1__CaAzureApplicationGatewayWafPolicy__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The WAF policy has requestBodyCheck disabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__wafPolicy__r.caJsonBoolean__policySettingsRequestBodyCheck__c"
right:
BOOLEAN: false
- status: "COMPLIANT"
currentStateMessage: "The WAF policy has requestBodyCheck enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__wafPolicy__r.caJsonBoolean__policySettingsRequestBodyCheck__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The WAF policy requestBodyCheck value is undetermined."