Introduction
Cloud storage is a cornerstone of modern infrastructure, and Azure Files provides a fully managed, secure, and scalable way to share files across applications and users. Whether you're building internal business systems, migrating workloads, or learning how to manage enterprise data securely, understanding how to configure Azure File Shares is a practical and essential skill.
In this project, you’ll provision Azure resources step-by-step to deploy a secure file-sharing environment for a finance department. You’ll create a premium storage account, configure file shares and directories, implement snapshots for file recovery, and restrict access using virtual network (VNet) and subnet rules. This lab is designed to simulate a real-world use case while sharpening your Azure skills across storage, security, and networking.
Architecture Diagram
This section implements an architecture where an Azure Storage Account hosts an Azure File Share, organized with a subdirectory. Access is restricted using a Virtual Network and Subnet, and file integrity is preserved through snapshots.
The architecture includes:
- A Storage Account (premium file shares)
- A File Share containing a directory
- Snapshot protection for file recovery
- Virtual Network/Subnet restrictions to limit access
Skilling Objectives
- Deploy a storage account specifically configured for Azure Files
- Configure a file share and create subdirectories
- Enable and test file recovery using snapshots
- Secure file access by restricting it to a specific virtual network and subnet
Lab Instructions
🧠 You will need an active Azure subscription to complete this section.
Step 1: Create and Configure a Storage Account for Azure Files
This storage account will serve the finance department’s file share.
Select Create new under Resource Group, enter a name, and save.
Enter a unique lowercase name for the Storage Account (e.g.,
ibrahimstrg
).Set Performance to Premium.
Set Premium account type to File shares.
Set Redundancy to Zone-redundant storage (ZRS).
Step 2: Create a File Share and Directory
- In your storage account, go to File shares under Data storage.
Select + File share, enter a name (e.g.,
ibrahimfs
), and click Create.
Click into the newly created file share.
Browse into the finance directory.
Upload a file of your choice (e.g., a .txt or .csv file) for testing.
Step 3: Configure and Test Snapshots
To guard against accidental deletion, you’ll use snapshots to create restore points.
- Within the file share, go to the Snapshots blade under Operations.
Verify the snapshot contains your directory and uploaded file.
Go back to the live file share, enter the finance directory, and delete the uploaded file.
Return to Snapshots, open the snapshot, and navigate to the deleted file.
Select the file and click Restore, providing a new name (e.g.,
ibrahimrestore.txt
).
Step 4: Restrict Access Using Virtual Network and Subnet
To simulate secure enterprise scenarios, you’ll restrict storage access to a specific virtual network.
From Azure Portal, search for Virtual networks and click + Create.
Use the same resource group and name the VNet (e.g.,
ibrahimRG
).After deployment, go to the VNet resource and open the Subnets blade.
Select the default subnet.
Under Service endpoints, choose Microsoft.Storage from the dropdown.
Step 5: Apply Network Restrictions to the Storage Account
- Go back to your storage account.
- In the Security + networking section, open the Networking blade.
- Change Public network access to: Enabled from selected virtual networks and IP addresses
- Under Virtual networks, click + Add existing virtual network.
- Select your newly created VNet and subnet, then click Add.
- Click Save.
Step 6: Test Network Restrictions
- Go to the Storage browser inside the storage account.
- Try navigating to the file share and opening the directory.
- You should see an error message such as: “Not authorized to perform this operation”
This confirms that your access is blocked unless coming from within the approved virtual network just like a private enterprise setup.
Conclusion
In this guided hands-on section, you've walked through the core steps required to securely provision and manage Azure File Shares. From creating a premium storage account to configuring a dedicated file share for the finance department, every component was carefully deployed with redundancy, network-level security, and file integrity in mind.
By implementing virtual network restrictions, you ensured that only approved networks and subnets can access the storage resource — a common requirement in enterprise-grade cloud deployments. Additionally, by configuring snapshots and file restore operations, you've taken a proactive step toward resilient data protection and disaster recovery readiness.
These skills are fundamental for any cloud professional managing sensitive workloads in Microsoft Azure. Whether you're working on real-world enterprise projects or building your portfolio, this setup demonstrates both technical competence and security awareness — two of the most in-demand skills in the cloud ecosystem today.