通过门户订阅事件Subscribe to events through portal

本文介绍了如何通过门户创建事件网格订阅。This article describes how to create Event Grid subscriptions through the portal.

创建事件订阅Create event subscriptions

若要针对任何受支持的事件源创建事件网格订阅,请使用以下步骤。To create an Event Grid subscription for any of the supported event sources, use the following steps. 本文展示了如何为 Azure 订阅创建事件网格订阅。This article shows how to create an Event Grid subscription for an Azure subscription.

  1. 选择“所有服务” 。Select All services .

    选择所有服务

  2. 搜索“事件网格订阅” ,并从可用选项中选择它。Search for Event Grid Subscriptions and select it from the available options.

    屏幕截图显示了 Azure 门户中的“搜索”,其中已选择“事件网格订阅”。

  3. 选择“+ 事件订阅”。 Select + Event Subscription .

    添加订阅

  4. 选择要创建的订阅的类型。Select the type of subscription you want to create. 例如,若要订阅你的 Azure 订阅的事件,请选择“Azure 订阅” ,然后选择目标订阅。For example, to subscribe to events for your Azure subscription, select Azure Subscriptions and the target subscription.

    选择 Azure 订阅

  5. 为此订阅选择事件类型。Select the event types for this subscription.

    选择事件类型 Select event types

  6. 提供关于事件订阅的其他详细信息,例如,用于处理事件的终结点以及订阅名称。Provide additional details about the event subscription, such as the endpoint for handling events and a subscription name.

    此屏幕截图显示了“终结点详细信息”和“事件订阅详细信息”部分,其中已输入订阅名称值。

  7. 若要启用死信和自定义重试策略,请选择“其他功能” 。To enable dead lettering and customize retry policies, select Additional Features .

    选择其他功能

  8. 选择用于存储未传递事件的容器,并设置重试的发送方式。Select a container to use for storing events that aren't delivered, and set how retries are sent.

    启用死信并重试

  9. 完成后,选择“创建”。 When done, select Create .

创建关于资源的订阅Create subscription on resource

某些事件源支持通过该资源的门户界面创建事件订阅。Some event sources support creating an event subscription through the portal interface for that resource. 选择事件源,并在左窗格中查找“事件” 。Select the event source, and look for Events in left pane.

提供订阅详细信息

门户提供了用于创建与该源相关的事件订阅的选项。The portal presents you with options for creating an event subscription that is relevant to that source.

后续步骤Next steps