38

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?

3
  • 3
    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. Apr 7, 2012 at 2:56
  • 1
    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. Apr 9, 2012 at 23:35
  • 1
    @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
    Apr 10, 2012 at 7:30

6 Answers 6

32

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();
2
  • This link seems no more relevant :(
    – boly38
    Oct 14, 2015 at 11:10
  • Jonathan link (one of the comment of the original question) seems better : download C# ; unzip it; then got to "bin/debug" directory
    – boly38
    Oct 14, 2015 at 11:16
13

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.

8
  • 19
    After reviewing both azure's queue and amazon sqs I'd say it would be nice if azure had the ability to view all messages (without impacting visibility) or a view that would allow deleting.. Nice for testing purposes.
    – lucuma
    Jun 27, 2012 at 20:37
  • 26
    Six years later and still nothing? Sep 6, 2018 at 18:38
  • 1
    I just went looking for this feature, but can't seem to find it. Sep 12, 2018 at 19:40
  • 3
    six years later, still can't even purge a queue from your UI. Why?
    – Ed S.
    Dec 13, 2018 at 17:49
  • 5
    @mababin: yeah, I eventually found that, but it's frustrating how useless the azure portal is. All sorts of fancy UI in comparison to e.g. AWS, but not even close when it comes to functionality.
    – Ed S.
    Jan 15, 2019 at 17:24
6

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

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

0
4

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

0

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

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.