AI agents: use the documentation index at llms.txt to locate machine-readable pages. This section is indexed by https://docs.particular.net/transports/llms.txt. The markdown version of this page is served as plain text. An MCP server at /mcp serves the same content via the search_docs and read_doc tools; it is read-only and needs no credentials. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md. They are served as text/plain because some retrieval backends reject text/markdown.

Managed Entity Queue-Scoped Permissions for Endpoints

It is common practice to limit Azure Service Bus connection permissions at the queue scope when using Managed Entities.

The following shows the minimum permissions needed for various endpoint features using queue-scoped permissions:

Access rights

By default, the transport requires elevated privileges to manage namespace entities at runtime. If using a shared access policy, make sure to include Manage rights or the Azure Service Bus Data Owner role if authenticating using Managed Identities.

To avoid running with elevated privileges:

Subscribing without Manage rights

In version 6.6 and later, to subscribe without Manage rights, provision the subscription on each topic the event is mapped to, grant Listen rights, and enable AssertTopologyExists:

transport.AssertTopologyExists = true;

With this setting, subscribing asserts that the topology exists instead of creating it, so automatic subscriptions stay enabled. The setting applies to endpoints with and without sessions enabled, and to both the default and the migration topology. When subscribing, the transport:

  • Checks that the endpoint's subscription exists on each topic the event is mapped to, and that the subscription requires sessions only when the endpoint has sessions enabled.
  • Adds the filter rules of filtered routing, which doesn't require Manage rights.
  • Never creates topics or subscriptions.

With auto-subscribe, if a subscription doesn't exist, its session setting doesn't match the endpoint, or the transport can't check it, the endpoint fails to start and reports the affected topics in the error. An explicit subscribe call throws instead. Create the missing subscriptions using operational scripting before starting the endpoint, because events published before a subscription exists are never delivered to the endpoint.

In version 6.5, and in later versions without AssertTopologyExists, subscribing tries to create each subscription and uses the existing subscription when creating it fails due to missing Manage rights. Provision the subscriptions and grant Listen rights; this also supports automatic subscriptions. With filtered routing, the transport can add filter rules to existing subscriptions without Manage rights. If the subscription doesn't exist, the subscribe operation fails and the transport logs an error. With automatic subscriptions, the endpoint still starts; an explicit subscribe call throws instead. The endpoint doesn't receive the events that depend on the missing subscription, and events published before it's created are never delivered to the endpoint.

In versions 6.0 to 6.4, creating a subscription requires Manage rights even when the subscription already exists. Without them, the subscribe operation fails and the transport logs an error, but events continue to arrive through subscriptions that were provisioned in advance.

Unsubscribing without Manage rights

With filtered routing in version 6.4 and later, unsubscribing from an event deletes only the event's filter rule, which doesn't require Manage rights.

Otherwise, unsubscribing deletes the subscription. Without Manage rights, the transport leaves the subscription in place and logs the failure at Info level:

  • Events published to that topic continue to arrive in the endpoint's input queue and are processed as before.
  • If the endpoint is stopped or decommissioned, these events accumulate in its input queue.

To stop the events, remove the subscription using operational scripting.

In version 6.6 and later, with AssertTopologyExists enabled, unsubscribing throws an InvalidOperationException, because the endpoint doesn't manage the topology. Remove the subscription or its filter rule using operational scripting instead.

Publishing with installers enabled

In version 6.5 and later, publishers running with installers enabled require Manage rights to create topics. To publish with only Send rights, or the Azure Service Bus Data Sender role, disable installers and provision topics in advance.