Azure-sdk-for-js: How do I use the storage connection string to create a ServiceURL object?

Created on 8 May 2019  路  8Comments  路  Source: Azure/azure-sdk-for-js

The new SDK provides various credential creation methods but its not obvious to me how to create a credential object from a full storage connection string (DefaultEndpointProtocol****EndpointSuffix). Do I need to parse the string and extract account name and account key or is there a built in mechanism in the library?

Client Storage customer-reported

All 8 comments

More specifically, is there support for the UseDevelopmentStorage=true shorthand for connecting to the local emulator?

Thank you for opening this issue! We are routing it to the appropriate team for follow up.

CC: @jeremymeng, @XiaoningLiu, @vinjiang

Connection string support is SDK's next todo list @jeremymeng has proposed that with a solution

Thanks for the feedback @shudv. The work is tracked by #2752.

Dev connection string shortcut work is splitted into #3289

@shudv,

@azure/storage-blob-12.0.0-preview.3 now supoports various types of connection strings.

Links - Changelog | NPM link. Please give it a try.

Dev connection string work is ongoing(https://github.com/Azure/azure-sdk-for-js/pull/5004) and we are hoping to add the support in the next release.

@shudv, we've merged the PR for this (#5004) already. You should expect to see this fix in our next preview release coming in a few weeks. Thank you for reporting the issue! Please re-open if you have concerns or further questions.

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.

Was this page helpful?
0 / 5 - 0 ratings