DEV Community

Cover image for A Guide To Providing Shared File Storage For Offices In Azure
John Essien
John Essien

Posted on

A Guide To Providing Shared File Storage For Offices In Azure

Hey guys!!! We are really building some cloud muscle and this article promises to deliver an even intense cloud workout. In this article, we are going to delve int Azure Storage.

What is an Azure file storage? Azure file storage is designed for shared file storage. It is ideal for scenarios where you need to share files across multiple users or applications.

This article will help us to:

  • Create a storage account specifically for file shares.
  • Configure a file share and directory.
  • Configure snapshots and practice restoring files.
  • Restrict access to a specific virtual network and subnet.

Without further ado!!! Lets go to the cloud!!!


Create and configure a storage account for Azure Files

  • In the portal, search for and select Storage accounts.

Search storage account

  • Select + Create.
    + create

  • For Resource group select Create new. Give your resource group a name and select OK to save your changes. Provide a storage account name and set the performance to premium.

Resource group name

  • Set the premium account type to File shares. Set the Redundancy to Zone-redundant storage. Then select Review and then Create the storage account

Review and create

  • Wait for the resource to deploy and select Go to resource.

Go to resource

Create and configure a file share with directory.

  • In the storage account, in the data storage section, select the file share

select file share

  • Select + File share and provide a Name. Review the other options, but take the defaults. Select Create

create file share

  • Select your file share and select + Add directory. Name the new directory finance.

Add directory

  • Select browse and then select the finance directory. Notice you can Add directory to further organize your file share. Upload a file of your choosing.

Select Finance directory

File upload

Configure and test snapshots

  • Select your file share. In the operations section, select the snapshots blade.

snapshot blade

  • Select your snapshot and verify your file directory and uploaded file are included. The comment is optional. Select OK.

snapshot 1

Snapshot 2
Mine is in there!

Practice using snapshots to restore a file.

  • Return to your file share. Browse to your file directory. Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion.

Delete snapshot

  • Select the Snapshots blade and then select your snapshot.

Snapshot blade

  • Navigate to the file you want to restore, select the file and the select restore. Provide a restored file name.

Restored file

  • Verify your file directory has the restored file.

Restored file

Configure restricting storage access to selected virtual networks.

  • Search for and select Virtual networks

Search Virtual network

  • Select Create.

+ Create

  • Select your resource group and give the virtual network a name. Take the defaults for other parameters, select Review + create, and then Create.

Virtual network name

  • Wait for the resource to deploy and select go to resource.

Go to resource

In the Settings section, select the Subnets blade

  • Select the default subnet. In the Service endpoints section choose Microsoft.Storage in the Services drop-down. Do not make any other changes. Be sure to save your changes.

Subnets blade

The storage account should only be accessed from the virtual network you just created

  • Return to your files storage account. In the Security + networking section, select the networking blade. Change the public network access to enabled from selected virtual networks and IP addresses. In the virtual networks section, select Add existing virtual network. Select your virtual network and subnet, select Add.

Enable virtual network

  • Be sure to Save your changes. Select the storage browser and navigate to your file share. Verify the message "not authorized to perform this operation."

Virtual network error


And just like that we are back from the clouds. Join me in the next article as we keep building that cloud muscle. Until then, I am done, I am gone but not for long. See you soon in the next article.

COMMENT, LIKE AND SHARE

Top comments (0)