Share via


az advisor recommendation

Review Azure Advisor recommendations.

Commands

Name Description Type Status
az advisor recommendation disable

Disable Azure Advisor recommendations.

Core GA
az advisor recommendation enable

Enable Azure Advisor recommendations.

Core GA
az advisor recommendation list

List Azure Advisor recommendations.

Core GA

az advisor recommendation disable

Disable Azure Advisor recommendations.

az advisor recommendation disable [--days]
                                  [--ids]
                                  [--name]
                                  [--resource-group]

Optional Parameters

--days -d

Number of days to disable. If not specified, the recommendation is disabled forever.

--ids

One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified.

--name -n

The name of the recommendation as output by the list command.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az advisor recommendation enable

Enable Azure Advisor recommendations.

az advisor recommendation enable [--ids]
                                 [--name]
                                 [--resource-group]

Examples

Enable Azure Advisor recommendations. (autogenerated)

az advisor recommendation enable --name MyRecommendation

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified.

--name -n

The name of the recommendation as output by the list command.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az advisor recommendation list

List Azure Advisor recommendations.

az advisor recommendation list [--category {Cost, HighAvailability, Performance, Security}]
                               [--ids]
                               [--refresh]
                               [--resource-group]

Optional Parameters

--category -c

Name of recommendation category.

Accepted values: Cost, HighAvailability, Performance, Security
--ids

One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified.

--refresh -r

Generate new recommendations.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.