You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/web-application-firewall/ag/custom-response-error.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.topic: article
6
6
author: duongau
7
7
ms.service: web-application-firewall
8
8
ms.date: 02/26/2024
9
-
ms.author: duongau
9
+
ms.author: duau
10
10
---
11
11
12
12
# Configure a custom response page for Azure Web Application Firewall
@@ -81,18 +81,18 @@ You can configure custom responses for WAF by using the Azure portal, PowerShell
81
81
82
82
## Configure existing WAF policy with a custom response
83
83
84
-
1. Use the [New-AzApplicationGatewayFirewallPolicySettings](/powershell/module/az.network/new-azapplicationgatewayfirewallpolicysetting) to create the policy settings for the WAF policy.
84
+
1. Use the [New-AzApplicationGatewayFirewallPolicySetting](/powershell/module/az.network/new-azapplicationgatewayfirewallpolicysetting) to create the policy settings for the WAF policy.
-CustomBlockResponseBody "Access denied. The request is blocked."
90
90
```
91
91
92
-
1. Use the [Set-AzApplicationGatewayFirewallPolicySetting](/powershell/module/az.network/set-azapplicationgatewayfirewallpolicysetting) cmdlet to update the custom response settings for an existing WAF policy.
92
+
1. Use the [Set-AzApplicationGatewayFirewallPolicy](/powershell/module/az.network/set-azapplicationgatewayfirewallpolicy) cmdlet to update the custom response settings for an existing WAF policy.
Use the [az network application-gateway waf-policy create](/cli/azure/network/application-gateway/waf-policy) command to create a new WAF policy with custom response settings. The custom body must be base64 encoded.
105
+
Use the [az network application-gateway waf-policy create](/cli/azure/network/application-gateway/waf-policy) command to create a new WAF policy with custom response settings. The custom body must be **base64** encoded.
106
106
107
107
```azurecli-interactive
108
108
az network application-gateway waf-policy create \
@@ -116,7 +116,7 @@ az network application-gateway waf-policy create \
116
116
117
117
## Configure existing WAF policy with a custom response
118
118
119
-
Use the [az network application-gateway waf-policy policy-setting update](/cli/azure/network/application-gateway/waf-policy?view=azure-cli-latest#az-network-application-gateway-waf-policy-update) command to update the custom response settings for an existing WAF policy. The custom body must be base64 encoded.
119
+
Use the [az network application-gateway waf-policy policy-setting update](/cli/azure/network/application-gateway/waf-policy#az-network-application-gateway-waf-policy-update) command to update the custom response settings for an existing WAF policy. The custom body must be **base64** encoded.
120
120
121
121
```azurecli-interactive
122
122
az network application-gateway waf-policy policy-setting update \
0 commit comments