---
id: "azure-web-application-firewall"
type: "component"
kind: "waf"
provider: "azure"
category: "security"
aliases: "WAF"
docs: "https://learn.microsoft.com/en-us/azure/web-application-firewall/overview"
url: "https://localhost:3000/catalogue/components/azure-web-application-firewall"
---

# Azure Web Application Firewall

Layer-7 rule engine protecting web applications behind Application Gateway, Front Door or CDN.

| | |
|---|---|
| Provider | [azure](https://localhost:3000/catalogue?provider=azure) |
| Kind | [Web application firewall](https://localhost:3000/catalogue/kinds/waf) |
| Category | Security |
| Official docs | [https://learn.microsoft.com/en-us/azure/web-application-firewall/overview](https://learn.microsoft.com/en-us/azure/web-application-firewall/overview) |
| Also known as | WAF |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `anomalyScoreThreshold` | integer | — | no | 5 | inherited |
| `anomalyScoring` | boolean | — | no | true | inherited |
| `botProtection` | boolean | — | no | — | **false** |
| `customRuleCount` | integer | — | no | — | inherited |
| `managed` | boolean | — | no | false | **true** |
| `managedRuleSet` | string | — | no | — | **"owasp-crs"** |
| `mode` | enum | `detection`, `prevention`, `off` | no | — | **"detection"** |
| `platform` | enum | `application-gateway`, `application-gateway-for-containers`, `front-door`, `cdn` | no | — | inherited |
| `rateLimiting` | boolean | — | no | — | inherited |
| `sitesPerInstanceLimit` | integer | — | no | 40 | inherited |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 13

- [Web Application Firewall](https://localhost:3000/catalogue/components/alibaba-waf.md) `alibaba-waf` — alibabacloud
- [AWS WAF web ACL](https://localhost:3000/catalogue/components/aws-waf.md) `aws-waf` — aws
- [AWS WAF Classic](https://localhost:3000/catalogue/components/aws-waf-classic.md) `aws-waf-classic` — aws
- [Firewall for AI](https://localhost:3000/catalogue/components/cloudflare-firewall-for-ai.md) `cloudflare-firewall-for-ai` — cloudflare
- [Cloudflare WAF](https://localhost:3000/catalogue/components/cloudflare-waf.md) `cloudflare-waf` — cloudflare
- [Coraza](https://localhost:3000/catalogue/components/coraza.md) `coraza` — default
- [Imperva Application Security](https://localhost:3000/catalogue/components/imperva.md) `imperva` — default
- [ModSecurity](https://localhost:3000/catalogue/components/modsecurity.md) `modsecurity` — default
- [NAXSI](https://localhost:3000/catalogue/components/naxsi.md) `naxsi` — default
- [Generic web application firewall](https://localhost:3000/catalogue/components/waf.md) `waf` — default
- [Google Cloud Armor](https://localhost:3000/catalogue/components/google-cloud-armor.md) `google-cloud-armor` — gcp
- [reCAPTCHA Enterprise](https://localhost:3000/catalogue/components/google-recaptcha-enterprise.md) `google-recaptcha-enterprise` — gcp
- [Web Application Firewall](https://localhost:3000/catalogue/components/oci-waf.md) `oci-waf` — oci

## Use it in a design

```yaml
nodes:
  - { id: "azure-web-application-firewall", component: "azure-web-application-firewall" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Azure Web Application Firewall: layer-7 policy running on Application Gateway, Front Door or
# Azure CDN. "Create WAF policies for Application Gateway": a new WAF policy is in Detection mode
# by default and the Azure-managed OWASP rules are enabled; anomaly scoring blocks at a score of 5.
schemaVersion: "1"
type: "component"
id: "azure-web-application-firewall"
kind: "waf"
provider: "azure"
docs: "https://learn.microsoft.com/en-us/azure/web-application-firewall/overview"
aliases: ["WAF"]
defaults:
  managed: true
  mode: "detection"
  managedRuleSet: "owasp-crs"
  botProtection: false
properties:
  platform:
    type: "enum"
    values: ["application-gateway", "application-gateway-for-containers", "front-door", "cdn"]
  anomalyScoring:
    type: "boolean"
    default: true
  anomalyScoreThreshold:
    type: "integer"
    default: 5
  sitesPerInstanceLimit:
    type: "integer"
    default: 40
```

Human page: https://localhost:3000/catalogue/components/azure-web-application-firewall
