NServiceBus.Transport.AzureServiceBus 3.1.1 and 3.0.2 – Patch releases available

Hi everyone,

We’ve just released NServiceBus.Transport.AzureServiceBus 3.1.1 and 3.0.2.

Fixed bugs

  • #700 Attempting to use managed identity throws an ArgumentException

How to know if you are affected

You are affected if:

Symptoms

When trying to use managed identity with the transport constructor overload that accepts the credential:

var credential = new DefaultAzureCredential(new DefaultAzureCredentialOptions { ManagedIdentityClientId = identityClientId });
var transport = new AzureServiceBusTransport("[NAMESPACE].servicebus.windows.net", credential);

The transport throws an ArgumentException with a stack trace similar to:

System.ArgumentException
  HResult=0x80070057
  Message=The value '' is not a well-formed Service Bus fully qualified namespace. (Parameter 'fullyQualifiedNamespace')
  Source=Azure.Messaging.ServiceBus
  StackTrace:
   at Azure.Core.Argument.AssertWellFormedServiceBusNamespace(String argumentValue, String argumentName) in /_/sdk/servicebus/Azure.Messaging.ServiceBus/src/Core/Argument.cs:line 156
   at Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient..ctor(String fullyQualifiedNamespace, ServiceBusTokenCredential credential, ServiceBusAdministrationClientOptions options) in /_/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/ServiceBusAdministrationClient.cs:line 179
   at Azure.Messaging.ServiceBus.Administration.ServiceBusAdministrationClient..ctor(String fullyQualifiedNamespace, TokenCredential credential) in /_/sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/ServiceBusAdministrationClient.cs:line 149
   at NServiceBus.AzureServiceBusTransport.<Initialize>d__3.MoveNext() in /_/src/Transport/AzureServiceBusTransport.cs:line 95
   at NServiceBus.TransportSeam.<CreateTransportInfrastructure>d__6.MoveNext() in /_/src/NServiceBus.Core/Transports/TransportSeam.cs:line 36

When to upgrade

You should upgrade immediately in case you are using managed identity.

Where to get it

You can install the new versions of NServiceBus.Transport.AzureServiceBus from NuGet.

With thanks,
The team in Particular

Please read our release policy for more details.