Skip to content

Commit 6ea8658

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ Set-AzApplicationGatewayFirewallPolicy -InputObject $plcy
108108

109109
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).
110110

111+
```azurecli-interactive
112+
az network application-gateway waf-policy update --name <WAF Policy name> --resource-group <WAF policy RG> --set policySettings.request_body_inspect_limit_in_kb='2000' policySettings.max_request_body_size_in_kb='2000' policySettings.file_upload_limit_in_mb='3500' --query policySettings -o table
113+
```
114+
115+
**Output:**
116+
```azurecli-interactive
117+
FileUploadEnforcement FileUploadLimitInMb MaxRequestBodySizeInKb Mode RequestBodyCheck RequestBodyEnforcement RequestBodyInspectLimitInKB State
118+
----------------------- --------------------- ------------------------ --------- ------------------ ------------------------ ----------------------------- -------
119+
True 3500 2000 Detection True True 2000 Enabled
120+
```
111121

112122
## Next steps
113123

0 commit comments

Comments
 (0)