Using Console
Using CLI
az login
az account set --subscription <subscription_id>
Replace <subscription_id>
with the ID of your Azure subscription.
az security va-notification-contacts create --email <email_address> --phone <phone_number> --alert-notifications true --security-contact-name <contact_name>
Replace <email_address>
with the email address of the admin or subscription owner who needs to receive the email notifications.
Replace <phone_number>
with the phone number of the admin or subscription owner who needs to receive the SMS notifications.
Replace <contact_name>
with the name of the contact to be created.
az security va-notification-contacts list
This command will list all the notification contacts that have been created.
Using Python