Estimated time: 30 minutes
In this task you will implement a shared access signature for a blob file. First you will provision a storage account and a private blob container. Then you will upload a file to the container. Next you will define an access policy for the container. Finally you will generate a shared access signature for the file and verify file access.
You will begin by provisioning a storage account and a blob container. Use the following settings:
Setting | Value |
---|---|
Resource group | task-storage-access |
Name | <unique name> |
Performance | Standard |
Account kind | StorageV2 |
Replication | LRS |
Access tier | Hot |
Security | Enabled |
Data protection | Disabled |
Setting | Value |
---|---|
Name | secure |
Public access level | Private |
Upload a file to the secure container. There really isn't much else to say on this one.
Define a storage access policy for the secure container. Use the following settings:
Setting | Value |
---|---|
Name | task-policy |
Permissions | Read, List |
Expiration | <one week from now> |
Create a SAS for the blob file that you uploaded in requirement 2 based on the task-policy policy. Use the SAS with the url of the file to download it from a browser tab. Follow these steps to complete this requirement:
Having trouble completing this task? View the demonstration video to see how to do it.