Provide shared file storage for the company offices
Source: Dev.to
Overview
In a world where teams are geographically dispersed but need to stay perfectly in sync, local hardware alone isn’t enough. This guide walks through building a high‑performance Azure Files infrastructure that supports fast collaboration, instant snapshots, and access restricted to a private virtual network.
Create a Premium Storage Account
- In the Azure portal, search for Storage accounts and select + Create.
- Choose a Resource group (create a new one if needed) and give it a name.
- Provide a Storage account name.
- Set Performance to Premium and Account kind to FileStorage.
- Set Redundancy to Zone‑redundant storage (ZRS).
- Click Review + create, then Create.
- After deployment, select Go to resource.
Create a File Share for the Corporate Office
- In the storage account, go to Data storage → File shares.
- Click + File share, give it a name (e.g.,
corporate-share), keep the default options, and select Create.
Add a Directory for the Finance Department
- Open the newly created file share and click + Add directory.
- Name the directory
finance. - Inside the
financedirectory, you can add additional sub‑directories as needed and upload files.
Configure and Test Snapshots
Snapshots protect against accidental deletion.
- In the file share, select Snapshots under the Operations section and click + Add snapshot.
- (Optional) Add a comment, then click OK.
- To verify, select the snapshot and confirm that the
financedirectory and uploaded files are present. - Delete a file from the share, then use the snapshot to restore it:
- Return to the file share, browse to the
financedirectory. - Open Snapshots, select the relevant snapshot, locate the file, click Restore, provide a restored file name, and confirm the file appears in the directory.
- Return to the file share, browse to the
Restrict Storage Access to Selected Virtual Networks
Create a Virtual Network
- Search for Virtual networks and click Create.
- Choose the same resource group, give the virtual network a name, accept the default settings, and click Review + create, then Create.
- After deployment, select Go to resource.
Limit Storage Account Access
- Return to the storage account.
- In Security + networking → Networking, set Public network access to Enabled from selected virtual networks and IP addresses.
- Under Virtual networks, click Add existing virtual network, select the virtual network and its subnet, then click Add.
- Save the changes.
- Verify that accessing the file share from outside the virtual network results in a “not authorized” error.
Conclusion
By completing this tutorial, you have:
- Deployed a premium, zone‑redundant Azure Files storage account.
- Organized the share with dedicated directories for the finance department.
- Implemented a snapshot strategy to protect against data loss and enable instant restores.
- Hardened the environment by restricting access to a specific virtual network, ensuring secure corporate data sharing.
Mission accomplished!