An open API service indexing awesome lists of open source software.

https://github.com/robinmanuelthiel/servicebusspy

Inspect Azure Service Bus messages silently without touching them.
https://github.com/robinmanuelthiel/servicebusspy

azure service-bus service-bus-queue

Last synced: 6 months ago
JSON representation

Inspect Azure Service Bus messages silently without touching them.

Awesome Lists containing this project

README

          

[![NuGet](https://img.shields.io/nuget/vpre/servicebusspy.svg)](https://www.nuget.org/packages/ServiceBusSpy)

# 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](https://github.com/paolosalvatori/ServiceBusExplorer) 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](https://dotnet.microsoft.com/download) installed on your machine.

```bash
dotnet tool install servicebusspy --global
```

### Update or remove

```bash
# Update
dotnet tool update servicebusspy --global

# Remove
dotnet tool uninstall servicebusspy --global
```

## Usage

### List all messages of a queue

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

### Add a message to a queue

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

### Subscribe to new messages in a queue

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

### Delete (dead letters) all messages in a queue

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