az security contact

View your security contacts.

Commands

Name Description Type Status
az security contact create

Creates a security contact.

Core GA
az security contact delete

Deletes a security contact.

Core GA
az security contact list

List security contact.

Core GA
az security contact show

Shows a security contact.

Core GA

az security contact create

Creates a security contact.

az security contact create --email
                           --name
                           [--alert-notifications]
                           [--alerts-admins]
                           [--phone]

Examples

Creates a security contact.

az security contact create -n "default1" --email 'john@contoso.com' --phone '(214)275-4038' --alert-notifications 'on' --alerts-admins 'on'

Required Parameters

--email

E-mail of the security contact.

--name -n

Name of the resource to be fetched.

Optional Parameters

--alert-notifications

Whether to send mail notifications to the security contacts.

--alerts-admins

Whether to send mail notifications to the subscription administrators.

--phone

Phone of the security contact.

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 security contact delete

Deletes a security contact.

az security contact delete --name

Examples

Deletes a security contact.

az security contact delete -n "default1"

Required Parameters

--name -n

Name of the resource to be fetched.

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 security contact list

List security contact.

az security contact list

Examples

Get security contacts.

az security contact list
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 security contact show

Shows a security contact.

az security contact show --name

Examples

Get a security contact.

az security contact show -n "default1"

Required Parameters

--name -n

Name of the resource to be fetched.

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.