Exercise 6: Implementing Stored Access Policies
This exercise will guide you through the process of creating a stored access policy and generating a SAS that uses the stored access policy within your storage account.
Task 1: Creating and Using a Stored Access Policy
Follow these steps to generate a new stored access policy and then generate a SAS using it:
- Upload any file you have locally to the container created in the last exercise using the Azure portal (creating a new file is needed).
- From within the container in the Azure portal, open the Access policy blade and select Add policy under the Stored access policies section.
- Enter any identifier you’d like, select Read under the Permissions setting, set Start time to a time in the past, and set Expiry time to a time in the future, then click OK.
- Once created, make sure you click Save.
- From the Overview blade, right-click on your uploaded text file and select Generate SAS (clicking on the ellipsis...