Ryan Winterbourne Thank you for your patience while we worked through this issue. I appreciate you sharing the GitHub post (https://github.com/Azure/azure-sdk-for-java/issues/39853); it was indeed helpful, others experiencing the same thing can easily reference this.
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
Issue:
Two main issues while using the Azure Service Bus Java API:
- Listing Subscriptions: You were able to list topics successfully but could not list subscriptions for a given topic. Despite verifying that the topic name was correct and that subscriptions existed, the
listSubscriptions
method always returned an empty result. - Creating a Subscription: When attempting to create a new subscription, encountered an error:
400 The specified resource description is invalid.
Resolution: The problem was related to mismatched Azure dependency versions. By adding dependency management to the pom.xml
and removing the version from the azure-messaging-servicebus
dependency, you were able to resolve the issue
Feedback: better validation and more informative error messages would have been helpful. I will pass this feedback along to the Azure SDK team to improve the developer experience.
If you have any further questions or run into any other issues, please don’t hesitate to reach out.