DEV Community

Cover image for How to control storage access in Azure.
UMEOHIA NNAMDI
UMEOHIA NNAMDI

Posted on • Edited on

How to control storage access in Azure.

In today’s digital world, it's important to control who can access storage systems to keep data safe, meet regulations, and run operations smoothly. In cloud storage, setting clear rules on who can see, change, or delete files helps protect information and prevent misuse. With the right access controls, businesses can reduce risks, work more efficiently, and follow security guidelines.
This article looks at simple ways to manage storage access.

Here are the steps to follow:

Create a storage container. Steps:

1.Login to Microsoft Azure at https://portal.azure.com

2.In the Azure portal, search and select storage accounts.

search and select storage accounts

3.Select the storage account you created in the Prepare exercise (guidedprojectprep01sa). Note: it should be associated with the resource group guided-project-rg.

select storage account

4.On the Data storage account menu, select Containers. Select + Add container.

data storage, add containers

5.Give the container a name storage-container. Select Create.

name, create

Uploading a file to the storage container:

6.Select the storage container you just created.

select container

7.Select Upload and upload a file to it. Once the file is ready for upload, select Upload.

upload

Changing the access tier:

8.Select the file you just uploaded.

select uploaded file

9.Select Change tier.

change tier

10.Select Cold. Select** Save**.

select cold and save

Create a file share. steps:

1.In the Azure portal, search and select storage accounts.

select storage accounts

2.Select the storage account you created in the Prepare exercise (guidedprojectprep01sa). Note: it should be associated with the resource group guided-project-rg.

select sa create

3.On the storage account, under the Data storage section, select File shares. Select + File share.

+file share

4.On the Basics tab, in the name field enter file-share.

file share as name

5.On the Backup tab, uncheck Enable backup. Select Review + create.

uncheck, Review + create

6.Select Create.

create

7.Select Upload and upload a file to it. Once the file is ready for upload, select Upload.

upload

Create a shared access signature token. Steps:

1.In the Azure portal, search and select storage accounts.

storage account

2.Select the storage account you created in the Prepare exercise (guidedprojectprep01sa).

select created sa

3.On the storage account, select Storage browser. Expand Blob containers. Select the storage container you created earlier, storage-container.

blob container, select storage container

4.Select the ellipses (three dots) on the end of the line for the image you uploaded. Select Generate SAS.

ellipses,

generate SAS

5.Set Signing method to Account key. Set Signing key to Key 1. Set Stored access policy to None. Set Permissions to Read. Enter a custom start and expiry time or leave the defaults.

account key, key1, none, read, start and expiry date and time

6.Set Allowed protocols to HTTPS only. Select Generate SAS token and URI. Copy the Blob SAS URL and paste it in another window or tab of your browser.

HTTPS only, generate SAS token, copy blob sas url

7.It should display the image you uploaded.

display

Rotate access keys. Steps:

1.In the Azure portal, search and select storage accounts.

select SA

2.Select the storage account you created in the Prepare exercise (guidedprojectprep01sa).

guidedprojectprep01sa

3.On the storage account, under the security + networking section, select Access keys. For Key 1, select Rotate key.

security + networking, Access keys

4.Read and then acknowledge the warning about regenerating the access key by selecting Yes.

Save

5.Once you see the success message for rotating the access key, go back to the window or tab you used to check the SAS token and refresh the page. You should receive an authentication failed error.

Error

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Welldone