Skip to content

Commit c228a76

Browse files
committed
fixed build validation
1 parent 3277350 commit c228a76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/web-application-firewall/ag/custom-response-error.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: article
66
author: duongau
77
ms.service: web-application-firewall
88
ms.date: 02/26/2024
9-
ms.author: duongau
9+
ms.author: duau
1010
---
1111

1212
# 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
8181
8282
## Configure existing WAF policy with a custom response
8383
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.
8585
8686
```azurepowershell-interactive
8787
$policySettings = New-AzApplicationGatewayFirewallPolicySetting `
8888
-CustomBlockResponseStatusCode 406 `
8989
-CustomBlockResponseBody "Access denied. The request is blocked."
9090
```
9191
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.
9393
9494
```azurepowershell-interactive
95-
Set-AzApplicationGatewayFirewallPolicySetting `
95+
Set-AzApplicationGatewayFirewallPolicy `
9696
-Name myWAFPolicy `
9797
-ResourceGroupName myResourceGroup `
9898
-PolicySetting $policySettings
@@ -102,7 +102,7 @@ Set-AzApplicationGatewayFirewallPolicySetting `
102102

103103
## Create a new WAF policy with a custom response
104104

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.
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.
106106

107107
```azurecli-interactive
108108
az network application-gateway waf-policy create \
@@ -116,7 +116,7 @@ az network application-gateway waf-policy create \
116116

117117
## Configure existing WAF policy with a custom response
118118

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.
120120

121121
```azurecli-interactive
122122
az network application-gateway waf-policy policy-setting update \

0 commit comments

Comments
 (0)