DEV Community

Cover image for Production-Ready Azure File Share Setup: Snapshots for Backup and Restricted Network Access
Mahmud Seidu Babatunde
Mahmud Seidu Babatunde

Posted on

Production-Ready Azure File Share Setup: Snapshots for Backup and Restricted Network Access

At exactly 9:42 AM, I got a message I’ve seen too many times:

“Please… I think I just deleted the finance report.”

Three weeks of teamwork gone in seconds.

No recycle bin, no undo button, report is gone.

The finance team was already preparing for a review meeting. That file wasn’t optional; it was everything.

And in that moment, you realize something:

It’s not about storage.
It’s about what happens when things go wrong.

Luckily, this wasn’t luck.

This was design.

Let me show you exactly how I built a system where mistakes don’t become disasters and how you can do the same.

Before we go hands-on, let’s break down a few key terms (in plain English):

Storage Account → Your cloud “hard drive” where everything lives.
Azure Files → A shared folder in the cloud that multiple people can access.
File Share → The main folder everyone connects to.
Directory → Subfolders to keep things organized (like “Finance”).
Snapshots → Backup copies of your data at a specific moment in time.
Virtual Network (VNet) → Your private, secure space in Azure.
Subnet → A smaller section inside your network.
Zone-redundant storage (ZRS) → Keeps copies of your data in different locations so you don’t lose it.

Now that you understand the “why,” let’s build the “how.”

Step 1: Creating the Foundation (Storage Account)

We start by creating the backbone of everything: our storage account.

In the Azure portal:

  • Search for Storage accounts
  • Click + Create

Azure storage accounts page with create button

We create one for the finance team:

Creating a new resource group in Azure portal

Resource Group — Your Project Container

A Resource Group is simply a logical container for your resources.

Naming the Storage Account

This must be globally unique (Azure requirement).

Entering storage account name in Azure portal

Performance Matters

Set performance to Premium.

Why? Because finance workloads need:

  • Low latency
  • High reliability

Selecting premium performance tier in Azure storage

Account Type

We choose file shares because we’re building a shared file system—not blob storage.

Choosing file shares as storage account type

Data Protection (Redundancy)

Set to Zone-redundant storage (ZRS).

This ensures:

  • Your data exists in multiple physical locations
  • Even if one zone fails, your data survives

Setting zone redundant storage option in Azure

Deploy

Review and create.

Review and create storage account page in Azure

Wait for deployment, then go to the resource.

Storage account deployment completed screen

Step 2: Creating a Shared Space for the Corporate Office

Now we create a File Share—this is where collaboration happens.

Inside the storage account:

  • Go to File shares
  • Click + File share

File shares section in Azure storage account

Provide a name and create:

Creating new file share in Azure Files

Step 3: Organizing with Directories

Now we create a finance directory.

Why? Because structure matters.

Adding finance directory in Azure file share

Navigate into it:

Browsing finance directory in file share

You can keep nesting directories:

Creating additional directories in file share

Upload a test file:

Uploading file into Azure file share

Step 4: The Mistake (Why Snapshots Matter)

Here’s where reality hits.

Someone deletes a file.

No backup. No recovery.

This is where Snapshots save the day.

Creating a Snapshot

Snapshots are point-in-time backups.

Snapshots blade in Azure file share

Add snapshot:

Creating snapshot in Azure Files

Verify contents:

Viewing snapshot contents in Azure

Step 5: Simulating Disaster (File Deletion)

Let’s delete the file:

Deleting file from Azure file share

Step 6: Recovery (The Hero Moment)

Go back to snapshot:

Selecting snapshot for file recovery

Restore the file:

Restoring file from snapshot in Azure

And just like that…

Restored file visible in finance directory

Crisis avoided. Finance team happy. Reputation intact.

Step 7: Locking Down Access (Security First)

Now we enforce controlled access using a Virtual Network.

Create Virtual Network

Virtual networks page in Azure portal

Deploy it:

Creating virtual network in Azure

Go to resource:

Virtual network deployment completed screen

Configure Subnet

Subnet configuration page in Azure

Select default subnet:

Selecting default subnet in Azure

Enable Microsoft.Storage service endpoint:

Enabling Microsoft Storage service endpoint

Restrict Storage Access

Now we allow access only from our VNet.

Storage account networking settings in Azure

Add the virtual network:

Adding virtual network to restrict access

Now:

  • No public access
  • Only trusted network traffic
  • Finance data stays protected

Top comments (0)