使用警示處理規則來管理 Azure Stack Edge 裝置上的警示通知

適用于: Yes for Pro GPU SKU Azure Stack Edge Pro - GPU Yes for Pro 2 SKU Azure Stack Edge Pro 2 Yes for Pro R SKU Azure Stack Edge Pro R Yes for Mini R SKU Azure Stack Edge Mini R

本文說明如何在Azure 入口網站中建立警示處理規則。 警示處理規則會觸發或隱藏資源群組、Azure 訂用帳戶或個別 Azure Stack Edge 資源內發生的裝置事件通知。

關於警示處理規則

警示處理規則可以將動作群組新增至警示通知。 使用警示通知喜好設定,例如電子郵件或簡訊,在觸發警示時通知使用者。

如需警示處理規則的詳細資訊,請參閱 警示處理規則 。 如需動作群組的詳細資訊,請參閱 在Azure 入口網站 中建立和管理動作群組。

建立警示處理規則

使用Azure 入口網站中的下列步驟,為您的 Azure Stack Edge 裝置建立警示處理規則。

注意

這些步驟會建立警示處理規則。 警示處理規則會將動作群組新增至警示通知。 如需建立警示處理規則以隱藏通知的詳細資訊,請參閱 警示處理規則

  1. 移至Azure 入口網站中的 Azure Stack Edge 裝置,然後選取 [警示 ] 功能表項目 (在 [監視] 底下 )。 然後選取 [ 警示處理規則 ]。

    Screenshot showing the Alerts page for an Azure Stack Edge resource. The Alert processing rules option is highlighted.

  2. 在 [ 警示處理規則] 頁面上,選取 [+ 建立 ] 以啟動 [ 建立警示處理規則 精靈]。

    Screenshot showing the Alert processing rules page for an Azure Stack Edge resource. The Plus Create rules option is highlighted.

  3. 在 [ 範圍] 頁面上,選取 [+ 選取範圍 ]。

    Screenshot showing the Scope menu in the Create an alert processing rule wizard for an Azure Stack Edge resource. The Plus Select scope option is highlighted.

  4. 選取 [訂用 帳戶 ],並選擇性地依 [資源類型 ] 進行篩選。 若要依 Azure Stack Edge 資源進行篩選,請選取 [Azure Stack Edge/ 資料箱閘道 的資源類型 ],如下列範例所示。

    Screenshot showing the Select a scope menu for an Azure Stack Edge resource. The Select subscription and Resource types dropdown menus are highlighted.

  5. [ 資源類型 ] 選項會根據您的選取專案列出可用的資源。 使用篩選選項來減少選項清單。 針對您想要使用的範圍選項選取 [核取方塊 ],然後選取 [ 套用 ]。

    Illustration of the Scope options for alert processing rule in Azure Stack Edge with the

  6. 您也可以使用 下列範例中的篩選 控制項,將選項清單縮減為所選範圍內警示的子集。

    Screenshot of the filter control to reduce the list of options for setting the scope for alert processing rules in Azure Stack Edge.

  7. 在 [新增篩選] 窗格的 [篩選 ] 底下 ,新增您想要套用的每個篩選。 針對每個篩選,選取 [篩選 類型]、 [運算子 ] 和 [ ]。

    如需篩選選項的清單,請參閱 篩選準則

    下列範例中的篩選會套用至嚴重性層級 2、3 和 4 的所有警示,而監視服務針對 Azure Stack Edge 資源所引發的警示。

    Screenshot of the filter criteria builder for an action rule in Azure Stack Edge.

  8. 在 [ 規則設定 ] 頁面上,選取 [ 套用動作群組 ] 以建立傳送通知的規則。

    選取 [ + 選取現有群組的動作群組 ] 或 [+ 建立動作群組] 的選項,以建立新的群組

    若要建立新的動作群組,請選取 [+ 建立動作群組 ],然後遵循警示處理規則 中的 步驟。

    注意

    如果您不想叫用警示的通知,請選取 [ 隱藏通知 ] 選項。 如需詳細資訊,請參閱 警示處理規則

    Screenshot of the rule setting options for rule type and action group options for an action rule in Azure Stack Edge.

  9. 在 [ 選取動作群組 ] 頁面上,選取最多五個動作群組以附加至警示處理規則,然後選擇 [ 選取 ]。

    新的警示處理規則會新增至動作群組的通知喜好設定。

    Screenshot of the Select action groups page for an action rule in Azure Stack Edge.

  10. 在 [ 詳細資料] 索引標籤上,將警示處理規則指派給 資源群組 ,然後為新規則指定 [名稱 ] 和 [描述 ] (選擇性)。

    預設會啟用新規則。 如果您不想立即開始使用規則, 請取消核取 [建立 時啟用規則] 選項。

    Screenshot of the Project details page for an alert processing rule in Azure Stack Edge. This page also shows Alert processing rule details.

  11. 若要繼續,請選取 [ 檢閱+建立 ]。

    Screenshot of the action group details for an alert processing rule in Azure Stack Edge.

  12. 檢閱您的選取專案,然後選取 [ 建立 ]。

    [ 警示處理規則 ] 頁面隨即啟動,但您可能不會立即看到新的規則。 預設檢視為 [所有 資源群組]。

  13. 若要檢視新的警示處理規則,請選取包含規則的資源群組。

    Screenshot of the Alert processing rules in Azure Stack Edge with the Resource groups filter highlighted.

檢視通知

當事件在警示處理規則範圍內觸發資源警示時,通知就會傳出。

警示處理規則的動作群組會決定接收通知的人員以及要傳送的通知類型。 您可以透過電子郵件、SMS 訊息或兩者來傳送通知。

觸發警示之後,可能需要幾分鐘的時間才能接收通知。

電子郵件通知看起來類似下列範例。

Screenshot showing a sample email notification for an action rule for an Azure Stack Edge resource.

下一步