az security contact

View your security contacts.

Commands

az security contact create

Creates a security contact.

az security contact delete

Deletes a security contact.

az security contact list

List security contact.

az security contact show

Shows a security contact.

az security contact create

Creates a security contact.

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

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.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az security contact delete

Deletes a security contact.

az security contact delete --name
                           [--subscription]

Examples

Deletes a security contact.

az security contact delete -n "default1"

Required Parameters

--name -n

Name of the resource to be fetched.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az security contact list

List security contact.

az security contact list [--query-examples]
                         [--subscription]

Examples

Get security contacts.

az security contact list

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az security contact show

Shows a security contact.

az security contact show --name
                         [--query-examples]
                         [--subscription]

Examples

Get a security contact.

az security contact show -n "default1"

Required Parameters

--name -n

Name of the resource to be fetched.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.