azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Monitor: metric alerts cmd should accept count as an aggregation type

Open snehithm opened this issue 7 years ago • 1 comments

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug CLI commands for metric alerts dont support Count as an aggregation type.

To Reproduce Steps to reproduce the behavior. image

Expected behavior Count should be an allowed aggregation type. This was added to metric alerts a few months ago.

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)
Installed using MSI. azure-cli 2.0.60 monitor 0.2.10, cmd.exe

Additional context Add any other context about the problem here. This is probably by design. When cli commands for metric alerts were created, count was not a supported aggregation type. However metric alerts have added support for count in January.

snehithm avatar Apr 26 '19 04:04 snehithm

Please update your CLI. This was already added in azure-cli-monitor 2.0.12.

tjprescott avatar Apr 26 '19 15:04 tjprescott