Then click on (+) sign below to add another action In the search field, search for Microsoft Teams.
Select Microsoft Teams. Select Post message in a chat or channel from the list of actions and 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.
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. For example:
name:
Select Save. You’ve created a logic app that sends a Teams message to the specified group, with details from the alert that triggered it.
The next step is to create an action group to trigger your logic app.
Go to the Azure Monitor page and select Alerts from the pane on the left.
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.
Set Enable common alert schema to Yes. If you select No, the alert type determines which alert schema is used. For more information about alert schemas
Select OK.
Enter a name in the Name field.
Select Review + create > Create.
Now add this action group in your alert rule you will get teams notification whel alert rule is triggered.
2
Answers
I suggest you the following tutorial to set up alerts in your Azure Data Factory.
https://azure.microsoft.com/en-us/blog/create-alerts-to-proactively-monitor-your-data-factory-pipelines/
If you click New Alert Rule, you can create different alerts depending on the event and the severity level.
There are several different option to be notified
EDIT:
Regarding the teams notifications, here is a tutorial about how to set up a notifications channel (creating a pipeline).
https://learn.microsoft.com/en-us/azure/data-factory/how-to-send-notifications-to-teams?tabs=data-factory
Looking the MS docs, do not seem to have a plug and play integration as emails or sms…
In alert rule actions there is no direct way, but you can Customize alert notifications by using Logic Apps in alert’s action group.
You need to create a logic app the send message in group chat or in a channel
In the Logic Apps Designer page, select When a HTTP request is received.
Paste the common alert schema into the Request Body JSON Schema field from the following JSON:
JSON Sample:
Then click on (+) sign below to add another action In the search field, search for Microsoft Teams.
Select Microsoft Teams. Select Post message in a chat or channel from the list of actions and 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.
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. For example:
Select Save. You’ve created a logic app that sends a Teams message to the specified group, with details from the alert that triggered it.
The next step is to create an action group to trigger your logic app.
Go to the Azure Monitor page and select Alerts from the pane on the left.
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.
Set Enable common alert schema to Yes. If you select No, the alert type determines which alert schema is used. For more information about alert schemas
Select OK.
Enter a name in the Name field.
Now add this action group in your alert rule you will get teams notification whel alert rule is triggered.
Output: