robinmanuelthiel / servicebusspy

Inspect Azure Service Bus messages silently without touching them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

Inspect Azure Service Bus messages silently without touching them.

License:MIT License


Languages

Language:C# 100.0%