Azure Monitor - Alert Notification via Teams

Ram Babu 80 Reputation points
2024-04-03T06:34:20.78+00:00

Hi Team,

I got one article regarding alert notification via team using logic app. please see below link.

https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/azure-monitor-alert-notification-via-teams/ba-p/2507676

I want to configure alert notification in teams. Is this link still valid. Please have a look and advice how to configure this task in step by step.

I have a loads running into ADF and databricks. Those logs are stored in log analytics. i want to configure alert notification via teams. Please advise the solution.

Thanks

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,310 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,190 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,811 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 24,611 Reputation points MVP
    2024-04-03T07:38:34.5533333+00:00

    Hi,

    That is correct by default an action group does not support sending alert notifications directly to Teams thus you need to use automation tool like Logic App for example. You should use the article provided to create. Once you create the Logic App action groups provide the capability to test it so you can test if the notification appears in Teams correctly or the Logic App is failing. Note that the example is for alert of type Metric alert. You should use common alert schema and there is specific payload for Log Alerts v2 to provide information that is specific for Log Alerts v2. Here you can find another example of Logic app with Teams notification or Outlook e-mail. where the information is send to e-mail.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

  2. Amira Bedhiafi 25,946 Reputation points
    2024-04-03T07:51:10.98+00:00

    I am assuming based on the last update date that the article you provided is available and offers a detailed guide on setting up Azure Monitor alert notifications via Microsoft Teams using Azure Logic Apps.

    User's image

    It outlines a step-by-step process starting from creating a blank Logic App, configuring it to send alerts based on specific conditions, setting up an Action Group in Azure Monitor, and finally adding the new action group to your alert rules for monitoring.

    The process involves configuring HTTP requests, parsing JSON payloads, and formatting messages to be sent to Teams. It's essential to test the setup to ensure alerts are correctly received in Teams


  3. Pinaki Ghatak 4,610 Reputation points Microsoft Employee
    2024-05-07T14:25:28.5666667+00:00

    Hello @Ram babu

    Yes, the link you provided is still valid. It explains how to configure alert notifications via Teams using Azure Monitor and Logic Apps.

    Here are the steps to configure alert notifications via Teams using Azure Monitor and Logic Apps:

    1. Create a webhook in Azure Monitor. You can do this by going to the Azure Monitor page and selecting Alerts from the pane on the left. Then select Action groups > Create. Select values for Subscription, Resource group, and Region. Enter a name for Action group name and Display name. Select the Actions tab. On the Actions tab under Action type, select Webhook. Fill in the required parameters and select OK.
    2. Create a Logic Apps resource. You can do this by going to the Azure portal and selecting Create a resource. Search for Logic Apps and select Create. Fill in the required parameters and select Create.
    3. Configure the Logic App to send a message to Teams. You can do this by selecting the Logic App you created in step 2 and selecting Logic App Designer. Add a new step and search for Microsoft Teams. Select Post message in a chat or channel from the list of actions. Sign in to Teams when you're prompted to create a connection. Select User from the Post as dropdown. Select Group chat from the Post in dropdown. Select your group from the Group chat dropdown. Create the message text in the Message field by entering static text and including content taken from the alert payload by choosing fields from the Dynamic content list.
    4. Create an action group to trigger your Logic App. You can do this by going to the Azure Monitor page and selecting Alerts from the pane on the left. Then select Action groups > Create. Select values for Subscription, Resource group, and Region. Enter a name for Action group name and Display name. Select the Actions tab. On the Actions tab under Action type, select Logic App. In the Logic App section, select your Logic App from the dropdown.
    5. Create an alert rule. You can do this by going to the Azure Monitor page and selecting Alerts from the pane on the left. Then select New alert rule. Fill in the required parameters and select OK.

    That's it! Once you've completed these steps, you should receive alert notifications in Teams. Let me know if you have any questions or need further assistance.


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.