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?
36
votes
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 custom
– svb
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
6
votes
5
votes
4
votes
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