Skip to content

ServiceBusSender Identifier not set. #46952

@woodylaurence

Description

@woodylaurence

Library name and version

Azure.Messaging.ServiceBus v7.18.0+

Describe the bug

When creating a ServiceBusSender using ServiceBusClient.CreateSender() the returned Sender does not have its Identifier correctly set based off the queue/topic name.
This used to work < 7.18.0.

Expected behavior

ServiceBusClient.CreateSender() should return ServiceBusSender with Identifier set as -.

Actual behavior

Identifier is set as "-".

Reproduction Steps

using Azure.Identity;
using Azure.Messaging.ServiceBus;

namespace ConsoleApp1;

class Program
{
	static void Main(string[] args)
	{
		var serviceBusClient = new ServiceBusClient("service-bus-name.servicebus.windows.net", new DefaultAzureCredential());
		var serviceBusSender = serviceBusClient.CreateSender("queue-name");
	}
}

Environment

No response

Metadata

Metadata

Assignees

Labels

ClientThis issue is related to a non-management packageService BusbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions