Tool for resubmitting messages stuck in Azure Service Bus DLQ.
Usage:
.\asb-dlq-resubmit.exe -c <connection-string> -q <queue-name> [-mcr <max-concurrent-receivers> -mmb <max-messages-per-batch>]
The connection string for the Service Bus namespace.
The name of the queue to resubmit messages to. The DLQ will be automatically detected based on this value using this pattern: <queue-name>/$DeadLetterQueue
.
The default value for the maximum number of concurrent receivers is 1. This means that only one reciever will be processing at a time.
If you want to increase the number of concurrent receivers, you can use the -mcr
parameter.
The default value for the maximum number of messages per batch is 25. This means that each receiver will attempt to receive and re-submit 25 messages per batch.
If you want to increase the number of messages per batch, you can use the -mmb
parameter.
Progress will be displayed on the console, including the elapsed time, the number of messages moved, and the throughput: