Application Gateway instances must have the Web Application Firewall (WAF) SKU enabled to protect web traffic from application-layer threats like SQL injection, cross-site scripting, and automated attacks.
For Ansible resources using azure.azcollection.azure_rm_appgateway or azure_rm_appgateway, the sku.tier property must be set to WAF or WAF_v2 (case-insensitive) to enable WAF capabilities. Resources missing sku.tier or configured with non-WAF tiers (for example Standard or Standard_v2) are flagged as insecure.
Secure configuration example:
- name:Create Application Gateway with WAF_v2azure.azcollection.azure_rm_appgateway:resource_group:myResourceGroupname:myAppGatewaysku:tier:WAF_v2
Compliant Code Examples
- name:Create instance of Application Gatewayazure_rm_appgateway:resource_group:myResourceGroupname:myAppGatewaysku:name:waf_mediumtier:wafcapacity:2
Non-Compliant Code Examples
- name:Create instance of Application Gatewayazure_rm_appgateway:resource_group:myResourceGroupname:myAppGatewaysku:name:standard_smalltier:standardcapacity:2
1
2
rulesets:- Ansible / Azure # Rules to enforce / Azure.
맞춤형 데모 요청
Datadog 시작하기
Ask AI
AI-generated responses may be inaccurate. Verify important info.