Is there an alternative to assigning a SAS token to a directory within a blob container?

Ander 1 Reputation point
2022-01-10T10:11:15.11+00:00

I need to assign a SAS Token to a specific directory in a blob container. For security reasons I can not assign a SAS Token to the whole container but only to a subdivision of it. I know that a folder is a virtual entity and because of that the asignmente of the SAS Token is restricted. I have also tried with the file shares but I am facing the same situation.

What would be the alternative to achieve this effect? I had thought of creating a new container for each of the subdivisions I need, but I do not consider it as clean and easy to maintain as having it organized in subfolders.

If someone has a solution for the problem it would help me a lot. Thank you very much for your help.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,425 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,201 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2022-01-10T12:30:34.69+00:00

    @Ander Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    May I know what exactly are you trying to accomplish?

    This article describes the options that Azure Storage offers for authorizing access to data: https://learn.microsoft.com/en-us/azure/storage/common/authorize-data-access

    Looking forward for your reply!

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 163587-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.