Configuring Alerts using LogAnalytics Work space Or Monitor

Srinivas B 1 Reputation point
2022-04-08T06:59:10.173+00:00

I'm trying to create alerts for pipeline success or failure using Log Analytics and Monitor.

  1. Unfortunately i am unable to place subject line for Notification which receive when alert fired.
  2. And for few alerts are not been fired and i didn't received any email notifications for those triggered pipelines.
  3. Any other ways that alert displays in a regular format we used to get previously (attaching image as sample 191215-your-azure-monitor-alert-was-triggered.pdf)
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,273 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sudipta Chakraborty - MSFT 1,111 Reputation points Microsoft Employee
    2022-04-08T07:34:37.55+00:00

    @Srinivas B :

    The new alert rule experience is a little different than the old experience.

    Please note these changes below:

    1) Previously, search results were included in the payloads of the triggered alert and its associated notifications. This was a limited and error prone solution. To get detailed context information about the alert so that you can decide on the appropriate action :
    o The recommended best practice it to use Dimensions (https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-unified-log#split-by-alert-dimensions). Dimensions provide the column value that fired the alert, giving you context for why the alert fired and how to fix the issue.
    o When you need to investigate in the logs, use the link in the alert to the search results in Logs.
    o If you need the raw search results or for any other advanced customizations, use Logic Apps.

    2) The new alert rule wizard does not support customization of the JSON payload.
    o Use custom properties in the new API (https://learn.microsoft.com/en-us/rest/api/monitor/scheduledqueryrule-2021-08-01/scheduled-query-rules/create-or-update#actions) to add static parameters and associated values to the webhook actions triggered by the alert.
    o For more advanced customizations, use Logic Apps.

    3) The new alert rule wizard does not support customization of the email subject.
    o Customers often use the custom email subject to indicate the resource on which the alert fired, instead of using the Log Analytics workspace. Use the new API (https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-unified-log#split-by-alert-dimensions) to trigger an alert of the desired resource using the resource id column.
    o For more advanced customizations, use Logic Apps.

    Reference:
    https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.