az advisor configuration
Manage Azure Advisor configuration.
Commands
az advisor configuration list |
List Azure Advisor configuration for the entire subscription. |
az advisor configuration show |
Show Azure Advisor configuration for the given subscription or resource group. |
az advisor configuration update |
Update Azure Advisor configuration. |
az advisor configuration list
List Azure Advisor configuration for the entire subscription.
az advisor configuration list [--query-examples]
[--subscription]
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 advisor configuration show
Show Azure Advisor configuration for the given subscription or resource group.
az advisor configuration show [--query-examples]
[--resource-group]
[--subscription]
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 of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 advisor configuration update
Update Azure Advisor configuration.
az advisor configuration update [--add]
[--exclude]
[--force-string]
[--include]
[--low-cpu-threshold {10, 15, 20, 5}]
[--remove]
[--resource-group]
[--set]
[--subscription]
Examples
Update low CPU threshold for a given subscription to 20%.
az advisor configuration update -l 20
Exclude a given resource group from recommendation generation.
az advisor configuration update -g myRG -e
Update Azure Advisor configuration. (autogenerated)
az advisor configuration update --include --resource-group myRG
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>.
Exclude from recommendation generation.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Include in recommendation generation.
Value for low CPU threshold.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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.