Microsoft.Security securityContacts 2017-08-01-preview

Bicep resource definition

The securityContacts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Security/securityContacts resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Security/securityContacts@2017-08-01-preview' = {
  name: 'string'
  properties: {
    alertNotifications: 'string'
    alertsToAdmins: 'string'
    email: 'string'
    phone: 'string'
  }
}

Property values

securityContacts

Name Description Value
name The resource name string (required)

Character limit: 1-260

Valid characters:
Alphanumerics, underscores, and hyphens.
properties Security contact data SecurityContactProperties

SecurityContactProperties

Name Description Value
alertNotifications Whether to send security alerts notifications to the security contact 'Off'
'On' (required)
alertsToAdmins Whether to send security alerts notifications to subscription admins 'Off'
'On' (required)
email The email of this security contact string (required)
phone The phone number of this security contact string

ARM template resource definition

The securityContacts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Security/securityContacts resource, add the following JSON to your template.

{
  "type": "Microsoft.Security/securityContacts",
  "apiVersion": "2017-08-01-preview",
  "name": "string",
  "properties": {
    "alertNotifications": "string",
    "alertsToAdmins": "string",
    "email": "string",
    "phone": "string"
  }
}

Property values

securityContacts

Name Description Value
type The resource type 'Microsoft.Security/securityContacts'
apiVersion The resource api version '2017-08-01-preview'
name The resource name string (required)

Character limit: 1-260

Valid characters:
Alphanumerics, underscores, and hyphens.
properties Security contact data SecurityContactProperties

SecurityContactProperties

Name Description Value
alertNotifications Whether to send security alerts notifications to the security contact 'Off'
'On' (required)
alertsToAdmins Whether to send security alerts notifications to subscription admins 'Off'
'On' (required)
email The email of this security contact string (required)
phone The phone number of this security contact string

Terraform (AzAPI provider) resource definition

The securityContacts resource type can be deployed with operations that target:

  • Subscriptions

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Security/securityContacts resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Security/securityContacts@2017-08-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      alertNotifications = "string"
      alertsToAdmins = "string"
      email = "string"
      phone = "string"
    }
  })
}

Property values

securityContacts

Name Description Value
type The resource type "Microsoft.Security/securityContacts@2017-08-01-preview"
name The resource name string (required)

Character limit: 1-260

Valid characters:
Alphanumerics, underscores, and hyphens.
parent_id To deploy to a subscription, use the ID of that subscription. string (required)
properties Security contact data SecurityContactProperties

SecurityContactProperties

Name Description Value
alertNotifications Whether to send security alerts notifications to the security contact "Off"
"On" (required)
alertsToAdmins Whether to send security alerts notifications to subscription admins "Off"
"On" (required)
email The email of this security contact string (required)
phone The phone number of this security contact string