View content of an Azure Service Bus queue

svb picture svb · Apr 6, 2012 · Viewed 33.3k times · Source

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?

Answer

Rob picture Rob · Jun 26, 2013

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();