π Azure File Shares for Multi-location Collaboration
Introduction
In this exercise, I focused on creating a centralized and secure file-sharing solution for a company with offices in multiple locations. The goal was to enable seamless collaboration between departments β such as Finance, which requires frequent access to cost and audit files β while ensuring sensitive data remains protected.
To achieve this, I set up Azure File Shares, providing a reliable and easily accessible platform for departments to store, share, and manage files in the cloud. Since not all content should be publicly available, I also configured network restrictions to ensure that specific corporate virtual networks and subnets have exclusive access.
π§± Architecture Overview
The setup includes:
- One Azure Storage Account configured specifically for file sharing
- A File Share and Directory created for departmental collaboration
- Snapshots enabled to back up and restore previous file versions
- Network restrictions applied to control access from authorized corporate networks only
π§© Skilling Tasks
- Create a storage account for file shares
- Configure a file share and directory structure
- Enable snapshots and test file restoration
- Restrict access to specific virtual networks and subnets for enhanced security
βοΈ Create and Configure a Storage Account for Azure Files
Create a Storage Account for the Finance Departmentβs Shared Files
- In the portal, search for and select Storage accounts.
- Select + 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 (ensure it meets naming requirements).
- Set Performance to Premium.
- Set the Premium account type to File shares.
- Set Redundancy to Zone-redundant storage (ZRS).
- Select Review and then Create the storage account.
Wait for the resource to deploy and then select Go to resource.
π Create and Configure a File Share with Directory
Create a File Share for the Corporate Office
- In the storage account, under Data storage, select the File shares blade.
- Select + File share and provide a name.
- Review other options, accept the defaults, and select Create.
Add a Directory for the Finance Department
- Select your file share and choose + Add directory.
- Name the new directory finance.
- Select Browse and open the finance directory.
- Add subdirectories as needed and upload a file for testing.
π Configure and Test Snapshots
To protect against accidental file deletion, snapshots are enabled.
- Select your file share.
- Under Operations, choose the Snapshots blade.
- Select + Add snapshot (comments optional) and click OK.
Verify your file directory and uploaded file are included:
Practice Restoring Files from Snapshots
- Go to your file share and open your file directory.
- Locate your uploaded file, open Properties, and select Delete.
- Confirm deletion.
- Open the Snapshots blade and select your snapshot.
- Navigate to the deleted file, select it, and click Restore.
- Provide a Restored file name.
- Verify your restored file appears in the directory.
π Configure Restricted Access to Selected Virtual Networks
Note: This section assumes a virtual network and subnet already exist. In production, these resources are typically pre-configured.
- Search for and select Virtual networks.
- Select Create, choose your resource group, and name the virtual network.
- Keep default parameters, select Review + create, and then Create.
- After deployment, open the resource and select Subnets under Settings.
- Select the default subnet and, under Service endpoints, choose Microsoft.Storage.
- Click Save to apply changes.
Restrict Storage Account Access
- Return to your storage account and select Networking under Security + networking.
- Set Public network access to Enabled from selected virtual networks and IP addresses.
- In the Virtual networks section, select Add existing virtual network, choose your network and subnet, then click Add.
- Save your changes and navigate to the Storage browser.
- Attempt to access the file share β you should see an error message confirming restricted access:
βYou are not authorized to perform this operation.β
π§Ύ Conclusion
This exercise provided hands-on experience with Azure Files, an essential cloud service for secure, scalable file storage and sharing. By combining snapshots for recovery and network restrictions for security, I created a resilient solution that supports both collaboration and compliance across geographically dispersed teams.





















Top comments (0)