分享方式:


透過入口網站訂閱事件

本文說明如何透過入口網站建立事件方格訂閱。

建立事件訂閱

若要針對任何一個支援的事件來源建立事件方格訂閱,請使用下列步驟。 本文示範如何建立適用於 Azure 訂用帳戶的事件方格訂閱。

  1. 選取 [所有服務]

    Screenshot that shows the Azure portal with All Services selected on the left menu.

  2. 搜尋事件方格訂閱,然後從可用的選項中選取它。

    Screenshot that shows Event Grid Subscription in the search box in the Azure portal.

  3. 選取 [+ 事件訂用帳戶]

    Screenshot that shows the select of Add Event Subscription menu on the Event Grid Subscriptions page.

  4. 在 [建立事件訂閱] 頁面上,遵循下列步驟:

    1. 輸入事件訂閱的名稱。

    2. 選取您要在其中建立訂用帳戶的事件來源類型 (主題類型)。 例如,若要訂閱 Azure 儲存體帳戶的事件,請選取 [儲存體帳戶]

      Screenshot that shows the Create Event Subscription page.

    3. 選取包含 Azure 儲存體帳戶的 Azure 訂用帳戶。

    4. 選取具有儲存體帳戶的資源群組。

    5. 然後選取該儲存體帳戶。

      Screenshot that shows the Create Event Subscription page with the storage account selected.

  5. 選取您想要接收事件訂用帳戶的事件類型。

    Screenshot that shows the selection of event types.

  6. 提供有關事件訂閱的其他詳細資料,例如,用於處理事件的端點和訂閱名稱。

    Screenshot that shows the selection of an endpoint.

    注意

    • 如需支援的事件處理常式清單,請參閱事件處理常式
    • 如果您啟動了主題或網域的受控識別,則必須在目的地上將受控識別新增至適當的角色型存取控制 (RBAC) 角色,才能成功傳遞訊息。 如需詳細資訊,請參閱支援的目的地和 Azure 角色
  7. 若要啟用無效信件功能及自訂重試原則,請選取 [其他功能]

    Screenshot that shows the Additional features tab of the Create Event Subscription page.

  8. 完成後,請選取 [建立]

建立資源相關的訂閱

某些事件來源支援透過入口網站介面,針對該資源建立事件訂閱。 選取事件來源,並在左窗格中尋找事件

Screenshot that shows the Events option on the left menu of the Storage account page on the Azure portal.

入口網站會為您顯示用於建立與該來源相關之事件訂閱的選項。

下一步