@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:
- In the Azure Sentinel portal, go to the Analytics section and select the analytics rule that you want to customize.
- Provide the necessary details for Alert rule details, Query, Alert Details.
- In the Add alert detail dialog box, select the Alert property that you want to customize.
- 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.
- Click on the Add button to add the alert detail.
- 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.