Blob container Folder level SAS token

Amar-Azure-Practice 661 Reputation points
2021-03-12T04:31:09.5+00:00

Hi

I have one Blob container name 'claimblobcontainer', inside this i have partner wise folders, Like partner-a, partner-b and partner-c.

we have 3 clients client-A, client-B, client-C , I want to create SAS token with read access permission to read files from partner-a folder.
similarly for Client-B and Client-C i need to generated SAS for partner-b and partner-c.

I can generate the SAS token at container level, Can i generate at folder level?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,916 Reputation points Volunteer Moderator
    2021-03-12T04:41:20.51+00:00

    Folders in Azure blob storage don't really exists, meaning that, the folders in Blob storage are virtual and it is not supported to generate SAS at a folder level.

    You can create different contains and provide SAS access to clients else create ADLS Gen2 storage account and in there get SAS for folder level.

    See similar questions:
    https://stackoverflow.com/questions/61879567/how-to-generate-a-shared-access-signature-for-a-folder-in-azure-blob-storage
    https://stackoverflow.com/questions/37270955/is-it-possible-to-generate-sas-shared-access-signature-with-write-permission-f


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    3 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.