Skip to content

Commit f38af20

Browse files
Update application-gateway-waf-request-size-limits.md
1 parent 8361f4d commit f38af20

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/web-application-firewall/ag/application-gateway-waf-request-size-limits.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,20 @@ If you are an Application Gateway v2 WAF customer running CRS 3.2 or later and y
8484
8585
### PowerShell
8686

87-
You can use the following PowerShell comannds to return your Azure policy, look at its current settings, and update the policy settings to the desired values for inspection limit and max size limitation related fields.
87+
You can use the following PowerShell comannds to return your Azure policy and look at its current settings.
88+
89+
```azurepowershell-interactive
90+
$plcy = Get-AzApplicationGatewayFirewallPolicy -Name <policy-name> -ResourceGroupName <resourcegroup-name>
91+
$plcy.PolicySettings
92+
```
93+
94+
You can use these commands to update the policy settings to the desired values for inspection limit and max size limitation related fields. You can swap out “RequestBodyEnforcement” in the example below for one of the other values that you want to update.
95+
96+
```azurepowershell-interactive
97+
$plcy = Get-AzApplicationGatewayFirewallPolicy -Name <policy-name> -ResourceGroupName <resourcegroup-name>
98+
$plcy.PolicySettings.RequestBodyEnforcement=false
99+
Set-AzApplicationGatewayFirewallPolicy -InputObject $plcy
100+
```
88101

89102
- [Get WAF Policy](/powershell/module/az.network/get-azapplicationgatewayfirewallpolicy)
90103
- [Polcy Settings Properties](/dotnet/api/microsoft.azure.commands.network.models.psapplicationgatewaywebapplicationfirewallpolicy.policysettings)
@@ -95,6 +108,7 @@ You can use the following PowerShell comannds to return your Azure policy, look
95108

96109
You can you Azure CLI to return the current values for these fields from your Azure policy settings and update the fields to the desired values using [these commands](/cli/azure/network/application-gateway/waf-policy/policy-setting).
97110

111+
98112
## Next steps
99113

100114
- After you configure your WAF settings, you can learn how to view your WAF logs. For more information, see [Application Gateway diagnostics](../../application-gateway/application-gateway-diagnostics.md#diagnostic-logging).

0 commit comments

Comments
 (0)