你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Insights actionGroups

Bicep 资源定义

actionGroups 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

注解

有关部署监视解决方案的指南,请参阅 使用 Bicep 创建监视资源

资源格式

若要创建 Microsoft.Insights/actionGroups 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Insights/actionGroups@2023-01-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    armRoleReceivers: [
      {
        name: 'string'
        roleId: 'string'
        useCommonAlertSchema: bool
      }
    ]
    automationRunbookReceivers: [
      {
        automationAccountId: 'string'
        isGlobalRunbook: bool
        name: 'string'
        runbookName: 'string'
        serviceUri: 'string'
        useCommonAlertSchema: bool
        webhookResourceId: 'string'
      }
    ]
    azureAppPushReceivers: [
      {
        emailAddress: 'string'
        name: 'string'
      }
    ]
    azureFunctionReceivers: [
      {
        functionAppResourceId: 'string'
        functionName: 'string'
        httpTriggerUrl: 'string'
        name: 'string'
        useCommonAlertSchema: bool
      }
    ]
    emailReceivers: [
      {
        emailAddress: 'string'
        name: 'string'
        useCommonAlertSchema: bool
      }
    ]
    enabled: bool
    eventHubReceivers: [
      {
        eventHubName: 'string'
        eventHubNameSpace: 'string'
        name: 'string'
        subscriptionId: 'string'
        tenantId: 'string'
        useCommonAlertSchema: bool
      }
    ]
    groupShortName: 'string'
    itsmReceivers: [
      {
        connectionId: 'string'
        name: 'string'
        region: 'string'
        ticketConfiguration: 'string'
        workspaceId: 'string'
      }
    ]
    logicAppReceivers: [
      {
        callbackUrl: 'string'
        name: 'string'
        resourceId: 'string'
        useCommonAlertSchema: bool
      }
    ]
    smsReceivers: [
      {
        countryCode: 'string'
        name: 'string'
        phoneNumber: 'string'
      }
    ]
    voiceReceivers: [
      {
        countryCode: 'string'
        name: 'string'
        phoneNumber: 'string'
      }
    ]
    webhookReceivers: [
      {
        identifierUri: 'string'
        name: 'string'
        objectId: 'string'
        serviceUri: 'string'
        tenantId: 'string'
        useAadAuth: bool
        useCommonAlertSchema: bool
      }
    ]
  }
}

属性值

actionGroups

名称 说明
name 资源名称 字符串 (必需)

字符限制:1-260

有效字符:
不得使用:
:<>+/&%\? 或控制字符

不得以空格或句点结尾。
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
properties 操作对资源的属性进行分组。 ActionGroup

ActionGroup

名称 说明
armRoleReceivers 属于此操作组的 ARM 角色接收器的列表。 角色是 Azure RBAC 角色,仅支持内置角色。 ArmRoleReceiver[]
automationRunbookReceivers 属于此操作组的 AutomationRunbook 接收器的列表。 AutomationRunbookReceiver[]
azureAppPushReceivers 属于此操作组的 AzureAppPush 接收器的列表。 AzureAppPushReceiver[]
azureFunctionReceivers 属于此操作组的 azure 函数接收器的列表。 AzureFunctionReceiver[]
emailReceivers 属于此操作组的电子邮件收件人的列表。 EmailReceiver[]
enabled 指示是否启用此操作组。 如果未启用操作组,则其接收方不会接收通信。 bool (必需)
eventHubReceivers 属于此操作组的事件中心接收器的列表。 EventHubReceiver[]
groupShortName 操作组的短名称。 这将在短信中使用。 字符串 (必需)

约束:
最大长度 = 12
itsmReceivers 属于此操作组的 ITSM 接收器的列表。 ItsmReceiver[]
logicAppReceivers 属于此操作组的逻辑应用接收器的列表。 LogicAppReceiver[]
smsReceivers 属于此操作组的短信接收方列表。 SmsReceiver[]
voiceReceivers 属于此操作组的语音接收器列表。 VoiceReceiver[]
webhookReceivers 属于此操作组的 Webhook 接收器的列表。 WebhookReceiver[]

ArmRoleReceiver

名称 说明
name arm 角色接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
roleId arm 角色 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

AutomationRunbookReceiver

名称 说明
automationAccountId 保存此 Runbook 并向 Azure 资源进行身份验证的 Azure 自动化帐户 ID。 字符串 (必需)
isGlobalRunbook 指示此实例是否为全局 Runbook。 bool (必需)
name 指示 Webhook 的名称。 string
RunbookName 此 Runbook 的名称。 字符串 (必需)
serviceUri 应在其中发送 Webhook 的 URI。 string
useCommonAlertSchema 指示是否使用通用警报架构。 bool
webhookResourceId 链接到此 Runbook 的 Webhook 的资源 ID。 字符串 (必需)

AzureAppPushReceiver

名称 说明
emailAddress 为 Azure 移动应用注册的电子邮件地址。 字符串 (必需)
name Azure 移动应用推送接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)

AzureFunctionReceiver

名称 说明
functionAppResourceId 函数应用的 azure 资源 ID。 字符串 (必需)
functionName 函数应用中的函数名称。 字符串 (必需)
httpTriggerUrl http 请求发送到的 http 触发器 URL。 字符串 (必需)
name azure 函数接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EmailReceiver

名称 说明
emailAddress 此接收方的电子邮件地址。 字符串 (必需)
name 电子邮件接收方的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EventHubReceiver

名称 说明
eventHubName 特定事件中心队列的名称 字符串 (必需)
eventHubNameSpace 事件中心命名空间 字符串 (必需)
name 事件中心接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
subscriptionId 包含此事件中心的订阅的 ID 字符串 (必需)
tenantId 包含此事件中心的订阅的租户 ID 字符串
useCommonAlertSchema 指示是否使用通用警报架构。 bool

ItsmReceiver

名称 说明
connectionId 在上述工作区中定义的多个之间唯一标识 ITSM 连接。 字符串 (必需)
name Itsm 接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
region 工作区所在的区域。 支持的值:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' 字符串 (必需)
ticketConfiguration 用于 ITSM 操作配置的 JSON Blob。 CreateMultipleWorkItems 选项也将是此 Blob 的一部分。 字符串 (必需)
workspaceId OMS LA 实例标识符。 字符串 (必需)

LogicAppReceiver

名称 说明
callbackUrl http 请求发送到的回调 URL。 字符串 (必需)
name 逻辑应用接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
ResourceId 逻辑应用接收器的 azure 资源 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

SmsReceiver

名称 说明
countryCode 短信接收方的国家/地区代码。 字符串 (必需)
name 短信接收方的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
phoneNumber 短信接收方的电话号码。 字符串 (必需)

VoiceReceiver

名称 说明
countryCode 语音接收器的国家/地区代码。 字符串 (必需)
name 语音接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
phoneNumber 语音接收器的电话号码。 字符串 (必需)

WebhookReceiver

名称 说明
identifierUri 指示 aad 身份验证的标识符 URI。 字符串
name Webhook 接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
objectId 指示用于 aad 身份验证的 Webhook 应用对象 ID。 字符串
serviceUri 应在其中发送 Webhook 的 URI。 字符串 (必需)
tenantId 指示 aad auth 的租户 ID。 字符串
useAadAuth 指示是否使用 AAD 身份验证。 bool
useCommonAlertSchema 指示是否使用通用警报架构。 bool

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
BrowserBox Azure Edition

部署到 Azure
此模板在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。
可缩放的 Umbraco CMS Web 应用

部署到 Azure
此模板提供了一种在 Azure 应用服务 Web 应用 上部署 umbraco CMS Web 应用的简单方法。
具有 NAT 网关和应用程序网关的 AKS 群集

部署到 Azure
此示例演示如何使用 NAT 网关部署 AKS 群集进行出站连接,为入站连接部署应用程序网关。
企业治理 - AppService、SQL DB、AD、OMS、Runbook

部署到 Azure
企业云采用(无论大小)都需要负责任且高效的治理模型才能从其云部署中获取价值。 CloudWise (解决方案) 的代号,是 Azure 合作伙伴快速入门中提供的复合解决方案,是客户、系统集成商和合作伙伴的采用支持者,可提供可自助的自动化治理和运营解决方案,重点是优化成本、提高应用程序 () 可靠性、降低业务风险。 该解决方案突出了可见性和控制的核心治理支柱。
动态 Web 测试创建

部署到 Azure
创建任意数量的 App Insights Web (ping) 测试。
在 Azure 上创建新的操作组

部署到 Azure
此模板在 Azure 上创建新的操作组,然后可以使用此操作组在 Azure 上配置警报。
部署自动缩放活动日志警报

部署到 Azure
此模板允许部署一个简单的警报,该警报使用操作组为 Azure 活动日志中的任何自动缩放记录发送电子邮件通知
部署自动缩放失败的活动日志警报

部署到 Azure
此模板允许部署一个简单的警报,该警报使用操作组为 Azure 活动日志中任何失败的自动缩放记录发送电子邮件通知
部署服务运行状况警报

部署到 Azure
此模板允许部署简单的警报,该警报使用操作组为 Azure 活动日志中的任何服务运行状况记录发送电子邮件通知
部署 Application Insight 并在其中创建警报

部署到 Azure
此模板允许部署 Application Insight 并在其中创建警报
创建 Azure 服务警报

部署到 Azure
此模板创建一个 Azure 服务运行状况警报,该警报可以选择在发生 azure 服务中断时向服务管理员发送电子邮件和指定的电子邮件地址。
使用 Azure Monitor 设置备份警报通知

部署到 Azure
使用此模板,可以通过部署警报处理规则和操作组,使用 Azure Monitor 为恢复服务保管库设置电子邮件通知

ARM 模板资源定义

actionGroups 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

注解

有关部署监视解决方案的指南,请参阅 使用 Bicep 创建监视资源

资源格式

若要创建 Microsoft.Insights/actionGroups 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Insights/actionGroups",
  "apiVersion": "2023-01-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "armRoleReceivers": [
      {
        "name": "string",
        "roleId": "string",
        "useCommonAlertSchema": "bool"
      }
    ],
    "automationRunbookReceivers": [
      {
        "automationAccountId": "string",
        "isGlobalRunbook": "bool",
        "name": "string",
        "runbookName": "string",
        "serviceUri": "string",
        "useCommonAlertSchema": "bool",
        "webhookResourceId": "string"
      }
    ],
    "azureAppPushReceivers": [
      {
        "emailAddress": "string",
        "name": "string"
      }
    ],
    "azureFunctionReceivers": [
      {
        "functionAppResourceId": "string",
        "functionName": "string",
        "httpTriggerUrl": "string",
        "name": "string",
        "useCommonAlertSchema": "bool"
      }
    ],
    "emailReceivers": [
      {
        "emailAddress": "string",
        "name": "string",
        "useCommonAlertSchema": "bool"
      }
    ],
    "enabled": "bool",
    "eventHubReceivers": [
      {
        "eventHubName": "string",
        "eventHubNameSpace": "string",
        "name": "string",
        "subscriptionId": "string",
        "tenantId": "string",
        "useCommonAlertSchema": "bool"
      }
    ],
    "groupShortName": "string",
    "itsmReceivers": [
      {
        "connectionId": "string",
        "name": "string",
        "region": "string",
        "ticketConfiguration": "string",
        "workspaceId": "string"
      }
    ],
    "logicAppReceivers": [
      {
        "callbackUrl": "string",
        "name": "string",
        "resourceId": "string",
        "useCommonAlertSchema": "bool"
      }
    ],
    "smsReceivers": [
      {
        "countryCode": "string",
        "name": "string",
        "phoneNumber": "string"
      }
    ],
    "voiceReceivers": [
      {
        "countryCode": "string",
        "name": "string",
        "phoneNumber": "string"
      }
    ],
    "webhookReceivers": [
      {
        "identifierUri": "string",
        "name": "string",
        "objectId": "string",
        "serviceUri": "string",
        "tenantId": "string",
        "useAadAuth": "bool",
        "useCommonAlertSchema": "bool"
      }
    ]
  }
}

属性值

actionGroups

名称 说明 Value
type 资源类型 'Microsoft.Insights/actionGroups'
apiVersion 资源 API 版本 '2023-01-01'
name 资源名称 字符串 (必需)

字符限制:1-260

有效字符:
不得使用:
:<>+/&%\? 或控制字符

不得以空格或句点结尾。
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
properties 操作对资源的属性进行分组。 ActionGroup

ActionGroup

名称 说明
armRoleReceivers 属于此操作组的 ARM 角色接收器的列表。 角色是 Azure RBAC 角色,仅支持内置角色。 ArmRoleReceiver[]
automationRunbookReceivers 属于此操作组的 AutomationRunbook 接收器的列表。 AutomationRunbookReceiver[]
azureAppPushReceivers 属于此操作组的 AzureAppPush 接收器的列表。 AzureAppPushReceiver[]
azureFunctionReceivers 属于此操作组的 Azure 函数接收器的列表。 AzureFunctionReceiver[]
emailReceivers 属于此操作组的电子邮件收件人的列表。 EmailReceiver[]
enabled 指示是否启用此操作组。 如果未启用操作组,则其任何接收方都不会接收通信。 需要 bool ()
eventHubReceivers 属于此操作组的事件中心接收器的列表。 EventHubReceiver[]
groupShortName 操作组的短名称。 这将在短信中使用。 字符串 (必需)

约束:
最大长度 = 12
itsmReceivers 属于此操作组的 ITSM 接收器的列表。 ItsmReceiver[]
logicAppReceivers 属于此操作组的逻辑应用接收器的列表。 LogicAppReceiver[]
smsReceivers 属于此操作组的短信接收方列表。 SmsReceiver[]
voiceReceivers 属于此操作组的语音接收器列表。 VoiceReceiver[]
webhookReceivers 属于此操作组的 Webhook 接收器的列表。 WebhookReceiver[]

ArmRoleReceiver

名称 说明
name arm 角色接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
roleId arm 角色 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

AutomationRunbookReceiver

名称 说明
automationAccountId 保存此 Runbook 并向 Azure 资源进行身份验证的 Azure 自动化帐户 ID。 字符串 (必需)
isGlobalRunbook 指示此实例是否为全局 Runbook。 bool (必需)
name 指示 Webhook 的名称。 string
RunbookName 此 Runbook 的名称。 字符串 (必需)
serviceUri 应在其中发送 Webhook 的 URI。 字符串
useCommonAlertSchema 指示是否使用通用警报架构。 bool
webhookResourceId 链接到此 Runbook 的 Webhook 的资源 ID。 字符串 (必需)

AzureAppPushReceiver

名称 说明
emailAddress 为 Azure 移动应用注册的电子邮件地址。 字符串 (必需)
name Azure 移动应用推送接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)

AzureFunctionReceiver

名称 说明
functionAppResourceId 函数应用的 azure 资源 ID。 字符串 (必需)
functionName 函数应用中的函数名称。 字符串 (必需)
httpTriggerUrl http 请求发送到的 http 触发器 URL。 字符串 (必需)
name azure 函数接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EmailReceiver

名称 说明
emailAddress 此接收方的电子邮件地址。 字符串 (必需)
name 电子邮件接收方的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EventHubReceiver

名称 说明
eventHubName 特定事件中心队列的名称 字符串 (必需)
eventHubNameSpace 事件中心命名空间 字符串 (必需)
name 事件中心接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
subscriptionId 包含此事件中心的订阅的 ID 字符串 (必需)
tenantId 包含此事件中心的订阅的租户 ID string
useCommonAlertSchema 指示是否使用通用警报架构。 bool

ItsmReceiver

名称 说明
connectionId 在上述工作区中定义的多个之间唯一标识 ITSM 连接。 字符串 (必需)
name Itsm 接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
region 工作区所在的区域。 支持的值:'centralindia'、'japaneast'、'southeastasia'、'australiasoutheast'、'uksouth'、'westcentralus'、'canadacentral'、'eastus'、'westeurope' 字符串 (必需)
ticketConfiguration ITSM 操作配置的 JSON Blob。 CreateMultipleWorkItems 选项也将是此 Blob 的一部分。 字符串 (必需)
workspaceId OMS LA 实例标识符。 字符串 (必需)

LogicAppReceiver

名称 说明
callbackUrl http 请求发送到的回调 URL。 字符串 (必需)
name 逻辑应用接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
ResourceId 逻辑应用接收器的 azure 资源 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

SmsReceiver

名称 说明
countryCode 短信接收方的国家/地区代码。 字符串 (必需)
name 短信接收方的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
phoneNumber 短信接收方的电话号码。 字符串 (必需)

VoiceReceiver

名称 说明
countryCode 语音接收器的国家/地区代码。 字符串 (必需)
name 语音接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
phoneNumber 语音接收器的电话号码。 字符串 (必需)

WebhookReceiver

名称 说明
identifierUri 指示 aad 身份验证的标识符 URI。 字符串
name Webhook 接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
objectId 指示 aad 身份验证的 Webhook 应用对象 ID。 字符串
serviceUri 应在其中发送 Webhook 的 URI。 字符串 (必需)
tenantId 指示 aad 身份验证的租户 ID。 字符串
useAadAuth 指示是否使用 AAD 身份验证。 bool
useCommonAlertSchema 指示是否使用通用警报架构。 bool

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
BrowserBox Azure Edition

部署到 Azure
此模板在 Azure Ubuntu Server 22.04 LTS、Debian 11 或 RHEL 8.7 LVM VM 上部署 BrowserBox。
可缩放的 Umbraco CMS Web 应用

部署到 Azure
此模板提供了一种在 Azure 应用服务 Web 应用 上部署 umbraco CMS Web 应用的简单方法。
具有 NAT 网关和应用程序网关的 AKS 群集

部署到 Azure
此示例演示如何使用 NAT 网关部署 AKS 群集进行出站连接,为入站连接部署应用程序网关。
企业治理 - AppService、SQL DB、AD、OMS、Runbook

部署到 Azure
企业云采用(无论大小)都需要负责任且高效的治理模型才能从其云部署中获取价值。 CloudWise (解决方案) 的代号,是 Azure 合作伙伴快速入门中提供的复合解决方案,是客户、系统集成商和合作伙伴的采用支持者,可提供可自助的自动化治理和运营解决方案,重点是优化成本、提高应用程序 () 可靠性、降低业务风险。 该解决方案突出了可见性和控制的核心治理支柱。
动态 Web 测试创建

部署到 Azure
创建任意数量的 App Insights Web (ping) 测试。
在 Azure 上创建新的操作组

部署到 Azure
此模板在 Azure 上创建新的操作组,然后可以使用此操作组在 Azure 上配置警报。
部署自动缩放活动日志警报

部署到 Azure
此模板允许部署一个简单的警报,该警报使用操作组为 Azure 活动日志中的任何自动缩放记录发送电子邮件通知
部署自动缩放失败的活动日志警报

部署到 Azure
此模板允许部署一个简单的警报,该警报使用操作组为 Azure 活动日志中任何失败的自动缩放记录发送电子邮件通知
部署服务运行状况警报

部署到 Azure
此模板允许部署简单的警报,该警报使用操作组为 Azure 活动日志中的任何服务运行状况记录发送电子邮件通知
部署 Application Insight 并在其中创建警报

部署到 Azure
此模板允许部署 Application Insight 并在其中创建警报
创建 Azure 服务警报

部署到 Azure
此模板创建一个 Azure 服务运行状况警报,该警报可以选择在发生 azure 服务中断时向服务管理员发送电子邮件和指定的电子邮件地址。
使用 Azure Monitor 设置备份警报通知

部署到 Azure
使用此模板,可以通过部署警报处理规则和操作组,使用 Azure Monitor 为恢复服务保管库设置电子邮件通知

Terraform (AzAPI 提供程序) 资源定义

actionGroups 资源类型可以使用面向以下对象的操作进行部署:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Insights/actionGroups 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Insights/actionGroups@2023-01-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      armRoleReceivers = [
        {
          name = "string"
          roleId = "string"
          useCommonAlertSchema = bool
        }
      ]
      automationRunbookReceivers = [
        {
          automationAccountId = "string"
          isGlobalRunbook = bool
          name = "string"
          runbookName = "string"
          serviceUri = "string"
          useCommonAlertSchema = bool
          webhookResourceId = "string"
        }
      ]
      azureAppPushReceivers = [
        {
          emailAddress = "string"
          name = "string"
        }
      ]
      azureFunctionReceivers = [
        {
          functionAppResourceId = "string"
          functionName = "string"
          httpTriggerUrl = "string"
          name = "string"
          useCommonAlertSchema = bool
        }
      ]
      emailReceivers = [
        {
          emailAddress = "string"
          name = "string"
          useCommonAlertSchema = bool
        }
      ]
      enabled = bool
      eventHubReceivers = [
        {
          eventHubName = "string"
          eventHubNameSpace = "string"
          name = "string"
          subscriptionId = "string"
          tenantId = "string"
          useCommonAlertSchema = bool
        }
      ]
      groupShortName = "string"
      itsmReceivers = [
        {
          connectionId = "string"
          name = "string"
          region = "string"
          ticketConfiguration = "string"
          workspaceId = "string"
        }
      ]
      logicAppReceivers = [
        {
          callbackUrl = "string"
          name = "string"
          resourceId = "string"
          useCommonAlertSchema = bool
        }
      ]
      smsReceivers = [
        {
          countryCode = "string"
          name = "string"
          phoneNumber = "string"
        }
      ]
      voiceReceivers = [
        {
          countryCode = "string"
          name = "string"
          phoneNumber = "string"
        }
      ]
      webhookReceivers = [
        {
          identifierUri = "string"
          name = "string"
          objectId = "string"
          serviceUri = "string"
          tenantId = "string"
          useAadAuth = bool
          useCommonAlertSchema = bool
        }
      ]
    }
  })
}

属性值

actionGroups

名称 说明 Value
type 资源类型 “Microsoft.Insights/actionGroups@2023-01-01”
name 资源名称 字符串 (必需)

字符限制:1-260

有效字符:
不得使用:
:<>+/&%\? 或控制字符

不得以空格或句点结尾。
location 资源位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记 标记名称和值的字典。
properties 操作对资源的属性进行分组。 ActionGroup

ActionGroup

名称 说明
armRoleReceivers 属于此操作组的 ARM 角色接收器的列表。 角色是 Azure RBAC 角色,仅支持内置角色。 ArmRoleReceiver[]
automationRunbookReceivers 属于此操作组的 AutomationRunbook 接收器的列表。 AutomationRunbookReceiver[]
azureAppPushReceivers 属于此操作组的 AzureAppPush 接收器的列表。 AzureAppPushReceiver[]
azureFunctionReceivers 属于此操作组的 azure 函数接收器的列表。 AzureFunctionReceiver[]
emailReceivers 属于此操作组的电子邮件收件人的列表。 EmailReceiver[]
enabled 指示是否启用此操作组。 如果未启用操作组,则其接收方不会接收通信。 bool (必需)
eventHubReceivers 属于此操作组的事件中心接收器的列表。 EventHubReceiver[]
groupShortName 操作组的短名称。 这将在短信中使用。 字符串 (必需)

约束:
最大长度 = 12
itsmReceivers 属于此操作组的 ITSM 接收器的列表。 ItsmReceiver[]
logicAppReceivers 属于此操作组的逻辑应用接收器的列表。 LogicAppReceiver[]
smsReceivers 属于此操作组的短信接收方列表。 SmsReceiver[]
voiceReceivers 属于此操作组的语音接收器列表。 VoiceReceiver[]
webhookReceivers 属于此操作组的 Webhook 接收器的列表。 WebhookReceiver[]

ArmRoleReceiver

名称 说明
name arm 角色接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)
roleId arm 角色 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

AutomationRunbookReceiver

名称 说明
automationAccountId 保存此 Runbook 并向 Azure 资源进行身份验证的 Azure 自动化帐户 ID。 字符串 (必需)
isGlobalRunbook 指示此实例是否为全局 Runbook。 bool (必需)
name 指示 Webhook 的名称。 字符串
RunbookName 此 Runbook 的名称。 字符串 (必需)
serviceUri 应在其中发送 Webhook 的 URI。 string
useCommonAlertSchema 指示是否使用通用警报架构。 bool
webhookResourceId 链接到此 Runbook 的 Webhook 的资源 ID。 字符串 (必需)

AzureAppPushReceiver

名称 说明
emailAddress 为 Azure 移动应用注册的电子邮件地址。 字符串 (必需)
name Azure 移动应用推送接收器的名称。 名称在操作组内的所有接收器中必须是唯一的。 字符串 (必需)

AzureFunctionReceiver

名称 说明
functionAppResourceId 函数应用的 azure 资源 ID。 字符串 (必需)
functionName 函数应用中的函数名称。 字符串 (必需)
httpTriggerUrl http 请求发送到的 http 触发器 URL。 字符串 (必需)
name azure 函数接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EmailReceiver

名称 说明
emailAddress 此接收方的电子邮件地址。 字符串 (必需)
name 电子邮件接收方的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

EventHubReceiver

名称 说明
eventHubName 特定事件中心队列的名称 字符串 (必需)
eventHubNameSpace 事件中心命名空间 字符串 (必需)
name 事件中心接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
subscriptionId 包含此事件中心的订阅的 ID 字符串 (必需)
tenantId 包含此事件中心的订阅的租户 ID string
useCommonAlertSchema 指示是否使用通用警报架构。 bool

ItsmReceiver

名称 说明
connectionId 在上述工作区中定义的多个之间唯一标识 ITSM 连接。 字符串 (必需)
name Itsm 接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
region 工作区所在的区域。 支持的值:'centralindia'、'japaneast'、'southeastasia'、'australiasoutheast'、'uksouth'、'westcentralus'、'canadacentral'、'eastus'、'westeurope' 字符串 (必需)
ticketConfiguration ITSM 操作配置的 JSON Blob。 CreateMultipleWorkItems 选项也将是此 Blob 的一部分。 字符串 (必需)
workspaceId OMS LA 实例标识符。 字符串 (必需)

LogicAppReceiver

名称 说明
callbackUrl http 请求发送到的回调 URL。 字符串 (必需)
name 逻辑应用接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
ResourceId 逻辑应用接收器的 azure 资源 ID。 字符串 (必需)
useCommonAlertSchema 指示是否使用通用警报架构。 bool

SmsReceiver

名称 说明
countryCode 短信接收方的国家/地区代码。 字符串 (必需)
name 短信接收方的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
phoneNumber 短信接收方的电话号码。 字符串 (必需)

VoiceReceiver

名称 说明
countryCode 语音接收器的国家/地区代码。 字符串 (必需)
name 语音接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
phoneNumber 语音接收器的电话号码。 字符串 (必需)

WebhookReceiver

名称 说明
identifierUri 指示 aad 身份验证的标识符 URI。 string
name Webhook 接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。 字符串 (必需)
objectId 指示 aad 身份验证的 Webhook 应用对象 ID。 string
serviceUri 应在其中发送 Webhook 的 URI。 字符串 (必需)
tenantId 指示 aad 身份验证的租户 ID。 字符串
useAadAuth 指示是否使用 AAD 身份验证。 bool
useCommonAlertSchema 指示是否使用通用警报架构。 bool