ServiceBusExplorer 1.0.1
dotnet add package ServiceBusExplorer --version 1.0.1
NuGet\Install-Package ServiceBusExplorer -Version 1.0.1
<PackageReference Include="ServiceBusExplorer" Version="1.0.1" />
<PackageVersion Include="ServiceBusExplorer" Version="1.0.1" />
<PackageReference Include="ServiceBusExplorer" />
paket add ServiceBusExplorer --version 1.0.1
#r "nuget: ServiceBusExplorer, 1.0.1"
#:package ServiceBusExplorer@1.0.1
#addin nuget:?package=ServiceBusExplorer&version=1.0.1
#tool nuget:?package=ServiceBusExplorer&version=1.0.1
ServiceBus Explorer (XrmToolBox plugin)
See your Azure Service Bus queues, topics, subscriptions and filters directly in XrmToolBox, next to the Dynamics 365 / Dataverse steps that send messages to them. Check that every service endpoint still points to something that exists on Azure, edit the trigger and the images of a step without the Plugin Registration Tool, and peek the active messages each step sent.
Usage
- Connect to your organization, open the tool and click Azure connections to add your namespaces:
- Connection string: a namespace-level key with the Manage right. It is encrypted for your Windows account.
- Microsoft account: browser sign-in or Azure CLI (
az login). The Reader role on the namespace is enough. The namespaces of your account are discovered for you.
- Click Load. Nothing is read before that. The tool reads the namespaces on Azure, then the Dataverse service endpoints, their steps and their images. Without any Azure connection the steps are still shown, under greyed-out namespaces.
- Explorer: pick a namespace, queue, topic, subscription or rule in the tree to see its counters (active, dead-letter, scheduled, size), and its tabs:
- Dataverse steps that send to it (a subscription shows the steps of its topic, because they feed it).
- Subscriptions and filters of a topic: SQL and correlation filters, rule actions, with a copy button.
- Properties of the entity.
- Messages of a queue, topic or subscription: click Read active messages.
- Matching: every service endpoint and every Azure entity with a status, a filter and a search. Double-click a line to open it in the explorer.
- Steps: every step bound to a service endpoint, with a search, Edit, Enable, Disable (several steps at once) and Messages.
- Export saves an Excel report with the matching, the steps, the images, the entities, the subscriptions and the filters.
Long operations run behind a loading overlay showing the current step and the elapsed time; Stop (or Esc) cancels them.
What the tool shows and writes
- Matching statuses: Linked (the endpoint targets an existing entity and has steps), No steps, Missing on Azure, Wrong type (for example a Topic endpoint on a queue), Not connected, No endpoint (an Azure entity that nothing in Dataverse targets). Relay, webhook and event hub endpoints are listed as Other type. Paths are compared without case, like Service Bus does.
- Step editor: message, table, stage, mode, rank, filtering columns and deletion of the system job; images with their type, alias and columns (searchable column picker). The registration rules are checked while you type, and every change is summarized for review before it is written. Only the changed attributes are sent.
- Messages: the active messages waiting in the queue, or in each subscription of a topic. Each one is linked to the step that sent it (the
OwningExtensionof its Dataverse context), whatever the format of the endpoint: JSON, XML or .NETBinary. The detail shows the Service Bus properties, the Dataverse context (message, table, record, user, stage, depth) and the body, which can be copied or opened in a large viewer. From a step, only its messages are shown, or all the messages of the queue with one click.
Things to know
- The tool only reads Azure: it never changes a queue, a topic, a filter or a message. It only writes steps and step images in Dataverse.
- Messages are peeked: they are not locked or removed, and their delivery count does not change. A message already taken by a consumer is no longer visible. The dead-letter queue is not read.
- Reading the messages needs the Listen right for a key (Manage includes it), or the Azure Service Bus Data Receiver role for a Microsoft account (Reader and Owner are not enough). They are read over AMQP on port 5671, or over WebSockets on 443 when 5671 is blocked.
- Options: parallel Azure requests (6), active messages read per queue (100, up to 5,000), Microsoft Entra tenant, and the application (client) ID of the browser sign-in (the public client of the Azure CLI by default).
- Managed steps that are not customizable are read-only. Editing needs Write on Sdk Message Processing Step, and Create, Write and Delete on Sdk Message Processing Step Image.
- The tool is a single DLL: the AMQP engine of the Azure SDK is merged into it.
Project layout
| Folder | Content |
|---|---|
ServiceBus Explorer/Services |
Azure readers (connection string, Azure Resource Manager, AMQP peek of the messages), Dataverse endpoints and steps, matching, message decoding, Excel export. |
ServiceBus Explorer/UI, ServiceBus Explorer/Forms |
Theme, tree, tabs, steps and messages panels, popups (connections, step and image editors, column picker, options). |
ServiceBus Explorer/ServiceBusExplorerPlugin.cs, ServiceBusExplorerControl*.cs |
XrmToolBox plugin and its screen. |
tests/ServiceBusExplorer.Tests |
Logic checks, end-to-end UI campaign, screenshots, and checks against a real organization or the Service Bus emulator. |
docs/images |
Screenshots. |
Build
Open ServiceBus Explorer.sln in Visual Studio and build, or:
msbuild "ServiceBus Explorer\ServiceBus Explorer.csproj" /restore /p:Configuration=Release
dotnet run --project tests/ServiceBusExplorer.Tests # logic checks
dotnet run --project tests/ServiceBusExplorer.Tests -- --ui # end-to-end UI campaign
Install in XrmToolBox
Copy ServiceBus Explorer\bin\Release\net48\ServiceBusExplorer.dll to %APPDATA%\MscrmTools\XrmToolBox\Plugins, or install it directly from the Tool Library, restart XrmToolBox and open ServiceBus Explorer. A Dataverse connection is needed to read the steps; the Azure namespaces are added in Azure connections.
Learn more about Target Frameworks and .NET Standard.
-
- XrmToolBox (>= 1.2020.12.43)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0 - First release
- Azure connections by connection string (encrypted for your Windows account), browser sign-in or Azure CLI, with discovery of the namespaces of your account.
- Explorer tree of the namespaces, queues, topics, subscriptions and rules, with active, dead-letter and scheduled counters, size and properties.
- Subscriptions and filters of a topic: SQL and correlation filters, rule actions.
- Dataverse steps shown on the queue or topic they send to; a subscription shows the steps of its topic.
- Matching page between service endpoints and Azure entities: linked, no steps, missing on Azure, wrong type, not connected, no endpoint, other endpoint types.
- Step editor for the trigger and the images, with a searchable column picker, registration rules checked while you type and a review before saving; only the changed attributes are written.
- Bulk enable and disable of steps; managed steps that are not customizable stay read-only.
- Peek of the active messages of a queue, topic or subscription, or of one step, linked to the step that sent them (JSON, XML and .NETBinary endpoints), with the Dataverse context and the body; the dead-letter queue is not read.
- Excel report with the matching, steps, images, entities, subscriptions and filters.
- Loading overlay with a Stop button, readable error messages, English and French interface.