Using Service Bus Explorer to manage and test Service Bus Queues, topics, relays, event hubs and notification hubs

Azure Service Bus

Azure Service bus is a highly scalable service that helps achieving asynchronous messaging and exchanging data among decoupled systems. The purpose of this service is to make Integration reliable and highly available with the help of message queuing. It is a Platform as a Service (PaaS) offering from Microsoft azure. You can refer my article “Windows Azure Service Bus Brokered Messaging to read Service Bus into details. This article focuses on administer and monitor service bus namespace and messages without writing code, with the help of Service Bus Explorer tool, written by Paolo Salvatori.

Service Bus Explorer

Service Bus Explorer is the tool that allows you to connect to Azure Service Bus and administer messaging entities much quickly and easily. It can be used with Service Bus managed namespaces hosted by both Azure and Windows Server. The tool provides great features including import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.

The tool has been written in C# and requires .NET Framework 4.0 and Windows Azure SDK for .NET.

You can download the tool here. This is direct executable without any installation required. Once you download the tool you run “ServiceBusExplorer.exe” to use.

In the Service Bus Explorer go to File à Connect (or press Ctrl + N).

SBE_home

This will open a Connect window where you may chose to manually enter a connection string or choose from pre-saved connection strings of service bus.

SBE_connect

To Save a Connection string, you have to edit “ServiceBusExplorer.exe.config” file in notepad, visual studio or any other editor of your choice. Screenshot below shows the location to add service bus connection string in config file, opened in Visual Studio.

SBE_config

You may also choose from list of entities to be connected to – Queues, Topics, Event Hubs, Notification Hubs and Relays.

SBE_Selection

Or Add Filter to select entities that fulfil desired conditions.

SBE_Filter

After Connecting to your Namespace, you would be able to perform multiple operations w.r.t. Entities such as

  1. Create and delete Queues/Topics
  2. Create and delete Subscriptions
  3. Enable/Disable Queues/Topics
  4. Filter and Refresh Queues/Topics
  5. Export Queues/Topics
  6. Rename Queues/Topics
  7. Copy URL
  8. Send, Receive and Delete Messages.
  9. Accessing Dead Letter Queue

And many more.

To Receive Message, Select the Entity and click Messages

SBE_ReceiveMessages

In the Dialog box select the Receive mode, No of messages and Message Inspector (optional) to receive the messages.

SBE_Message

This will open the list of messages where you can double click on a message to view message details.

SBE_MessageDetails

Service Bus Explorer also provides a lot of advanced option and metrices for each message operations.

SBE_Advanced

You can play around to explore Service Bus Explorer Further or you may also refer MSDN Article Service Bus Explorer to get into its detailed features.

Source Code

The source code of the tool is publicly available on GitHub.

 

Also Read: Export and Import entities with set configurations and Authorization Rules using Servicebus Explorer

Advertisements

Written by Varun Kumar

Varun works with Microsoft as a Cloud Consultant. He comes with 10+ years of experience into Consultant, Solution Architect, and Delivery Management roles. As a Consultant in Microsoft, his job is to design, develop and deploy enterprise level solutions using Azure, to help organizations to achieve more.

5 comments

  1. Hello sir, i came across your post. it is awesome.
    I was trying to send a message to the topic from service bus explorer, but i am not able to do that as it shows error that “bad request-400 “. Can you help me out to send a message successfully.

    I will be grateful to you for your kindness.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: