How to setup MS Teams notifications based on the error log from Azure SQL Database table?

Ron Zhong - Aug 27 - - Dev Community

To create a Power Automate flow that sends a Microsoft Teams message whenever a new row is inserted into an Azure SQL Database table, you can follow these steps:

Select the Power Automate template from Azure SQL Database instance.
Image description

Login both MS Teams and SQL Server:
Image description

You may login Azure SQL Database with Microsoft Entra ID
Image description

Add a trigger “When an item is created (V2)” for detecting new rows from particular data table

Image description

To apply Filter Query for only monitoring the data rows having value DATA_PUSH_FAILED
status eq 'DATA_PUSH_FAILED'

Add an action “Get an @mention token for a user” for getting a MS Teams user reference for the step 3
Image description

Add the 2nd action “Post message in a chat or channel“ for sending message to MS Teams group chat
Image description

After saving the workflow, we can test it.
Image description

Either through Manually adding new rows or Automatically use the last tests is fine.
Image description

Here we have already inserted some rows for testing.
Image description

Here is the outcome!!
Image description

p.s. Perhaps we could further learn from the team and on beautifying the template to make it more inspiring to protect the team from Alert Fatigue.

.
Terabox Video Player