36
votes

I would like to see the messages (and their content) that are currently sitting in a queue waiting to be delivered. Does such a tool exist? Or should I write my own solution for this?

6
Does the Service Bus Explorer (code.msdn.microsoft.com/Service-Bus-Explorer-f2abca5a) allow you to view Service Bus queue messages? If not, the source code might provide a good base for adding queue message viewing.Jonathan McIntire
Currently the Service Bus Queue only displays the count of the messages present and the total Size of the Queue. You cannot view the content of the message (browse the queue) since the only way to do that is to dequeue the message. One approach could be to peeklock a message, see its content and then Abandon the message (or let the lock expire) but during the locked period other readers cannot see that message.Abhishek Lal
@jmac the Service Bus Explorer doesn't seem to be able to have a look at the messages, but the source code might indeed be a good starting place for something customsvb

6 Answers

30
votes

The new version of Service Bus Explorer supports browsing messages in a Queue without dequeueing them.

It makes use of the new Peek feature in Service Bus SDK 2.0

QueueClient queueClient = QueueClient.Create("myQ");
BrokeredMessage message = queueClient.Peek();
14
votes

We currently don't have a "browse" feature implemented for our queues that would allow you to do that. It's on the list of things to come.

6
votes

Azure Management Studio from Cerebrata also allows you to browse a service bus queue. Note that this is not free. The website is here:

http://www.cerebrata.com/

5
votes

Service bus explorer peek option allows you to view messages in the queue. Messages->Peek->MessageText enter image description here

4
votes

As of this writing, Service Bus Explorer lets you peek or receive messages in the queue.

0
votes

New service called CloudMonix from folks who created AzureWatch (and whom I'm affiliated with) can monitor contents of the "next" message in the ASB (or storage) queue and surface it for monitoring/alerting/scaling purposes