Share via


az security automation-rule

Creates security automation rule.

Commands

Name Description Type Status
az security automation-rule create

Creates security automation rule.

Core GA

az security automation-rule create

Creates security automation rule.

az security automation-rule create --expected-value
                                   --operator
                                   --property-j-path
                                   --property-type

Examples

Creates security automation rule.

az security automation-rule create --expected-value 'High' --operator 'Equals' --property-j-path 'properties.metadata.severity' --property-type 'string'

Required Parameters

--expected-value

The expected value.

--operator

A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.

--property-j-path

The JPath of the entity model property that should be checked.

--property-type

The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].

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.