|
| 1 | +--- |
| 2 | +title: Upgrade to Azure Application Gateway WAF policy |
| 3 | +description: Learn how to upgrade Azure Application Gateway WAF policy. |
| 4 | +services: web-application-firewall |
| 5 | +ms.topic: how-to |
| 6 | +author: vhorne |
| 7 | +ms.service: web-application-firewall |
| 8 | +ms.date: 04/25/2023 |
| 9 | +ms.author: lunowak |
| 10 | +ms.custom: devx-track-azurepowershell |
| 11 | +--- |
| 12 | + |
| 13 | +# Upgrade to Azure Application Gateway WAF policy |
| 14 | + |
| 15 | +Azure Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities. Web Application Firewall Policies contain all the WAF settings and configurations. This includes exclusions, custom rules, managed rules, and so on. These policies are then associated with an application gateway (global), a listener (per-site), or a path-based rule (per-URI) for them to take effect. |
| 16 | + |
| 17 | +Azure Application Gateway WAF v2 natively supports WAF policy. You should upgrade your legacy WAF configuration to WAF policies. |
| 18 | + |
| 19 | +- Policies offer a richer set of advanced features. This includes newer managed rule sets, custom rules, per rule exclusions, bot protection, and the next generation of WAF engine. These advanced features are available to you at no extra cost. |
| 20 | +- WAF policies provide higher scale and better performance. |
| 21 | +- Unlike legacy WAF configuration, WAF policies can be defined once and shared across multiple gateways, listeners, and URL paths. This simplifies the management and deployment experience. |
| 22 | +- The latest features and future enhancements are only available via WAF policies. |
| 23 | + |
| 24 | +> [!IMPORTANT] |
| 25 | +> No further investments will be made on legacy WAF configuration. You are strongly encouraged to upgrade from legacy WAF configuration to WAF Policy for easier management, better scale, and a richer feature set at no additional cost. |
| 26 | +
|
| 27 | +## Upgrade Application Gateway Standard v2 to Application Gateway WAF v2 |
| 28 | + |
| 29 | +1. Locate the Application Gateway in the Azure portal. Select the Application Gateway and the select **Configuration** from the **Settings** menu on the left side. |
| 30 | +1. Under **Tier**, select **WAF V2**. |
| 31 | +1. Select **Save** to complete the upgrade from Application Gateway Standard to Application Gateway WAF. |
| 32 | + |
| 33 | +## Upgrade WAF v2 with legacy WAF configuration to WAF policy |
| 34 | + |
| 35 | +You can upgrade existing Application Gateways with WAF v2 from WAF legacy configuration to WAF policy directly without any downtime. You can upgrade using either using the portal, Firewall Manager, or Azure PowerShell. |
| 36 | + |
| 37 | +# [Portal](#tab/portal) |
| 38 | + |
| 39 | +1. Sign in to the Azure portal and select the Application Gateway WAF v2 that has a legacy WAF configuration. |
| 40 | +1. Select **Web Application Firewall** from the left menu, then select **Upgrade from WAF configuration**. |
| 41 | +1. Provide a name for the new WAF Policy and then select **Upgrade**. This creates a new WAF Policy based on the WAF configuration. You can also choose to associate a pre-existing WAF Policy instead of creating a new one. |
| 42 | +1. When the upgrade finishes, a new WAF Policy incorporating the previous WAF configuration and rules is created. |
| 43 | + |
| 44 | +# [Firewall Manager](#tab/fwm) |
| 45 | + |
| 46 | +See [Configure WAF policies using Azure Firewall Manager](../shared/manage-policies.md). |
| 47 | + |
| 48 | +# [PowerShell](#tab/powershell) |
| 49 | + |
| 50 | +See [Upgrade Web Application Firewall policies using Azure PowerShell](migrate-policy.md). |
| 51 | + |
| 52 | +--- |
| 53 | + |
| 54 | +## Upgrade Application Gateway v1 to WAF v2 with WAF policy |
| 55 | + |
| 56 | +Application Gateway v1 doesn't support WAF policy. Upgrading to WAF policy is a two step process: |
| 57 | + |
| 58 | +- Upgrade Application Gateway v1 to v2 version. |
| 59 | +- Upgrade legacy WAF configuration to WAF policy. |
| 60 | + |
| 61 | +1. Upgrade from v1 to v2 Application Gateway. |
| 62 | + |
| 63 | + For more information, see [Upgrade Azure Application Gateway and Web Application Firewall from v1 to v2](../../application-gateway/migrate-v1-v2.md). |
| 64 | + |
| 65 | + When you complete the upgrade of v1 to v2, the Application Gateway v2 has a legacy WAF configuration. |
| 66 | +2. Upgrade to Application Gateway WAF v2 with WAF Policy. |
| 67 | + |
| 68 | + - If in Step 1 you upgraded from Application Gateway Standard v1 to v2, see the previous section [Upgrade Application Gateway Standard v2 to Application Gateway WAF v2](#upgrade-application-gateway-standard-v2-to-application-gateway-waf-v2). |
| 69 | + - If in Step 1, you upgraded from Application Gateway WAF v1 to Application Gateway WAF v2 with legacy configuration, see the previous section [Upgrade WAF v2 with legacy WAF configuration to WAF policy](#upgrade-waf-v2-with-legacy-waf-configuration-to-waf-policy) to migrate to Application Gateway WAF v2 SKU with WAF policy. |
| 70 | + |
| 71 | +## Next steps |
| 72 | + |
| 73 | +For more information about WAF on Application Gateway policy, see [Azure Web Application Firewall (WAF) policy overview](policy-overview.md). |
0 commit comments