Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Azure Alerts using webhook to Slack is not working

I'm using Azure Alerts to use webhooks. I added the webhook in the action group. The URL I used is the one from Slack.

I also added a Notification Type Email. The notification email gets triggered but I am not receiving any message in the Slack channel.

I was able to push messages to the webhooks using postman hence I know my webhook is correct. But Azure Alert is not able to trigger the webhook. I am not receiving any messages in the Slack channel.

like image 801
cam Avatar asked Oct 19 '25 15:10

cam


2 Answers

Slack expect a json object when using webhooks. When sending directly from azure alert you will get bad request.

Every slack channel has an e-mail adress. You can post messages to the channel using that email in azure alerts

like image 164
Rambech Avatar answered Oct 22 '25 07:10

Rambech


Azure Monitor sends a notification with its own schema definition. Slack doesn't recognize it, so you cannot see any notifications in the channel. It is possible to create a Logic App or Azure Function to transform the default schema.

Here the more information about it: https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-common-schema

like image 32
Igor Moiseev Avatar answered Oct 22 '25 07:10

Igor Moiseev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!