Skip to content

Azure Service Bus emulator incompatibility #814

@eduardobr

Description

@eduardobr

I have tried to connect to Azure Service Bus emulator from Service Bus Explorer, using a connection string like:
Endpoint=sb://127.0.0.1;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true
Regular access from host machine worked, but Service Bus Explorer would fail to connect and present the artifacts from the emulator instance.
Running SB Explorer from source code, I could see that the error occurs when calling NamespaceManager.GetQueuesAsync (among other admin commands)
I believe the emulator doesn't have support for these commands, and it's not clear if it's to be supported in the near future.

An idea to make it work could be to check for the existing flag UseDevelopmentEmulator=true in the connection string (we might also have a checkbox for this in UI), and if true, do not make API calls like GetQueuesAsync, but instead allow us to specify the config.json path for the emulator and populate the tree of artifacts from there - see https://learn.microsoft.com/en-us/azure/service-bus-messaging/test-locally-with-service-bus-emulator?tabs=docker-linux-container for details.

In theory this should be enough to make it work, but all administrative commands should be disabled from UI when connected to an emulator instance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions