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 [--subscription]

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az advisor configuration show

Show Azure Advisor configuration for the given subscription or resource group.

az advisor configuration show [--resource-group]
[--subscription]

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

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

Optional Parameters

--add

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 -e

Exclude from recommendation generation.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--include -i

Include in recommendation generation.

--low-cpu-threshold -l

Value for low CPU threshold.

accepted values: 10, 15, 20, 5
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.