How to connect locally to service bus without connection string?

Megan Dymerski 0 Reputation points Microsoft Employee
2024-09-25T18:47:17.22+00:00

Hey there,

 

I am trying to disable local auth for my team's Service Bus in PME. We were able to migrate to passwordless connections to the service bus in prod, but when we develop locally we are hitting some obstacles. Improvements to our service requires a lot of local debugging and testing, so it is very important that this is working before we go ahead and disable local auth.

 

For local development, I went ahead and created a "dummy" service bus in the Microsoft tenant. I am now attempting to connect to this service bus by setting the "AzureWebJobsServiceBus:fullyQualifiedNamespace" value in my local.settings file. I have assigned myself the Service Bus Data Owner role in the test service bus. However, I am hitting an 'Azure.Identity.CredentialUnavailableException' exception at start up. After this initial exception, I am able to invoke my azure function successfully using an Http endpoint. All of the steps I have completed were the same for connecting to our prod service bus. Does anyone have any insight on why the Identity exception occurs at start up? Is there any solution to this?

 

Best, Megan Dymerski

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
621 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.