Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceBusAtomManagementClient is not accessible #7938

Closed
tchelidze opened this issue Mar 22, 2020 · 9 comments
Closed

ServiceBusAtomManagementClient is not accessible #7938

tchelidze opened this issue Mar 22, 2020 · 9 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Bus

Comments

@tchelidze
Copy link

Run atomManagementApi.js sample

Error

TypeError: ServiceBusAtomManagementClient is not a constructor
@xirzec xirzec added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Bus labels Mar 23, 2020
@xirzec
Copy link
Member

xirzec commented Mar 23, 2020

@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.

@chradek
Copy link
Contributor

chradek commented Mar 23, 2020

@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
Copy link
Author

@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.

"@azure/service-bus": "^1.1.4" which afaik should be the latest version, isn't it ?

@tchelidze
Copy link
Author

@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?

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?

@shlomiassaf
Copy link

shlomiassaf commented Mar 24, 2020

This is why it looks like it's exported

import {
ServiceBusAtomManagementClient,
CreateQueueResponse,
GetQueueResponse,
ListQueuesResponse
} from "@azure/service-bus";

However, it's not, so I wonder how these tests pass :)

BTW, is the ATOM management client planned to be exposed?

@ramya-rao-a
Copy link
Contributor

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.

@joecoolish
Copy link

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?

@ramya-rao-a
Copy link
Contributor

Please subscribe to #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.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jun 10, 2020

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.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Bus
Projects
None yet
Development

No branches or pull requests

7 participants