Run atomManagementApi.js sample
Error
TypeError: ServiceBusAtomManagementClient is not a constructor
@tchelidze can I ask what version of @azure/service-bus you are using? I think what may be going on is this sample is for 2.x.x and you are using a 1.x.x package.
@tchelidze
Sorry for the broken sample. We had been doing work to support the Atom Management client in service-bus but it has not been completed. It isn't currently exported, though it looks like the docs mistakenly picked up the class.
May I ask what you're trying to do with the Atom Management client? Does the @azure/arm-servicebus package cover what you need to manage Service Bus entities?
@tchelidze can I ask what version of
@azure/service-busyou are using? I think what may be going on is this sample is for 2.x.x and you are using a 1.x.x package.
"@azure/service-bus": "^1.1.4" which afaik should be the latest version, isn't it ?
@tchelidze
Sorry for the broken sample. We had been doing work to support the Atom Management client in service-bus but it has not been completed. It isn't currently exported, though it looks like the docs mistakenly picked up the class.May I ask what you're trying to do with the Atom Management client? Does the
@azure/arm-servicebuspackage cover what you need to manage Service Bus entities?
I'm trying to list queues/topics/subscriptions for a given azure service bus namespace and use a connection string for auth.
ServiceBusClient doesn't seem to offer that functionality.
Is there an alternative way to do that?
This is why it looks like it's exported
However, it's not, so I wonder how these tests pass :)
BTW, is the ATOM management client planned to be exposed?
Apologies for the confusion here
The ATOM management client is still under works. We have an implementation working, but we are still discussion the design for it and the APIs might change.
@HarshaNalluru, Let's delete the related sample for now to avoid the confusion.
I'm also interested in the ATOM management client. I'd like to get the Active Message counts for my topic subscriptions. Is that functionality going to be made available in the ATOM management client?
Please subscribe to https://github.com/Azure/azure-sdk-for-js/issues/1057 to get notified when the ATOM management client makes it to the public api surface.
Until then, please use @azure/arm-servicebus for all the management needs.
If you cannot use AAD and have to use connection string for these features, then use the older azure-sb package until @azure/service-bus has similar features.
Hello!
We are happy to share that the third preview to v7 (7.0.0-preview.3) of the @azure/service-bus package now supports the CRUD & list operations on queues, topics, subscriptions and rules via a separate "client" that can be instantiated either via a connection string or an AAD credential.
Please checkout the sample for management operations for more details.
Please note that this is still in preview and the next preview might have some changes in the API based on internal and external feedback.
Please give it a try and let us know if you have any feedback.