az monitor metrics alert dimension

Manage near-realtime metric alert rule dimensions.

Commands

Name Description Type Status
az monitor metrics alert dimension create

Build a metric alert rule dimension.

Core Preview

az monitor metrics alert dimension create

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Build a metric alert rule dimension.

az monitor metrics alert dimension create --name
                                          --value
                                          [--op {Exclude, Include}]

Examples

Build a metric alert rule dimension.

$dim = az monitor metrics alert dimension create -n dimName --op Include -v GetBlob PutBlob

Required Parameters

--name -n

Name of the dimension.

--value -v

The values to apply on the operation.

Optional Parameters

--op --operator

Dimension operator.

accepted values: Exclude, Include
default value: Include
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.