使用 Azure 门户配置资源运行状况警报Configure resource health alerts using Azure portal

本文演示如何使用 Azure 门户设置活动日志警报,用于通知资源运行状况。This article shows you how to set up activity log alerts for resource health notifications by using the Azure portal.

通过 Azure 资源运行状况可得知 Azure 资源的当前及历史运行状况。Azure Resource Health keeps you informed about the current and historical health status of your Azure resources. Azure 资源运行状况警报会在这些资源的运行状况发生变化时几乎实时地发出通知。Azure Resource Health alerts can notify you in near real-time when these resources have a change in their health status. 通过以编程方式创建资源运行状况警报,用户可以批量创建警报并对其进行自定义。Creating Resource Health alerts programmatically allow for users to create and customize alerts in bulk.

资源运行状况通知存储在 Azure 活动日志中。鉴于活动日志中存储的信息量可能很大,Azure 门户提供了一个单独的用户界面,让你可以更轻松地查看和设置有关资源运行状况通知的警报。Resource health notifications are stored in the Azure activity log Given the possibly large volume of information stored in the activity log, there is a separate user interface to make it easier to view and set up alerts on resource health notifications. 当 Azure 资源将资源运行状况通知发送到 Azure 订阅时,你可以收到警报。You can receive an alert when Azure resource sends resource health notifications to your Azure subscription. 可以基于以下内容配置警报:You can configure the alert based on:

  • 受影响的订阅。The subscription affected.
  • 受影响的资源类型。The resource(s) type(s) affected.
  • 受影响的资源组。The resource group(s) affected.
  • 受影响的资源。The resource(s) affected.
  • 受影响资源的事件状态。The event status(s) of the resource(s) affected.
  • 受影响资源的状态。The resource(s) affected statuses.
  • 受影响资源的原因类型。The reason(s) type(s) of the resource(s) affected.

还可以配置向其发送警报的人员:You also can configure who the alert should be sent to:

  • 选择现有操作组。Select an existing action group.
  • 创建新操作组(可以用于将来的警报)。Create a new action group (that can be used for future alerts).

若要了解有关操作组的详细信息,请参阅创建和管理操作组To learn more about action groups, see Create and manage action groups.

有关如何使用 Azure 资源管理器模板配置资源运行状况通知警报的信息,请参阅资源管理器模板For information on how to configure resource health notification alerts by using Azure Resource Manager templates, see Resource Manager templates. 使用 Azure 门户配置资源运行状况警报Resource Health Alert using Azure portal

使用 Azure 门户配置资源运行状况警报Resource Health Alert Using Azure Portal

  1. 在 Azure 门户中,选择“服务运行状况”。In the Azure portal, select Service Health .

    服务运行状况选择

  2. 在“资源运行状况”部分中,选择“服务运行状况”。In the Resource Health section, select Service Health .

  3. 选择“添加资源运行状况警报”,并填写相应字段。Select Add resource health alert and fill in the fields.

  4. 在“警报目标”下,选择要针对其发出警报的订阅、资源类型、资源组和资源。Under Alert target, select the Subscription , Resource Types , Resource Groups and Resource you want to be alerted for.

    “目标选择”选择

  5. 在“警报条件”下选择:Under alert condition select:

    1. 要针对其发出警报的事件状态。The Event Status you want to be alerted for. 事件的严重级别:活动、已解决、正在进行、已更新The severity level of the event: Active, Resolved, In Progress, Updated
    2. 要针对其发出警报的资源状态。The Resource Status you want to be alerted for. 事件的资源状态:可用、不可用、未知、已降级The resource status of the event: Available, Unavailable, Unknown, Degraded
    3. 要针对其发出警报的原因类型。The Reason Type you want to be alerted for. 事件发生原因:平台启动、用户启动警报条件选择 运行状况选择The cause of the event: Platform Initiated, User Initiated Alert condition selection Health Selection
  6. 在“定义警报详细信息”下提供以下详细信息:Under Define alert details, provide the following details:

    1. 警报规则名称 :新警报规则的名称。Alert rule name : The name for the new alert rule.
    2. 说明 :新警报规则的说明。Description : The description for the new alert rule.
    3. 将警报保存到资源组 :选择要在其中保存此新规则的资源组。Save alert to resource group : Select the resource group where you want to save this new rule.
  7. 在“操作组”下,从下拉菜单中指定要分配到此新警报规则的操作组。Under Action group , from the drop-down menu, specify the action group that you want to assign to this new alert rule. 或者,创建新的操作组并将其分配到新规则。Or, create a new action group and assign it to the new rule. 若要创建新组,请选择“+ 新建组”。To create a new group, select + New group .

  8. 若要在创建规则后启用规则,请选择“创建后启用规则”选项对应的“是”。 To enable the rules after you create them, select Yes for the Enable rule upon creation option.

  9. 选择“创建警报规则”。Select Create alert rule .

随即会为活动日志创建新的警报规则,并且窗口的右上角会显示一条确认消息。The new alert rule for the activity log is created, and a confirmation message appears in the upper-right corner of the window. 可以启用、禁用、编辑或删除规则。You can enable, disable, edit, or delete a rule. 详细了解如何管理活动日志规则Learn more about how to manage activity log rules.

后续步骤Next steps

了解有关资源运行状况的详细信息:Learn more about Resource Health:

创建服务运行状况警报:Create Service Health Alerts: