Skip to main content

🧠 Azure Application Gateway Web Application Firewall is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-17T01:31:02.896164707Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 199βœ”οΈ extract('CA10__wafEnabled__c') == trueβœ”οΈ null
🟒002βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/azure/application-gateway/web-application-firewall/policy.yaml664EE491D79E30313126F65B2DD89584
Open/ce/ca/azure/application-gateway/web-application-firewall/prod.logic.yaml9DF8B3FC8F64B5285EB16C149E8C8731
Open/ce/ca/azure/application-gateway/web-application-firewall/test-data.json86E56340D7757BB713D8CEC825836447
Open/types/CA10__CaAzureApplicationGateway__c/object.extracts.yaml0D83E678F320459334C801870D84974C

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​

Open File

---
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."