Cannot generate SAS URI from BlobContainerClient created through BlobServiceClient.GetBlobContainerClient #17626
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)
Describe the bug
A SAS URI cannot be generated from a
BlobContainerClient
obtained throughBlobServiceClient.GetBlobContainerClient
.Expected behavior
If a
BlobServiceClient
is created from an account key connection string, I expect aBlobContainerClient
obtained throughBlobServiceClient.GetBlobContainerClient
to be able to generate a SAS URI.That is, I expect the following test to pass:
Actual behavior (include Exception or Stack Trace)
In the above example,
containerClient.CanGenerateSasUri
returns false.To Reproduce
BlobServiceClient
from an account key connection stringGetBlobContainerClient
on the service clientCanGenerateSasUri
returns false since theStorageSharedKeyCredential
isn't passed to the containerEnvironment:
The text was updated successfully, but these errors were encountered: