az network application-gateway rewrite-rule
Manage rewrite rules of an application gateway.
Commands
az network application-gateway rewrite-rule create
Create a rewrite rule.
az network application-gateway rewrite-rule create --gateway-name
--name
--resource-group
--rule-set-name
[--enable-reroute {false, true}]
[--modified-path]
[--modified-query-string]
[--no-wait]
[--request-headers]
[--response-headers]
[--sequence]
[--subscription]
Required Parameters
Name of the application gateway.
Name of the rewrite rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the rewrite rule set.
Optional Parameters
If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path.
Url path for url rewrite.
Query string for url rewrite.
Do not wait for the long-running operation to finish.
Space-separated list of HEADER=VALUE pairs.
Space-separated list of HEADER=VALUE pairs.
Determines the execution order of the rule in the rule set.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule delete
Delete a rewrite rule.
az network application-gateway rewrite-rule delete [--gateway-name]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--rule-set-name]
[--subscription]
Examples
Delete a rewrite rule. (autogenerated)
az network application-gateway rewrite-rule delete --gateway-name MyGateway --name MyRewriteRule --resource-group MyResourceGroup --rule-set-name MyRuleSet
Optional Parameters
Name of the application gateway.
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 rewrite rule.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the rewrite rule set.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule list
List rewrite rules.
az network application-gateway rewrite-rule list --gateway-name
--resource-group
--rule-set-name
[--query-examples]
[--subscription]
Examples
List rewrite rules. (autogenerated)
az network application-gateway rewrite-rule list --gateway-name MyGateway --resource-group MyResourceGroup --rule-set-name MyRuleSet
Required Parameters
Name of the application gateway.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the rewrite rule set.
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule list-request-headers
Lists all available request headers.
az network application-gateway rewrite-rule list-request-headers [--subscription]
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule list-response-headers
Lists all available response headers.
az network application-gateway rewrite-rule list-response-headers [--subscription]
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule show
Get the details of a rewrite rule.
az network application-gateway rewrite-rule show [--gateway-name]
[--ids]
[--name]
[--query-examples]
[--resource-group]
[--rule-set-name]
[--subscription]
Examples
Get the details of a rewrite rule. (autogenerated)
az network application-gateway rewrite-rule show --gateway-name MyGateway --name MyRewriteRule --resource-group MyResourceGroup --rule-set-name MyRuleSet
Optional Parameters
Name of the application gateway.
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 rewrite rule.
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the rewrite rule set.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az network application-gateway rewrite-rule update
Update a rewrite rule.
az network application-gateway rewrite-rule update [--add]
[--enable-reroute {false, true}]
[--force-string]
[--gateway-name]
[--ids]
[--modified-path]
[--modified-query-string]
[--name]
[--no-wait]
[--remove]
[--request-headers]
[--resource-group]
[--response-headers]
[--rule-set-name]
[--sequence]
[--set]
[--subscription]
Examples
Update a rewrite rule. (autogenerated)
az network application-gateway rewrite-rule update --gateway-name MyGateway --name MyRewriteRule --resource-group MyResourceGroup --rule-set-name MyRuleSet
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Name of the application gateway.
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.
Url path for url rewrite.
Query string for url rewrite.
Name of the rewrite rule.
Do not wait for the long-running operation to finish.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Space-separated list of HEADER=VALUE pairs.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Space-separated list of HEADER=VALUE pairs.
Name of the rewrite rule set.
Determines the execution order of the rule in the rule set.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.