Azure storage : SAS token on containers

Vishwesh Anil Chaudhari 21 Reputation points
2022-04-06T08:48:05.9+00:00

We are using the blob storage SAS token on the container level.

According to account SAS documentation https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas.

which specifies that "ss" query parameter is required in the SAS token.
But that's not the case with container-level SAS tokens.

Is there any documentation for container-level SAS tokens?
Thanks

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,201 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2022-04-08T12:37:10.74+00:00

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

    Let me explain difference between account level SAS and Container level SAS.

    The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.

    Ex: When you generate shared access signature for all service it includes allowed resource types (The services accessible with the account SAS) and The services accessible with the account SAS https://su**2std.blob.core.windows.ne**t/?sv=2020-08-04&ss=bfqt&srt=sc&s**p=rwdlacupitfx&se=2022-04-08T19:43:50Z&st=2022-04-08T11:43:50Z&spr=https&sig=U

    The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).

    When generate same SAS token for the container it's only for that specified container. https://sub***d.blob.core.windows.net/office-desktop**?sp=racwdl&st=2022-04-08T11:35:10Z&se=2022-04-08T19:35:10Z&spr=https&sv=2020-08-04&sr** We have container level SAS's with read/write/list which isolates each container from other containers. This works well as each client only has access to their own container.

    Here's an example of a service SAS URI, showing the resource URI and the SAS token. Because the SAS token comprises the URI query string, the resource URI must be followed first by a question mark, and then by the SAS token:

    191371-image.png

    In this article, you'll learn how to generate user delegation shared access signature (SAS) tokens for Azure Blob Storage containers

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

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

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Cristian Carrion 1 Reputation point
    2022-04-06T19:06:16.86+00:00

    Do you have some problem, error code or is a question only.


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.