-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
AdvisorFit&FinishService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.
Description
High Priority
-
advisor configuration getshould be split intoadvisor configuration listsince it returns a collection.--resource-groupshould not be an optional parameter since, as far as I can tell, a resource group can only have a single configuration. -
advisor configuration getreturns a format withnextLinkandvalue. It should only return the contents of value. Any paging should be automatically handled by autorest. - The commands lack examples. When I try to create a configuration for a resource group I just get an object with
code: ImproperScope. The help text should also make clear that low-cpu-threshold can only use used for the subscription, not per RG. -
advisor configuration setshould be calledadvisor configuration updateas it displays PATCH-like behavior, not PUT-like behavior. - For me,
az advisor recommendation generateproduces no output. If there are no recommendations, something to that effect should be output. -
az advisor configuration setshould return the updated object instead of forcing the user to make a subsequent call to get. - The relationship between
recommendation generateandrecommendation listis not clear to me. Generate appears to do nothing and list returns an empty collection. Speculating here based on how theconfiguration setcommand works, I suspect that generate should immediately follow up with a list when it completes. - The help text for
--idsin the recommendation enable/disable commands makes reference to "Resource Id" arguments. However, these aren't in a Resource Id Arguments group. You should be able to specify the resource by names (resource group and configuration name). Additionally, the --ids parameter doesn't seem to work, if I give GUIDs or full ARM resource IDs...
Recommended
- recommendation: tests should use the built-in checks syntax instead of getting outputs in json and making assertions on them.
- If there can only be a single configuration object per resource group, you could also simply make the enable/disable commands accept the resource group name (if you can enable/disable the subscription level one, there would need to be a mechanism for that).
- The
recommendation enable/disablecommands could logically be folded into a single command. - There should be an
advisor configuration showcommand that optionally accepts resource group and shows the single configuration for that group (or if omitted, the subscription config). - Since
excludeis a property of a an Advisor configuration object,--excludeshould be a three-state flag and--includeis not needed.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
azure-cli 2.0.25
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AdvisorFit&FinishService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.