你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.Security securityContacts
Bicep 资源定义
securityContacts 资源类型可以通过针对以下操作进行部署:
- 订阅 - 请参阅 订阅部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Security/securityContacts 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Security/securityContacts@2020-01-01-preview' = {
name: 'string'
properties: {
alertNotifications: {
minimalSeverity: 'string'
state: 'string'
}
emails: 'string'
notificationsByRole: {
roles: [
'string'
]
state: 'string'
}
phone: 'string'
}
}
属性值
securityContacts
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 | 字符串 (必需) 字符限制:1-260 有效字符: 字母数字、下划线字符和连字符。 |
properties | 安全联系人数据 | SecurityContactProperties |
SecurityContactProperties
名称 | 说明 | 值 |
---|---|---|
alertNotifications | 定义是否发送有关新安全警报电子邮件通知 | SecurityContactPropertiesAlertNotifications |
emails | 此安全联系人中定义的配置将从 Microsoft Defender for Cloud 接收通知的电子邮件地址列表。 | 字符串 |
notificationsByRole | 定义是否将 Microsoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | SecurityContactPropertiesNotificationsByRole |
phone | 安全联系人的电话号码 | string |
SecurityContactPropertiesAlertNotifications
名称 | 说明 | 值 |
---|---|---|
minimalSeverity | 定义将作为电子邮件通知发送的最低警报严重性 | “高” “低” “中” |
state | 定义是否发送有关新安全警报的电子邮件通知 | “Off” “On” |
SecurityContactPropertiesNotificationsByRole
名称 | 说明 | 值 |
---|---|---|
角色 | 定义将从 Microsoft Defender for Cloud 获取哪些 RBAC 角色电子邮件通知。 允许的 RBAC 角色列表: | 包含任意项的字符串数组: “AccountAdmin” “参与者” “所有者” “ServiceAdmin” |
state | 定义是否将 AMicrosoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | “Off” “On” |
ARM 模板资源定义
securityContacts 资源类型可以通过针对以下操作进行部署:
- 订阅 - 请参阅 订阅部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Security/securityContacts 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Security/securityContacts",
"apiVersion": "2020-01-01-preview",
"name": "string",
"properties": {
"alertNotifications": {
"minimalSeverity": "string",
"state": "string"
},
"emails": "string",
"notificationsByRole": {
"roles": [ "string" ],
"state": "string"
},
"phone": "string"
}
}
属性值
securityContacts
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.Security/securityContacts” |
apiVersion | 资源 API 版本 | “2020-01-01-preview” |
name | 资源名称 | 字符串 (必需) 字符限制:1-260 有效字符: 字母数字、下划线字符和连字符。 |
properties | 安全联系人数据 | SecurityContactProperties |
SecurityContactProperties
名称 | 说明 | 值 |
---|---|---|
alertNotifications | 定义是否发送有关新安全警报电子邮件通知 | SecurityContactPropertiesAlertNotifications |
emails | 此安全联系人中定义的配置将从 Microsoft Defender for Cloud 接收通知的电子邮件地址列表。 | string |
notificationsByRole | 定义是否将 Microsoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | SecurityContactPropertiesNotificationsByRole |
phone | 安全联系人的电话号码 | string |
SecurityContactPropertiesAlertNotifications
名称 | 说明 | 值 |
---|---|---|
minimalSeverity | 定义将作为电子邮件通知发送的最低警报严重性 | “高” “低” “中” |
state | 定义是否发送有关新安全警报的电子邮件通知 | “Off” “On” |
SecurityContactPropertiesNotificationsByRole
名称 | 说明 | 值 |
---|---|---|
角色 | 定义将从 Microsoft Defender for Cloud 获取哪些 RBAC 角色电子邮件通知。 允许的 RBAC 角色列表: | 包含任意项的字符串数组: “AccountAdmin” “参与者” “所有者” “ServiceAdmin” |
state | 定义是否将 AMicrosoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | “Off” “On” |
Terraform (AzAPI 提供程序) 资源定义
securityContacts 资源类型可以通过针对以下操作进行部署:
- 订阅
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Security/securityContacts 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Security/securityContacts@2020-01-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
alertNotifications = {
minimalSeverity = "string"
state = "string"
}
emails = "string"
notificationsByRole = {
roles = [
"string"
]
state = "string"
}
phone = "string"
}
})
}
属性值
securityContacts
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.Security/securityContacts@2020-01-01-preview” |
name | 资源名称 | 字符串 (必需) 字符限制:1-260 有效字符: 字母数字、下划线字符和连字符。 |
parent_id | 若要部署到订阅,请使用该订阅的 ID。 | 字符串 (必需) |
properties | 安全联系人数据 | SecurityContactProperties |
SecurityContactProperties
名称 | 说明 | 值 |
---|---|---|
alertNotifications | 定义是否发送有关新安全警报电子邮件通知 | SecurityContactPropertiesAlertNotifications |
emails | 此安全联系人中定义的配置将从 Microsoft Defender for Cloud 接收通知的电子邮件地址列表。 | string |
notificationsByRole | 定义是否将 Microsoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | SecurityContactPropertiesNotificationsByRole |
phone | 安全联系人的电话号码 | string |
SecurityContactPropertiesAlertNotifications
名称 | 说明 | 值 |
---|---|---|
minimalSeverity | 定义将作为电子邮件通知发送的最低警报严重性 | "High" "Low" “中” |
state | 定义是否发送有关新安全警报的电子邮件通知 | "Off" "On" |
SecurityContactPropertiesNotificationsByRole
名称 | 说明 | 值 |
---|---|---|
角色 | 定义将从 Microsoft Defender for Cloud 获取电子邮件通知的 RBAC 角色。 允许的 RBAC 角色列表: | 包含任何一项的字符串数组: “AccountAdmin” “参与者” “所有者” “ServiceAdmin” |
state | 定义是否将 AMicrosoft Defender for Cloud 中的电子邮件通知发送给订阅中具有特定 RBAC 角色的人员。 | "Off" "On" |