Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View content of an Azure Service Bus queue

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?

like image 616
svb Avatar asked Apr 06 '12 12:04

svb


People also ask

How do I read data from Azure Service Bus queue?

Create Azure Service Bus Queue using Azure Portal. Create HTTP trigger Azure Function to send the message into Queue. Create a Service Bus Queue trigger Azure function to read a message from Queue.

How do I view messages in Service Bus queue?

Peek a message With the peek functionality, you can use the Service Bus Explorer to view the top 100 messages in a queue, subscription or dead-letter queue. To peek messages, select Peek Mode in the Service Bus Explorer dropdown.

How do I get Azure Service Bus connection string?

In order to connect to Azure Service Bus go to Azure portal, open the Service Bus namespace you want, then go to: Settings -> Shared access policies -> RootManageSharedAccessKey -> Primary connection string.


2 Answers

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(); 
like image 127
Rob Avatar answered Sep 17 '22 23:09

Rob


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.

like image 28
Clemens Vasters Avatar answered Sep 18 '22 23:09

Clemens Vasters