DEV Community

Cover image for How I setup Azure File Shares for Secure Enterprise File Storage
Emmanuel Banjo
Emmanuel Banjo

Posted on

How I setup Azure File Shares for Secure Enterprise File Storage

Introduction

Picture this: a company with offices scattered across cities, countries, even continents. London needs a file, New York has the file, Tokyo edited it and Dubai is waiting on it.
That's the reality for thousands of growing companies and it's a logistical nightmare without the right tools.
Teams need a central place to store, share, and access files instantly without any email chains, no waiting, no "which version is the right one?" This is especially critical for departments like Finance, where documents carry legal and compliance weight. Auditors don't accept "I couldn't find the file."
The answer to this is Azure File Share which is a fully managed, cloud-based file sharing solution that works across every office, every device, and every timezone. And the best part? Some content can be locked down so only people on your trusted corporate network can ever touch it.

What You're About to Build

A shared file system where:

  • Everyone sees the same files (no version confusion)
  • Deleted files can be recovered (accidents happen!)
  • Only trusted people can access it (security matters)
  • Files are backed up automatically

Definition of Terms

  • File Share: A cloud folder that multiple people can access at the same time.
  • Snapshot: A freeze-frame of your files at a specific moment. Like a save point in a video game. If something goes wrong, you reload from the snapshot.
  • Virtual Network: Your company's private internet. Only people connected to it can reach your files.
  • Service Endpoint: A connection point that lets your virtual network talk to Azure storage securely.

Step 1: Create a Premium Storage Account

This is your vault. Premium means fast and reliable.

  • Search for Storage accounts in Azure Portal storage
  • Click + Create crrare
  • Create a new resource group (name it shared-files-team) resg
  • Name your storage account (like teamfiles2026)
  • Set Performance to Premium
  • Set Premium account type to File shares
  • Set Redundancy to Zone-redundant storage
  • Click Review rev
  • Then Create create
  • Wait for deployment and click Go to resource go

Step 2: Create Your Shared File Share

Your actual shared folder lives here.

  • Go to Data storageFile shares
  • Click + File share fileshare
  • Give it a name (like team-docs)
  • Take the defaults and click Create create Boom! You have a shared folder in the cloud.

Step 3: Organize with Folders

Real life has departments and projects. Your file share should too.

  • Click on your file share
  • Click + Add directory add
  • Name it finance (or whatever makes sense for your team)
  • Click OK ok

Step 4: Upload a Test File

  • Click into the finance folder finance
  • Click Upload
  • Choose any file from your computer
  • Click Upload upload what Your first shared file is now live. Your team can see it immediately.

Step 5: Create a Snapshot

A snapshot is like taking a photo of everything right now. If disaster strikes tomorrow, you'll have this backup.

  • Go back to your file share
  • Click Snapshots
  • Click + Add snapshot snap
  • Add a comment if you want (optional: like "Before Q4 cleanup")
  • Click OK ok You just created an insurance policy for your files!

Step 6: Test Restoring a Deleted File

Let's practice losing something so you're not panicked when it actually happens.
Delete the file

  • Go back to your file share
  • Navigate to the finance folder
  • Find your uploaded file
  • Click Delete and confirm deletngone

Restore the file

  • Click Snapshots
  • Select your snapshot snapshot
  • Navigate to the finance folder
  • Find your file and click Restore restore
  • Give it a new name
  • Click OK ok newqsn Your file reappears from thin air. You're a hero. 🎉

Step 7: Create a Virtual Network

Create the network

  • Search for Virtual networks vnet
  • Click + Create create
  • Select your resource group
  • Name it team-network
  • Click Review + create review
  • Then Create create
  • Wait and click Go to resource go Connect storage to this network
  • Go to SettingsSubnets
  • Click the default subnet subnets
  • Find Service endpoints
  • In Services dropdown, select Microsoft.Storage
  • Click Save subnet You just created a private connection between your network and storage.

Step 8: Lock Down the Storage

  • Go back to your file storage account
  • Click Security + networkingNetworking
  • Under Public network, Click Manage pnn
  • Change Public network access to Enabled from selected virtual networks and IP addresses
  • Click Add existing virtual network add
  • Select your team-network and the default subnet
  • Click Add
  • Click Save save

Step 9: Test the Lock (Verify It Actually Works)

  • Try to access your file share from the portal You'll see: "not authorized to perform this operation" error Perfect!

what it means:
You (trying from the public internet) can't access it ✅
People on the company network CAN access it ✅

And its a wrap!
You just built the same file infrastructure that top companies use.
Your team will go from email chaos to organized collaboration. all because you spent 30 minutes following this guide.

Not bad for a day.

What would you store in Azure Files first? Company handbook? Project files? Financial records? Tell me in the comments, I want to know how people actually use this!

Top comments (0)