-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[QUERY] How to create a SAS Uri with v12 #16979
Comments
Thank you for your feedback. Tagging and routing to the team best able to assist. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage. Issue Details
|
@amnguye can you take a look? |
Currently there's a bug in Here's a short sample based on your snippet in v12 to construct a SAS Uri, that way you don't have to pass the
However with the current released version you would have to initialize the client with a connection string to a StorageSharedKeyCredential for now.
I believe we don't have any plans to expose the Sorry for the inconvenience. |
Ok, thanks for the answer. I'll wait for the next release, I have to since I am also blocked by a nasty memory leak with v12. |
This sample I provided above should currently work with the latest released preview version of Azure.Storage.Blobs . |
Please re-open if you have further questions. |
Query/Question
Hi, I am porting my old v11 code to v12 and I find very unconvenient to generate SAS Uris with the new API. Old code was very simple:
Given a blob client, I was able to get a SAS Uri without having to get the account key from the connection string, which was very conenient given that if the connection string was "UseDevelopmentStorage=true".
If I am correct the new API requires to call ToSasQueryParameters() and provide a StorageSharedKeyCredential built from account name and account key. This requires me to parse the connection string, but I don't know exactly what to do with "UseDevelopmentStorage=true". The new code is:
Is there a way to get the StorageSharedKeyCredential directly from a BlobServiceClient?
Thanks!
The text was updated successfully, but these errors were encountered: