您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

在 Azure 门户中创建和管理器操作组Create and manage action groups in the Azure portal

概述Overview

操作组是由 Azure 订阅的所有者定义的通知首选项的集合。An action group is a collection of notification preferences defined by the owner of an Azure subscription. Azure Monitor 和服务运行状况警报使用操作组来通知用户某个警报已触发。Azure Monitor and Service Health alerts use action groups to notify users that an alert has been triggered. 各种警报可以使用相同的操作组或不同的操作组,具体取决于用户的要求。Various alerts may use the same action group or different action groups depending on the user's requirements. 可以在订阅中最多配置 2,000 个操作组。You may configure up to 2,000 action groups in a subscription.

当配置操作来通过电子邮件或短信通知某个人员时,该人员将收到确认,指出其已被添加到操作组。You configure an action to notify a person by email or SMS, they receive a confirmation indicating they have been added to the action group.

本文演示如何在 Azure 门户中创建和管理操作组。This article shows you how to create and manage action groups in the Azure portal.

每个操作包含以下属性:Each action is made up of the following properties:

  • 名称:操作组中的唯一标识符。Name: A unique identifier within the action group.
  • 操作类型:执行的操作。Action type: The action performed. 示例包括发送语音呼叫、短信、电子邮件,或者触发各种类型的自动化操作。Examples include sending a voice call, SMS, email; or triggering various types of automated actions. 请参阅本文下文中的“类型”。See types later in this article.
  • 详细信息:因“操作类型”而异的相应详细信息。 Details: The corresponding details that vary by action type.

有关如何使用 Azure 资源管理器模板以配置操作组的信息,请参阅操作组资源管理器模板For information on how to use Azure Resource Manager templates to configure action groups, see Action group Resource Manager templates.

使用 Azure 门户创建操作组Create an action group by using the Azure portal

  1. 门户中,选择“监视器” 。In the portal, select Monitor. “监视器” 窗格将所有监视设置和数据合并到一个视图中。The Monitor pane consolidates all your monitoring settings and data in one view.

    “监视”服务

  2. 选择警报然后选择管理操作Select Alerts then select Manage actions.

    管理操作按钮

  3. 选择“添加操作组” ,并填写字段。Select Add action group, and fill in the fields.

    “添加操作组”命令

  4. 在“操作组名称” 框中输入名称,然后在“短名称” 框中输入名称。Enter a name in the Action group name box, and enter a name in the Short name box. 使用此组发送通知时,短名称被用来代替完整的操作组名称。The short name is used in place of a full action group name when notifications are sent using this group.

    “添加操作组”对话框

  5. “订阅” 框会自动填充当前订阅。The Subscription box autofills with your current subscription. 此“订阅”是在其中保存操作组的订阅。This subscription is the one in which the action group is saved.

  6. 选择在其中保存操作组的“资源组” 。Select the Resource group in which the action group is saved.

  7. 定义一个操作列表。Define a list of actions. 为每个操作提供以下信息:Provide the following for each action:

    a.a. 名称:输入此操作的唯一标识符。Name: Enter a unique identifier for this action.

    b.b. 操作类型:选择电子邮件/短信/推送/语音、逻辑应用、Webhook、ITSM 或自动化 Runbook。Action Type: Select Email/SMS/Push/Voice, Logic App, Webhook, ITSM, or Automation Runbook.

    c.c. 详细信息:根据操作类型,输入电话号码、电子邮件地址、webhook URI、Azure 应用、ITSM 连接或自动化 runbook。Details: Based on the action type, enter a phone number, email address, webhook URI, Azure app, ITSM connection, or Automation runbook. 对于 ITSM 操作,另外指定 ITSM 工具需要的“工作项” 和其他字段。For ITSM Action, additionally specify Work Item and other fields your ITSM tool requires.

  8. 选择“确定” 创建操作组。Select OK to create the action group.

管理操作组Manage your action groups

创建操作组后,它会显示在“监视器” 边栏选项卡的“操作组” 部分中。After you create an action group, it's visible in the Action groups section of the Monitor pane. 选择要管理的操作组:Select the action group you want to manage to:

  • 添加、编辑或删除操作。Add, edit, or remove actions.
  • 删除操作组。Delete the action group.

特定于操作的信息Action specific information

备注

请参阅监视的订阅服务限制有关以下各项的每个数字限制。See Subscription Service Limits for Monitoring for numeric limits on each of the items below.

Azure 应用推送-一个操作组中可能有限的数量的 Azure 应用操作。Azure app Push - You may have a limited number of Azure app actions in an Action Group.

电子邮件 - 将从以下电子邮件地址发送电子邮件。Email - Emails will be sent from the following email addresses. 确保电子邮件筛选正确配置Ensure that your email filtering is configured appropriately

  • azure-noreply@microsoft.com
  • azureemail-noreply@microsoft.com
  • alerts-noreply@mail.windowsazure.com

一个操作组中可以存在有限数量的电子邮件操作。You may have a limited number of email actions in an Action Group. 请参阅速率限制信息一文See the rate limiting information article

ITSM -一个操作组中可能有限的数量的 ITSM 操作。ITSM - You may have a limited number of ITSM actions in an Action Group. ITSM 操作需要 ITSM 连接。ITSM Action requires an ITSM Connection. 了解如何创建 ITSM 连接Learn how to create an ITSM Connection.

逻辑应用 - 一个操作组中可以存在有限数量的逻辑应用操作。Logic App - You may have a limited number of Logic App actions in an Action Group.

Function App - 配置为操作的 Function App 的函数密钥通过函数 API 读取,这当前需要 v2 函数应用将应用设置“AzureWebJobsSecretStorageType”配置为“文件”。Function App - The function keys for Function Apps configured as actions are read through the Functions API, which currently requires v2 function apps to configure the app setting “AzureWebJobsSecretStorageType” to “files”. 有关详细信息,请参阅 Functions V2 中对密钥管理的更改For more information, see Changes to Key Management in Functions V2.

Runbook - 一个操作组中可以存在有限数量的 Runbook 操作。Runbook - You may have a limited number of Runbook actions in an Action Group. 有关 Runbook 有效负载的限制,请参考 Azure 订阅服务限制Refer to the Azure subscription service limits for limits on Runbook payloads.

短信 - 一个操作组中可以存在有限数量的短信操作。SMS - You may have a limited number of SMS actions in an Action Group. 有关其他重要信息,另请参阅速率限制信息短信警报行为Also see the rate limiting information and SMS alert behavior for additional important information.

语音 - 一个操作组中可以存在有限数量的语音操作。Voice - You may have a limited number of Voice actions in an Action Group. 请参阅速率限制信息一文。See the rate limiting information article.

Webhook - 一个操作组中可以存在有限数量的 Webhook 操作。Webhook - You may have a limited number of Webhook actions in an Action Group. Webhook 使用以下规则进行重试。Webhooks are retried using the following rules. 当返回的 HTTP 状态代码为 408、429、503、504 或者 HTTP 终结点未响应时,最多可以重试 2 次 Webhook 调用。The webhook call is retried a maximum of 2 times when the following HTTP status codes are returned: 408, 429, 503, 504 or the HTTP endpoint does not respond. 首次重试在 10 秒后发生。The first retry happens after 10 seconds. 第二次重试在 100 秒后发生。The second retry happens after 100 seconds. 在失败两次后,操作组在 30 分钟内不会再调用该终结点。After two failures, no action group will call the endpoint for 30 minutes.

源 IP 地址范围Source IP address ranges

  • 13.72.19.23213.72.19.232
  • 13.106.57.18113.106.57.181
  • 13.106.54.313.106.54.3
  • 13.106.54.1913.106.54.19
  • 13.106.38.14213.106.38.142
  • 13.106.38.14813.106.38.148
  • 13.106.57.19613.106.57.196
  • 52.244.68.11752.244.68.117
  • 52.244.65.13752.244.65.137
  • 52.183.31.052.183.31.0
  • 52.184.145.16652.184.145.166
  • 51.4.138.19951.4.138.199
  • 51.5.148.8651.5.148.86
  • 51.5.149.1951.5.149.19

若要接收有关这些 IP 地址更改的更新,我们建议你配置服务运行状况警报,以监视有关操作组服务的信息通知。To receive updates about changes to these IP addresses, we recommend you configure a Service Health alert, which monitors for Informational notifications about the Action Groups service.

后续步骤Next steps