π§ Azure Application Gateway Web Application Firewall is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π Azure Application Gateway
- π Azure Application Gateway - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-12-17T01:31:02.896164707Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 199 | βοΈ extract('CA10__wafEnabled__c') == true | βοΈ null |
| π’ | 002 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/application-gateway/web-application-firewall/policy.yaml | 664EE491D79E30313126F65B2DD89584 |
| Open | /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml | 9DF8B3FC8F64B5285EB16C149E8C8731 |
| Open | /ce/ca/azure/application-gateway/web-application-firewall/test-data.json | 86E56340D7757BB713D8CEC825836447 |
| Open | /types/CA10__CaAzureApplicationGateway__c/object.extracts.yaml | 0D83E678F320459334C801870D84974C |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureApplicationGateway__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAzureApplicationGateway__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "Web Application Firewall (WAF) is enabled on the Application Gateway."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__wafEnabled__c"
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Web Application Firewall (WAF) is not enabled on the Application Gateway."
remediationMessage: "Enable Web Application Firewall (WAF) on the Application Gateway."