DEV Community

Cover image for How to provide shared file storage for company offices.
EMMANUEL
EMMANUEL

Posted on

How to provide shared file storage for company offices.

Shared file storage is a type of storage system that allows multiple users, computers, or applications to access the same set of files from different locations at the same time—just like a shared network drive. It is commonly used in workplaces or cloud environments where teams need to collaborate, share, and update files without having to copy or move them manually.

For example: A company is geographically dispersed with offices in different locations. These offices need a way to share files and disseminate information. For example, the Finance department needs to confirm cost information for auditing and compliance. This file shares should be easy to access and load without delay. Some content should only be accessed from selected corporate virtual networks.

Architecture diagram of the Task

Pictorial Explanation

To provide shared file storage for a company office we need to

1.Create a storage account specifically for file shares.
2.Configure a file share and directory.
3.Configure snapshots and practice restoring files. And
4.Restrict access to a specific virtual network and subnet.

Create and configure a storage account for Azure Files
1.To create a storage account for the finance department’s shared files. we follow these steps:

(a) Login into the Azure portal, In the portal, search for and select the grayed Storage accounts

Grayed storage account

(b) Select + Create

+ Create

(c) Go to the Resource group select Create new. Give your resource group a name and select OK to save your changes.

(d) Provide a Storage account name. Ensure the name meets the naming requirements. Set the Performance to** Premium**.

Storage name and premium performance

(e) Set the Premium account type to File shares

Premium account type

(f) Set the Redundancy to Zone-redundant storage

Zone redundant storage

(g) Select Review and then Create the storage account.

Review

Create

(h) Wait for the resource to deploy. Select Go to resource

Go to resources

Create and configure a file share with directory.
1.To create a file share for the corporate office. Steps:

(a)In the storage account, in the Data storage section, select the File shares blade.

Data storage blade

(b) Select + File share

+ file share

(c) Provide a Name.

Filename

(d)Review the other options, but take the defaults. Select Create

Create

Go to resource

  1. Add a directory to the file share for the finance department. For future testing, upload a file. Steps:

(a) Select your file share and select + Add directory.

+Add directory

(b) Name the new directory finance

New directory

(c) Select** Browse** and then select the finance directory

finance directory

(d) Notice you can Add directory to further organize your file share.

To further organize file share

(e) Upload a file of your choosing.

Upload

Configure and test snapshots
1.Similar to blob storage, you need to protect against accidental deletion of files. I decide to use snapshots. Steps:

(a) Select your file share

My file share

(b) In the Operations section, select the Snapshots blade

Operation

(c) Select + Add snapshot. The comment is optional. Select OK

Add snapshot

(d) Select your snapshot and verify your file directory and uploaded file are included

Verifing my directory

2.Practice using snapshots to restore a file. Steps:

(a) Return to your file share. Browse to your file directory

Browse

(b) Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion

Properties

Delete

(c) Select the Snapshots blade and then select your snapshot.

Snapshot

(d) Navigate to the file you want to restore, Select the file and the select Restore

Restore

(e) Provide a Restored file name

Restored file name

(f) Verify your file directory has the restored file

Restored file

Configure restricting storage access to selected virtual networks

1.This tasks in this section require a virtual network with subnet. In a production environment these resources would already be created. Steps:

(a) In your portal, search for and select Virtual networks

Virtual networks

(b) Select Create.

Create

(c) Select your resource group. and give the virtual network a name

Virtual network name

(d) Take the defaults for other parameters, select Review + create, and then Create

Review + create
Create

Create

(e) Wait for the resource to deploy. Select Go to resource.

Go to resources

(f) In the Settings section, select the Subnets blade

Subnet

(g) Select the default subnet

Default

(h) In the Service endpoints section choose Microsoft Storage in the Services drop-down.Do not make any other changes. Be sure to Save your changes.

Service endpoints

2.The storage account should only be accessed from the virtual network you just created. Steps:

(a) Return to your files storage account. In the Security + networking section, select the Networking blade.

Networking

(b) Change the Public network access to Enabled from selected virtual networks and IP addresses

Public network access

(c) In the Virtual networks section, select Add existing virtual network

Virtual networks

(d) Select your virtual network and subnet, select Add.

virtual network and sublet

(f) Be sure to Save your changes

Save your changes

(g) Select the Storage browser and navigate to your file share.
Verify the message not authorized to perform this operation. You are not connecting from the virtual network

verifing virtual network configuration

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

nice