ServiceBusToolset 1.5.0
dotnet tool install --global ServiceBusToolset --version 1.5.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local ServiceBusToolset --version 1.5.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ServiceBusToolset&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ServiceBusToolset --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ServiceBusToolset
A command-line tool for managing Azure Service Bus.
Installation
Global Tool (Recommended)
# Install from NuGet
dotnet tool install -g ServiceBusToolset
# Update to latest version
dotnet tool update -g ServiceBusToolset
# Install preview/alpha version
dotnet tool install -g ServiceBusToolset --prerelease
Build from Source
git clone https://github.com/kyurkchyan/ServiceBusToolset.git
cd ServiceBusToolset
dotnet build
Prerequisites
- .NET 10 SDK or later
- Azure CLI logged in (
az login)
Commands
| Command | Description |
|---|---|
| purge-dlq | Purge messages from a dead letter queue |
| resubmit-dlq | Resubmit messages from a dead letter queue back to the main queue |
| dump-dlq | Export DLQ messages to a JSON file |
| diagnose-dlq | Diagnose DLQ messages using Application Insights telemetry |
| monitor-queues | Monitor queue statistics in a live-updating console table |
| monitor-subscriptions | Monitor topic subscription statistics in a live-updating table |
Quick Start
# Purge all DLQ messages from a queue
sbtools purge-dlq -n mynamespace.servicebus.windows.net -q myqueue
# Interactive mode - select which message categories to purge
sbtools purge-dlq -n mynamespace.servicebus.windows.net -q myqueue -i
# Resubmit DLQ messages back to the main queue
sbtools resubmit-dlq -n mynamespace.servicebus.windows.net -q myqueue
# Interactive mode - select which message categories to resubmit
sbtools resubmit-dlq -n mynamespace.servicebus.windows.net -q myqueue -i
# Dump DLQ messages to a JSON file
sbtools dump-dlq -n mynamespace.servicebus.windows.net -q myqueue -o dlq-messages.json
# Interactive mode - select which message categories to dump
sbtools dump-dlq -n mynamespace.servicebus.windows.net -q myqueue -o dlq-messages.json -i
# Categorize by custom properties (system #Prop, body $Prop)
sbtools dump-dlq -n mynamespace.servicebus.windows.net -q myqueue -o dlq-messages.json -i \
--categorize-by "#DeadLetterReason,$ErrorCode"
# Diagnose DLQ messages using Application Insights
sbtools diagnose-dlq -n mynamespace.servicebus.windows.net -q myqueue \
-a "/subscriptions/.../resourceGroups/.../providers/microsoft.insights/components/my-app-insights"
# Monitor all queues with live-updating table
sbtools monitor-queues -n mynamespace.servicebus.windows.net
# Monitor queues matching a pattern with 10-second refresh
sbtools monitor-queues -n mynamespace.servicebus.windows.net -f "order-*" -r 10
# Monitor all topic subscriptions
sbtools monitor-subscriptions -n mynamespace.servicebus.windows.net
# Monitor subscriptions for specific topics with subscription filter
sbtools monitor-subscriptions -n mynamespace.servicebus.windows.net -t "orders*" -s "*-processor"
Note: If running from source instead of the global tool, replace
sbtoolswithdotnet run --in the commands above.
Authentication
Uses DefaultAzureCredential. For
local development, run az login.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 73 | 4/8/2026 |
| 1.4.0 | 108 | 3/12/2026 |
| 1.1.0-alpha.46 | 38 | 4/8/2026 |
| 1.0.0-alpha.47 | 44 | 4/8/2026 |
| 1.0.0-alpha.45 | 44 | 4/8/2026 |
| 1.0.0-alpha.43 | 43 | 4/3/2026 |
| 1.0.0-alpha.42 | 36 | 4/1/2026 |
| 1.0.0-alpha.41 | 36 | 4/1/2026 |
| 1.0.0-alpha.40 | 39 | 4/1/2026 |
| 1.0.0-alpha.39 | 38 | 4/1/2026 |
| 1.0.0-alpha.38 | 46 | 4/1/2026 |
| 1.0.0-alpha.37 | 44 | 3/21/2026 |
| 1.0.0-alpha.31 | 49 | 3/16/2026 |
| 1.0.0-alpha.30 | 43 | 3/12/2026 |
| 1.0.0-alpha.29 | 43 | 3/12/2026 |
| 1.0.0-alpha.25 | 44 | 3/12/2026 |
| 1.0.0-alpha.24 | 40 | 3/12/2026 |
| 1.0.0-alpha.23 | 48 | 3/12/2026 |
| 1.0.0-alpha.17 | 44 | 3/5/2026 |
| 1.0.0-alpha.16 | 42 | 2/25/2026 |
Loading failed