az security contact
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
View your security contacts.
Commands
Name | Description | Type | Status |
---|---|---|---|
az security contact create |
Creates a security contact. |
Core | Preview |
az security contact delete |
Delete security contact configurations for the subscription. |
Core | Preview |
az security contact list |
List all security contact configurations for the subscription. |
Core | Preview |
az security contact show |
Get Default Security contact configurations for the subscription. |
Core | Preview |
az security contact update |
Update security contact configurations for the subscription. |
Core | Preview |
az security contact create
Command group 'az security contact' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Creates a security contact.
az security contact create --name
[--alert-notifications]
[--emails]
[--notifications-by-role]
[--phone]
Examples
Creates a security contact.
az security contact create -n 'default' --emails 'john@contoso.com;jane@contoso.com' --phone '214-275-4038' --notifications-by-role '{"state":"On","roles":["Owner"]}' --alert-notifications '{"state":"On","minimalSeverity":"Low"}'
Required Parameters
Name of the security contact object.
Optional Parameters
Defines whether to send email notifications about new security alerts Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The security contact's phone number.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security contact delete
Command group 'az security contact' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete security contact configurations for the subscription.
az security contact delete [--ids]
[--name]
[--subscription]
[--yes]
Examples
Deletes a security contact.
az security contact delete -n "default"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the security contact object.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security contact list
Command group 'az security contact' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all security contact configurations for the subscription.
az security contact list [--max-items]
[--next-token]
Examples
Gets all security contacts.
az security contact list
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security contact show
Command group 'az security contact' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get Default Security contact configurations for the subscription.
az security contact show [--ids]
[--name]
[--subscription]
Examples
Get a security contact.
az security contact show -n "default1"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the security contact object.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security contact update
Command group 'az security contact' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update security contact configurations for the subscription.
az security contact update [--add]
[--alert-notifications]
[--emails]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--name]
[--notifications-by-role]
[--phone]
[--remove]
[--set]
[--subscription]
Examples
Updates a security contact.
az security contact update -n 'default' --emails 'john1@contoso.com;jane@contoso.com' --phone '214-275-4038' --notifications-by-role '{"state":"On","roles":["Owner"]}' --alert-notifications '{"state":"On","minimalSeverity":"Low"}'
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Defines whether to send email notifications about new security alerts Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the security contact object.
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The security contact's phone number.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.