Azure Storage Shared Access Signature restrict to a specific container

Anonymous
2023-03-28T13:16:03.53+00:00

Hello,

I created an Azure Storage Container with several containers.

How can I create a Shared Access Signature with access to just one of the containers (not all of them)?

Thank You,

Michael

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
703 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,042 Reputation points Microsoft Employee
    2023-03-29T22:13:50.8466667+00:00

    @Anonymous Thanks for posting your query on Microsoft Q&A.

    You can create a Shared Access Signature (SAS) token for a specific container by following these steps:

    1. Open the Azure Storage Explorer app on your local machine and navigate to your connected Storage Accounts.
    2. Expand the Storage Accounts node and select Blob Containers.
    3. Expand the Blob Containers node and right-click the container node you want to create a SAS token for.
    4. Select Get Shared Access Signature from the options menu.
    5. In the Shared Access Signature window, select your Access policy (the default is none).
    6. Specify the signed key Start and Expiry date and time. Select the Time zone for the Start and Expiry date and time (default is Local)
    7. Define your container Permissions by selecting the Read, Write, List, and Delete checkboxes.
    8. Review and select Create.
    9. A new window will appear with the Container name, SAS URL, and Query string for your container.
    10. Copy and paste the SAS URL and query string values in a secure location. They'll only be displayed once and can't be retrieved once the window is closed.

    You can also generate a SAS URI using Azure Portal, Azure PowerShell, or Azure CLI.

    Reference documentation:

    Hope this helps.

    If you have any questions or if my understanding of your question is not correct, please let me know in the "comments" and I would be happy to investigate further. Comment is the fastest way of notifying the experts on Microsoft Q&A.

    If this helps, please 'Accept answer' so that it can help others in the community looking for help on the same topic.

    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.