azure-docs
azure-docs copied to clipboard
Incorrect service bus example code
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.
- ID: 98400f9f-d6fe-868d-05c6-62d44dd73793
- Version Independent ID: f31424c4-e6a2-87e0-6416-952cb0c1c249
- Content: Migrate applications to use passwordless authentication with Azure Service Bus - Azure Service Bus
- Content Source: articles/service-bus-messaging/service-bus-migrate-azure-credentials.md
- Service: service-bus-messaging
- GitHub Login: @alexwolfmsft
- Microsoft Alias: alexwolf
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 Thanks for your feedback! We will investigate and update as appropriate.
I have assigned the issue to the content author to investigate further and update the document as appropriate.
Thanks. The update will go live with the 3 PM PST publish.
#please-close