How to create a shared access signature with a stored access policy for an Azure Blob container in Azure Portal?
Asked Answered
C

3

15

I read about shared access signatures generated with stored access policies for Azure Storage from here.

I also read how to create this shared access signature with stored access policies for Azure Storage using PowerShell here.

However, I want to do the above using Azure Portal. I know how to generate an ad-hoc shared access signature. I also know how to create a stored access policy for a container in my Azure Blob.

How do I create a shared access signature with a stored access policy for an Azure Blob container in Azure Portal?

Calends answered 8/3, 2018 at 22:44 Comment(0)
L
20

How do I create a shared access signature with a stored access policy for an Azure Blob container in Azure Portal?

Simple answer to your question is that as of today you can't create a shared access signature (SAS) using a stored access policy in Azure Portal. This feature is not there yet. In fact, feature to create a SAS on a blob container is not there on the portal as of yet. You could only create account level SAS using Azure Portal.

If you need to create a SAS on a container using a stored access policy, please use Microsoft Storage Explorer tool (or any other storage explorer tool that has support for blobs management). Using this tool you will be able to specify a stored access policy when creating a SAS on the container.

Linctus answered 9/3, 2018 at 1:35 Comment(2)
This answer is still valid. You have to use the Microsoft Azure Storage Explorer to handle all the details in regards of SAS + Stored Access Policy.Souse
Small update: it is now at least possible to create a SAS on a blob container, however still not using the access polilcy.Hamrick
R
24

Preview of Storage Explorer is now available in Azure portal.

You can generate SAS for a container by right clicking on the container and select Get Shared Access Signature like we do in Storage Explorer using the preview

enter image description here

Roundup answered 7/1, 2019 at 9:53 Comment(5)
I could only create the SAS in the traditional view: Overview > Containers. Right-click the container and choose Access Policy. Create the policy. (I was only able to create an access policy based on date, didn't see a way to control based on IP address, etc.) Then I went to the Storage Explorer > Right-click container and chose "Get Shared Access Signature." Choose the one you just made above, then Create. That will get you the link to use.Squarerigger
This worked for me. It doesn't let you specify an IP address, sadly.Incommunicado
This works only on Azure BLOB at hte moment, not on ADLS Gen2Argentite
Worked for me for blob, no further selections (other than timezone) but what's been selected for the policyInterinsurance
For whatever reason, they removed the function of generating SAS based on access policy created in this PREVIEW feature.Subadar
L
20

How do I create a shared access signature with a stored access policy for an Azure Blob container in Azure Portal?

Simple answer to your question is that as of today you can't create a shared access signature (SAS) using a stored access policy in Azure Portal. This feature is not there yet. In fact, feature to create a SAS on a blob container is not there on the portal as of yet. You could only create account level SAS using Azure Portal.

If you need to create a SAS on a container using a stored access policy, please use Microsoft Storage Explorer tool (or any other storage explorer tool that has support for blobs management). Using this tool you will be able to specify a stored access policy when creating a SAS on the container.

Linctus answered 9/3, 2018 at 1:35 Comment(2)
This answer is still valid. You have to use the Microsoft Azure Storage Explorer to handle all the details in regards of SAS + Stored Access Policy.Souse
Small update: it is now at least possible to create a SAS on a blob container, however still not using the access polilcy.Hamrick
S
0

This is possible to do in the portal now.

  1. Navigate to the container in your storage account
  2. Select Shared access tokens
  3. Use Account key signing method
  4. Select the stored access policy to use for creating the SAS

Note: You won't be able to modify the permissions or the start/end dates since the stored access policy defines those.

enter image description here

Shrew answered 23/5, 2023 at 14:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.