Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.57 KB

README.md

File metadata and controls

63 lines (44 loc) · 1.57 KB

NuGet

Azure Service Bus Spy

A simple command line tool to silently inspect Azure Service Bus messages without touching them.

As other existing tools like the Service Bus Explorer mostly run on Windows only, I descided to quickly write a cross-platform command line tool based on .NET Core to explore messages in Azure Service Bus.

Installation

Make sure to have at least .NET Core 2.1 installed on your machine.

dotnet tool install servicebusspy --global

Update or remove

# Update
dotnet tool update servicebusspy --global

# Remove
dotnet tool uninstall servicebusspy --global

Usage

List all messages of a queue

servicebusspy list 
  --queue "Test" \
  --connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING" \
  --verbose # optional

Add a message to a queue

servicebusspy add "Message Content" \
  --queue "Test" \
  --connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING"

Subscribe to new messages in a queue

servicebusspy subscribe 
  --queue "Test" \
  --connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING" \
  --verbose # optional

Delete (dead letters) all messages in a queue

servicebusspy clear 
  --queue "Test" \
  --connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING"