Skip to content

Add new groupByVariables to Configure Rate Limit Custom Rules #30954

@yaarark

Description

@yaarark

Related command
Add new groupByVariables to Configure Rate Limit Custom Rules https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/rate-limiting-configure?tabs=cli.
GeoLocationXffHeader, ClientAddrXffHeader.
For example:

az network application-gateway waf-policy custom-rule create --policy-name ExamplePolicy --resource-group ExampleRG --action Block --name ClientIPRateLimitRule --priority 90 --rule-type RateLimitRule --rate-limit-threshold 100 --group-by-user-session '[{'"groupByVariables"':[{'"variableName"':'"ClientAddrXffHeader"'}]}]'

az network application-gateway waf-policy custom-rule create --policy-name ExamplePolicy --resource-group ExampleRG --action Block --name ClientIPRateLimitRule --priority 90 --rule-type RateLimitRule --rate-limit-threshold 100 --group-by-user-session '[{'"groupByVariables"':[{'"variableName"':'"GeoLocationXffHeader"'}]}]'

Describe the solution you'd like

Add two variableName options to groupByVariables. GeoLocationXffHeader, ClientAddrXffHeader.

Additional context

Code changes will be part of NRP 187 and Appgw changes is part of 30.0 release. Swagger changes will be part of next release.

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkaz network vnet/lb/nic/dns/etc...customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions