DEV Community

Cover image for Provide shared file storage for the company offices
Rahimah Sulayman
Rahimah Sulayman

Posted on

Provide shared file storage for the company offices

Introduction

Imagine it’s 9:00 AM on a Monday. A user in the Finance department accidentally deletes a critical year-end spreadsheet from the shared drive. In a legacy environment, this is a "drop everything" emergency involving tape backups or complex server recovery. In a modern Azure environment, it’s a non-event.

Providing shared file storage isn't just about giving people a place to put folders, it’s about balancing high-performance accessibility with stringent security boundaries. In this walkthrough, I’ll demonstrate how to deploy a Premium Azure Files environment that mirrors a real-world corporate requirement, by using:

  • Performance & Redundancy: Utilizing ZRS (Zone-Redundant Storage) to ensure the data survives even if an entire data center goes dark.

  • Data Integrity: Implementing snapshots for "point-in-time" recovery to nullify accidental data loss.

  • Zero-Trust Networking: Restricting access to specific Virtual Networks (VNets) to ensure that sensitive financial data is never exposed to the public internet.

Scenario: The company is geographically dispersed with offices in different locations. These offices need a way to share files and disseminate information. For example, the Finance department needs to confirm cost information for auditing and compliance. This file shares should be easy to access and load without delay. Some content should only be accessed from selected corporate virtual networks.

Skilling tasks

I exhibited the following skills:

  • 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.

Create and configure a storage account for Azure Files.

Create a storage account for the finance department’s shared files.
Step 1: In the portal, search for and select Storage accounts.

search

Step 2: Select + Create.

create

Step 3: For Resource group select Create new. Give your resource group a name and select OK to save your changes.

resourcegroup

Step 4: Provide a Storage account name. Ensure the name meets the naming requirements.

naming

Step 5: Set the Performance to Premium.

performance

Step 6: Set the Premium account type to File shares.

premiumaccttype

step 7: Set the Redundancy to Zone-redundant storage.

redundancy

Step 8: Select Review + create and then Create the storage account.

reviewncreate
validatn

create

Step 9: Wait for the resource to deploy.

waitforresource

Step 10: Select Go to resource.

gotoresource

Create and configure a file share with directory.

Create a file share for the corporate office.
Step 1: In the storage account, in the Data storage section, select the File shares blade.

datastorage

Step 2: Select + File share and provide a Name.

+fileshare

name

Step 3: Review the other options, but take the defaults.

review

reviewncreate

Step 4: Select Create

create

Add a directory to the file share for the finance department. For future testing, upload a file.
Step 1: Select your file share and select + Add directory.

adddirectory

Step 2: Name the new directory finance.

finance

Step 3: Select Browse and then select the finance directory.

browse

financedirectory

Notice you can Add directory to further organize your file share.

notice

Step 4: Upload a file of your choosing.

upload

browsefile

upload

fileispresent

Configure and test snapshots.

Similar to blob storage, you need to protect against accidental deletion of files. You decide to use snapshots.
Step 1: Select your file share.
Step 2: In the Operations section, select the Snapshots blade.

snapshots

Step 3: Select + Add snapshot. The comment is optional. Select OK.

addsnapshot

OK

Step 4: Select your snapshot and verify your file directory and uploaded file are included.

snapshot

verified

download

present

Practice using snapshots to restore a file.
Step 1: Return to your file share.

fileshare
Step 2: Browse to your file directory.
filedirectory

Step 3: Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion.

delete

yes

Step 4: Select the Snapshots blade and then select your snapshot.

snapshots
Step 5: Navigate to the file you want to restore.

file
Step 6: Select the file and the select Restore.

restore
Step 7: Provide a Restored file name.

name

Step 8: Verify your file directory has the restored file.

restoredfile

notice

Configure restricting storage access to selected virtual networks.

The tasks in this section require a virtual network with subnet. In a production environment these resources would already be created.
Step 1: Search for and select Virtual networks.

vnet

Step 2: Select Create. Select your resource group. and give the virtual network a name.

create

default
Step 3: Take the defaults for other parameters, select Review + create, and then Create.

reviewncreate

create

Step 4: Wait for the resource to deploy.
Step 5: Select Go to resource.

gotoresource

Step 6: In the Settings section, select the Subnets blade.

subnet
Step 7: Select the default subnet.

default

Step 8: In the Service endpoints section choose Microsoft.Storage in the Services drop-down.

endpoint

microsoftstorage

Step 9: Do not make any other changes.
Step 10: Be sure to Save your changes.

save

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

Step 1: Return to your files storage account.
Step 2: In the Security + networking section, select the Networking blade.

securitynnetworking

Step 3: Change the Public network access to Enabled from selected virtual networks and IP addresses.

publicaccess

enable

Step 4: In the Virtual networks section, select Add existing virtual network.

vnet

Step 5: Select your virtual network and subnet, select Add.

select

subnet

add

Step 6: Be sure to Save your changes.

save

Step 7: Select the Storage browser and navigate to your file share.

datastorage

Step 8: Verify the message not authorized to perform this operation. You are not connecting from the virtual network.

no access

In Conclusion, building a shared storage solution in Azure is more than a technical checklist, it is a strategic decision to protect a company’s most valuable asset, that is, its data. By implementing this specific architecture, we’ve achieved three critical business objectives:

  • Operational Resilience: By leveraging Snapshots, we’ve shifted from a "reactive" backup recovery model to a "proactive" self-service restoration model. This drastically reduces the Mean Time to Recovery (MTTR) and minimizes downtime for the Finance department.

  • Hardened Security: Moving beyond simple passwords, we utilized Service Endpoints and VNet integration. This ensures that even with valid credentials, data is inaccessible unless the request originates from a trusted, internal network.

  • High Availability by Design: Choosing Zone-Redundant Storage (ZRS) on a Premium tier ensures that critical financial workflows remain performant and available, even during a localized data center failure.

In a modern enterprise, storage shouldn't just be "available", it must be invisible, secure, and resilient, scalable, and self-healing data backbone for the enterprise. This project demonstrates my commitment to building cloud infrastructure that doesn't just work, but scales and protects.

Top comments (2)

Collapse
 
realcloudprojects profile image
SKILL.SCH

This is good!

Collapse
 
rahimah_dev profile image
Rahimah Sulayman

Thanks sir!