Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k stars 2k forks source link

[Event Hubs] Loosen fully qualified namespace validation #38706

Open jsquire opened 9 months ago

jsquire commented 9 months ago

Summary

Currently, developers are required to pass in a fully qualified namespace name with the assumption that it is formatted as a host name. The intention is that the value would be obtained from the Azure portal, where a Host name field exists as metadata for the resource. However, this restriction causes a poor experience when using the management library, CLI, Bicep, or ARM template to create the namespace, as the resource provider does not return a host name. The resource provider returns only an endpoint attribute the namespace, formatted as "https://my-namespace.servicebus.windows.net". With the current validation, developers must parse the endpoint into the correct format for client use, causing friction.

Scope of work

Success Criteria

jsquire commented 9 months ago

//cc: @conniey, @anuchandy, @lmolkova