surzyn
surzyn

Reputation: 151

Azure Service Bus - autoforwarding message from dead-letter queue to another queue

I know how to do autoforwarding from one queue to another but, I need to forward message from dead letter to another regular queue and I'm wondering if I can achieve that without any external application that will fetch those message and send it to queue.

Upvotes: 2

Views: 2371

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136196

I need to forward message from dead letter to another regular queue and I'm wondering if I can achieve that without any external application that will fetch those message and send it to queue.

Yes, you should be able to achieve it without any external application. When creating/updating a queue, you can specify the name of other queue or topic in the same namespace where dead letter messages will be forwarded automatically.

For example, if you're using Azure.Messaging.ServiceBus .Net SDK, you can make use of CreateQueueOptions.ForwardDeadLetteredMessagesTo property to configure this setting.

You should also be able to use New-AzServiceBusQueue or az servicebus queue create if you don't want to write the code.

Upvotes: 5

Related Questions