I have a Blob Container SAS with Add/Create/Write/Delete permissions (no Read, no List).
And I need to delete blobs in this container in a batch:
try
{
string sasToken = "sv=2023-0103&si=wd&sr=c&sig=blah-blah-blah";
BlobContainerClient contClient = new(CreateContainerUrl(container), new AzureSasCredential(sasToken));
BlobBatchClient batchClient = new(contClient);
await batchClient.DeleteBlobsAsync(blobUris);
}
catch (Exception ex)
{
_logger.LogError(ex, "Failed to delete multiple blobs in "{0}" container", container);
throw;
}
But I get an error:
Status: 403 (This request is not authorized to perform this operation using this permission.)
ErrorCode: AuthorizationPermissionMismatch
What am I doing wrong?