How to store a confidential document in Azure Blob Storage while ensuring it is not publicly accessible, And giving access of 5minutes to a user.

How to store a confidential document in Azure Blob Storage while ensuring it is not publicly accessible, And giving access of 5minutes to a user.

In this post,I’ll walk us through the process of how to Store a confidential document in Azure Blob Storage, ensuring the file remains private [not publicly accessible] and how to securely share it with an external user for 5 minutes using a SAS URL.

Let’s get started.

a] log in to the Azure portal, go to “ Storage Account” and select your storage account if you have an existing account, or check on my post on How to create Storage Account.

b] Navigate to containers and create a new private container or choose an existing one.

To create a new container click on Data storage and click on container, give your container a name.

On the Anonymous access level click on private [no anonymous access] and click on create.

c] Double click on the container and click on upload to upload the blog. click on the browse for file to select a file or document and upload.

d] click on the ellipses of the uploaded file or document to generate SAS

Click on the Generate SAS

on the drop down for Permission and leave it on READ for the sake of our practice and the signing method leave it at Account Key.

To give access to an external body, set the Start time 5minutes to the Expiry time and click the allowed protocol on HTTPS and then click on the Generate SAS token and URL.

e] After clicking on the Generate SAS token and URL, copy the url code to a new tab to check if it was uploaded successfully

f] paste the copied URL to a tab to confirm if our blog was uploaded successfully

g] After the given 5 minutes access that was granted to the external body has elapsed refresh it to get the error messages

Conclusion:

By following these steps, you have successfully

a] Uploaded a confidential document to the Azure Blob Storage.

b] Generated a SAS URL with 5 minutes expiration time.

c] Shared the document securely without exposing your storage account…