azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Incorrect service bus example code

Open alexpkent opened this issue 11 months ago • 2 comments

This page that details connecting to service bus has the following example

ServiceBusClient serviceBusClient = new( new Uri($"https://{serviceBusNamespace}.blob.core.windows.net"), new DefaultAzureCredential());

Which references blob.core.windows.net and should be servicebus.windows.net


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

alexpkent avatar Mar 22 '24 11:03 alexpkent

Additionally all examples include https:// on the connection strings which I believe is incorrect as service bus isnt https.

Certainly other MS docs show service bus without the https:// such as this one

https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-get-started-with-queues?tabs=passwordless#add-code-to-send-messages-to-the-queue

alexpkent avatar Mar 22 '24 11:03 alexpkent

@alexpkent Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Mar 22 '24 17:03 Naveenommi-MSFT

I have assigned the issue to the content author to investigate further and update the document as appropriate.

RyanHill-MSFT avatar Mar 26 '24 18:03 RyanHill-MSFT

Thanks. The update will go live with the 3 PM PST publish.

#please-close

spelluru avatar Mar 28 '24 17:03 spelluru