Skip to content

Commit 6deed5e

Browse files
committed
add upgrade waf policy
1 parent e1a8a10 commit 6deed5e

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
# Migrate Web Application Firewall policies using Azure PowerShell
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 migrate your legacy WAF configuration to WAF policies.
18+
19+
- Policies offer a richer set of advanced features like newer managed rule sets, custom rules, per rule exclusions, bot protection, and the next generation of WAF engine available to you at no additional cost.
20+
- 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.
21+
- The latest features and future enhancements will only be available via WAF policies.
22+
23+
> [!IMPORTANT]
24+
> No further investments will be made for legacy WAF configuration. You are strongly encouraged to migrate from legacy WAF configuration to WAF Policy for easier management and a richer feature set at no additional cost. Legacy WAF configuration is on the path to retirement and Legacy WAF configuration on v2 gateways will not be supported starting January 1, 2024.
25+
26+
## Upgrade Application Gateway Standard v2 to Application Gateway WAF v2
27+
28+
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.
29+
1. Under **Tier**, select **WAF**.
30+
1. Select **Save** to complete the upgrade from Application Gateway Standard to Application Gateway WAF.
31+
32+
## Migrate WAF v2 with legacy WAF configuration to WAF policy
33+
34+
You can migrate existing Application Gateways with WAF v2 from WAF legacy configuration to WAF policy directly without any downtime. You can migrate using either using the portal, Firewall Manager, or Azure PowerShell.
35+
36+
# [Portal](#tab/portal)
37+
38+
1. Logon to the Azure portal and select the Application Gateway WAF v2 that has a legacy WAF configuration.
39+
1. Select **Web Application Firewall** from the left menu, then select **Upgrade from WAF configuration**.
40+
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.
41+
1. When the migration finishes, a new WAF Policy incorporating the previous WAF configuration and rules is created.
42+
43+
# [Firewall Manager](#tab/fwm)
44+
45+
See [Configure WAF policies using Azure Firewall Manager](../shared/manage-policies.md).
46+
47+
# [PowerShell](#tab/powershell)
48+
49+
See [Migrate Web Application Firewall policies using Azure PowerShell](migrate-policy.md)
50+
51+
---
52+
53+
## Upgrade Application Gateway v1 to WAF v2 with WAF policy
54+
55+
Application Gateway v1 does not support WAF policy. Upgrading to WAF policy is a two step process:
56+
57+
- Migrate Application Gateway v1 to v2 version.
58+
- Upgrade legacy WAF configuration to WAF policy.
59+
60+
1. Migrate from v1 to v2 Application Gateway.
61+
62+
For more information, see [Migrate Azure Application Gateway and Web Application Firewall from v1 to v2](../../application-gateway/migrate-v1-v2.md).
63+
64+
When you complete the migration of v1 to v2, the Application Gateway v2 has a legacy WAF configuration.
65+
2. Upgrade to Application Gateway WAF v2 with WAF Policy.
66+
67+
- If in Step 1 you migrated 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).
68+
- If in Step 1, you migrated from Application Gateway WAF v1 to Application Gateway WAF v2 with legacy configuration, see the previous section [Migrate WAF v2 with legacy WAF configuration to WAF policy](#migrate-waf-v2-with-legacy-waf-configuration-to-waf-policy) to migrate to Application Gateway WAF v2 SKU with WAF policy.
69+
70+
## Next steps
71+
72+
For more information about WAF on Application Gateway policy, see [Azure Web Application Firewall (WAF) policy overview](policy-overview.md).

articles/web-application-firewall/toc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@
114114
href: ./ag/tutorial-restrict-web-traffic-powershell.md
115115
- name: Azure CLI
116116
href: ./ag/tutorial-restrict-web-traffic-cli.md
117+
- name: Upgrade WAF
118+
items:
119+
- name: Upgrade to WAF policy
120+
href: ./ag/upgrade-af-waf-policy.md
121+
- name: Migrate using PowerShell
122+
href: ./ag/migrate-policy.md
117123
- name: Per-site policies
118124
href: ./ag/per-site-policies.md
119-
- name: Migrate WAF policy
120-
href: ./ag/migrate-policy.md
121125
- name: Customize WAF rules
122126
items:
123127
- name: Azure portal

0 commit comments

Comments
 (0)