[QUERY] Azure.Storage.Blobs: How to generate SAS URL for a blob when using storage emulator #12790
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Query/Question
How do I generate a SAS URL for a blob when using the storage emulator (UseDevelopmentStorage=true)?
When using a real storage account, I can use
BlobSasBuilder
+StorageSharedKeyCredential
, but I couldn't find a good way to get aStorageSharedKeyCredential
to use with the storage emulator.I know there is a well-known account name & key for the emulator, but it would be really ugly to have to hardcode these into the application code. I think these are exist as constants in the SDK, but hidden inside internal classes.
Environment:
The text was updated successfully, but these errors were encountered: