How to send mail/alert when message moved to Dead Letter Queue (ASB DLQ)?

Viewed 1130

I am trying to send a mail alert when message passed to Azure Service Bus Dead Letter Queue. I did not find any proper solution to send mail alert. Can we process this in which side azure or .net core? if so can anyone help with the process

1 Answers

You can use the Azure Monitor for this. The ASB emits a metric "Count of dead-lettered messages in a Queue/Topic" (source) which you can create an alert on.

Here is an overview on how to set up the alert.

Step 1, create alert

enter image description here

Step 2, select signal

enter image description here

Next steps: configure thresholds and setup an action group to send an email.

Related