Customize Alert Rule Email

siddharth bansal 326 Reputation points
2023-09-29T11:21:05.75+00:00

I have created an alert rule based on a query , i want to send that query output in the alert email , how can i do it ?

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,285 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Monalla-MSFT 13,031 Reputation points
    2023-10-04T02:40:28.23+00:00

    @siddharth bansal - Thanks for reaching out to us.

    You can use Azure Sentinel or Azure Monitor to send the query output in the alert email.

    To do it using Azure Sentinel, please follow the below steps:

    1. In the Azure Sentinel portal, go to the Analytics section and select the analytics rule that you want to customize.
    2. Provide the necessary details for Alert rule details, Query, Alert Details.
    3. In the Add alert detail dialog box, select the Alert property that you want to customize.
    4. In the Alert property value field, you can use the @properties token to include the query output in the alert email. For example, if your query output includes a field called IPAddress, you can use the following syntax to include the IP address in the alert email: @properties.IPAddress.
    5. Click on the Add button to add the alert detail.
    6. When you have finished customizing your alert details, select the Create rule button.

    After you have customized the alert details, the query output will be included in the alert email when the alert is triggered.

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.


  2. Dillon Silzer 57,491 Reputation points
    2023-10-04T04:34:43.33+00:00

    On top of what Monalla mentioned, I'd recommend you taking a look at triggers and actions with playbooks:

    Use triggers and actions in Microsoft Sentinel playbooks

    https://zcusa.951200.xyz/en-us/azure/sentinel/playbook-triggers-actions

    Incident dynamic fields

    https://zcusa.951200.xyz/en-us/azure/sentinel/playbook-triggers-actions#incident-dynamic-fields

    Work with incidents - usage examples

    https://zcusa.951200.xyz/en-us/azure/sentinel/playbook-triggers-actions#work-with-incidents---usage-examples


    If this is helpful please accept answer.

    0 comments No comments

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.