az network application-gateway waf-policy custom-rule match-condition
Manage application gateway web application firewall (WAF) policies.
Commands
| az network application-gateway waf-policy custom-rule match-condition add |
A match condition to an application gateway WAF policy custom rule. |
| az network application-gateway waf-policy custom-rule match-condition list |
List application gateway WAF policy custom rule match conditions. |
| az network application-gateway waf-policy custom-rule match-condition remove |
Remove a match condition from an application gateway WAF policy custom rule. |
az network application-gateway waf-policy custom-rule match-condition add
A match condition to an application gateway WAF policy custom rule.
az network application-gateway waf-policy custom-rule match-condition add --match-variables
--operator {BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual, Regex}
--values
[--ids]
[--name]
[--negate {false, true}]
[--policy-name]
[--resource-group]
[--transforms {HtmlEntityDecode, Lowercase, RemoveNulls, Trim, UrlDecode, UrlEncode}]
Examples
Add application gateway WAF policy custom rule match condition with contains.
az network application-gateway waf-policy custom-rule match-condition add --resource-group MyResourceGroup --policy-name MyPolicy --name MyWAFPolicyRule --match-variables RequestHeaders.value --operator contains --values foo boo --transform lowercase
Add application gateway WAF policy custom rule match condition with equal.
az network application-gateway waf-policy custom-rule match-condition add --resource-group MyResourceGroup --policy-name MyPolicy --name MyWAFPolicyRule --match-variables RequestHeaders.Content-Type --operator Equal --values application/csp-report
Required Parameters
Space-separated list of variables to use when matching. Variable values: RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestHeaders, RequestBody, RequestCookies.
Operator for matching.
Space-separated list of values to match.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the WAF policy rule.
Match the negative of the condition.
The name of the application gateway WAF policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Space-separated list of transforms to apply when matching.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway waf-policy custom-rule match-condition list
List application gateway WAF policy custom rule match conditions.
az network application-gateway waf-policy custom-rule match-condition list --name
--policy-name
--resource-group
Examples
List application gateway WAF policy custom rule match conditions. (autogenerated)
az network application-gateway waf-policy custom-rule match-condition list --name MyWAFPolicyRule --policy-name MyPolicy --resource-group MyResourceGroup --subscription MySubscription
Required Parameters
Name of the WAF policy rule.
The name of the application gateway WAF policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway waf-policy custom-rule match-condition remove
Remove a match condition from an application gateway WAF policy custom rule.
az network application-gateway waf-policy custom-rule match-condition remove --index
[--ids]
[--name]
[--policy-name]
[--resource-group]
Required Parameters
Index of the match condition to remove.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the WAF policy rule.
The name of the application gateway WAF policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ