azsb โ€“ Azure Service Bus CLI and terminal UI

Browse Azure Service Bus namespaces, queues, topics and subscriptions, peek and receive messages, and resend or retry dead-letter messages, all from your terminal.

dotnet tool install -g Net.Azure.ServiceBusConsole
az login
azsb
azsb showing an Azure Service Bus queue's messages with a JSON preview
The message browser: messages on top, the selected message's properties and JSON body below.

What it does

azsb listing Azure Service Bus queues with message and dead-letter counts
Queues with live counts; dead letters in red.

A Service Bus Explorer alternative for the terminal

The Azure portal's Service Bus Explorer and the standalone Service Bus Explorer app need a browser or Windows. azsb does the same day-to-day work (finding the queue with dead letters, reading why messages failed, sending them back) from any terminal, over SSH too, with the keyboard or the mouse.

azsb after retrying dead-letter messages back to their queue
Retrying dead-letter messages.

Questions

How do I browse Azure Service Bus messages from the command line?

Install azsb, run az login, then azsb. Pick a namespace, open a queue or subscription and peek its active or dead-letter messages. azsb -s "My subscription" -n my-namespace -o orders/dlq opens a dead-letter queue directly.

How do I retry dead-letter messages in Azure Service Bus?

Open the queue or subscription, switch to the dead-letter tab, select the messages and press Shift+R. On Standard and Premium namespaces each batch moves in one transaction.

Does azsb need a connection string?

No. It signs in with your Azure CLI login and also connects to the local Service Bus emulator.