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

a util that can parse arm id #32449

Open
yukun-dong opened this issue Jan 7, 2025 · 5 comments
Open

a util that can parse arm id #32449

yukun-dong opened this issue Jan 7, 2025 · 5 comments
Assignees
Labels
Azure.Core customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning Mgmt This issue is related to a management-plane library. needs-author-feedback Workflow: More information is needed from author to address the issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@yukun-dong
Copy link

Is your feature request related to a problem? Please describe.
If I want to get a machine learning workspace using a workspace id. I need to extract the subscriptionId, resourcegroup,workspacename from the id first then use js sdk to get it. In this case it would be helpful if there is a util that can parse the id for me.

The .net and go sdk already has a util resourceIdentifier that can help parse the arm id but js doesn't.

Describe the solution you'd like
The js sdk has a util just like resourceIdentifier.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 7, 2025
@xirzec
Copy link
Member

xirzec commented Jan 7, 2025

@yukun-dong so I can route your request correctly, can you confirm what package you are using? Is it @azure/arm-machinelearning?

@xirzec xirzec added Mgmt This issue is related to a management-plane library. Machine Learning needs-author-feedback Workflow: More information is needed from author to address the issue. labels Jan 7, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Hi @yukun-dong. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@qiaozha
Copy link
Member

qiaozha commented Jan 8, 2025

@xirzec this is actually a core-util requirement, it will provide a helper to our customer that takes a resource id as input and output the subscriptionId, resourceGroupName, resourceName etc. similar like https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azcore/arm/internal/resource/resource_identifier.go This is a common request in ARM libraries, but are you okay with putting this into core-util?

@jeremymeng
Copy link
Member

Related to this? #30678

@xirzec
Copy link
Member

xirzec commented Jan 10, 2025

@xirzec this is actually a core-util requirement, it will provide a helper to our customer that takes a resource id as input and output the subscriptionId, resourceGroupName, resourceName etc. similar like https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azcore/arm/internal/resource/resource_identifier.go This is a common request in ARM libraries, but are you okay with putting this into core-util?

Seems reasonable to me, would we want ARM packages to re-export this helper for convenience? I know we usually avoid asking customers to directly import from core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning Mgmt This issue is related to a management-plane library. needs-author-feedback Workflow: More information is needed from author to address the issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants