DEV Community

Cover image for Provide shared file storage for the company offices
Samuel
Samuel

Posted on

Provide shared file storage for the company offices

What is Shared file storage?

Shared file storage refers to a system where multiple users and devices can access and share the same files and data from a central location. This setup enhances collaboration, simplifies data management, and improves backup and archiving processes.

Key features

  • Centralized Storage: Instead of storing files on individual computers, shared storage consolidates data in one place.
  • Accessibility: Authorized users can access these files from different devices and locations, promoting collaboration and teamwork.
  • Enhanced Collaboration: Multiple users can work on the same files simultaneously, making it easier to share information and work together in real-time.
  • Simplified Management: Centralized storage simplifies file management, backups, and archiving, as all data is stored in one place.
  • Cost-Effective: Shared storage can be more cost-effective than maintaining separate storage for each user, especially in larger organizations.

In this article, i am going to focus on scenario of a company which 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.

Skilling tasks

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

Create and configure a storage account for Azure Files.

1. Create a storage account for the finance department’s shared files.

  • In the portal, search for and select Storage
    accounts.
    search for storage accounts

  • Select + Create.
    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 the name

    meets the naming requirements.
    name your storage account

  • Set the Performance to Premium.

  • Set the Premium account type to File shares.

  • Set the Redundancy to Zone-redundant storage.

  • Select Review and then Create the storage
    account.
    modifying storage account settings and reeview
    create

  • Wait for the resource to deploy.
    deployment validation

  • Select Go to resource.
    go to resource created

storage account overview

Create and configure a file share with directory.

2. Create a file share for the corporate office.

  • In the storage account, in the Data storage
    section, select the File shares blade.
    File share blade

  • Select + File share and provide a Name.
    name the share

  • Review the other options, but take the defaults.

  • Select Create.

    In the storage account, in the Data storage section, select the File shares blade.
    Select + File share and provide a Name.
    Review the other options, but take the defaults.
    Select Create

2. Add a directory to the file share for the finance department.

  • Select your file share and select + Add
    directory.
    Add directory

  • Name the new directory finance.
    Name the directory
    confirmed deployment successful

  • Select Browse and then select the finance
    directory.

  • Notice you can Add directory to further organize
    your file share.

  • Upload a file of your choosing.
    browse to directory and upload a file

Configure and test snapshots.

1. Similar to blob storage, you need to protect against accidental deletion of files. You decide to use snapshots.

  • Select your file share.
  • In the Operations section, select the Snapshots blade. Navigate to snapshot in the operation blade
  • Select + Add snapshot. The comment is optional Select OK. add snapshot confirm snapshot successful
  • Select your snapshot and verify your file directory and the uploaded file are included.

2. Practice using snapshots to restore a file.

  • Return to your file share.
  • Browse to your file directory.
  • Locate your uploaded file and in the Properties
    pane select Delete. Select Yes to confirm the
    deletion.
    navigate and delete uploaded file

  • Select the Snapshots blade and then select your
    snapshot.

  • Navigate to the file you want to restore,

  • Select the file and the select Restore.
    select file and select restore

  • Provide a Restored file name.

  • Verify your file directory has the restored file.
    confirm restore successful
    Restore file verified

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.

  • Search for and select Virtual networks.
    search and select Virtual network

    • Select Create. Select your resource group. and give the virtual network a name. click on create validation

    Take the defaults for other parameters, select Review + create, and
    then Create.
    Enter virtual network name, create and review
    Create

Wait for the resource to deploy.
wait while resources deployed

 Select Go to resource.
Enter fullscreen mode Exit fullscreen mode

open resources created

  • In the Settings section, select the Subnets blade.
    Select Subnet blade

    • Select the default subnet.
    • In the Service endpoints section, choose Microsoft.Storage in the Services drop-down. Choose Microsoft.Storage in service drop-down
    • Do not make any other changes.
    • Be sure to Save your changes.

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

  • Return to your files storage account.
  • In the Security + networking section, select the Networking blade.
    • Change the Public network access to Enabled from selected virtual networks and IP addresses.

enable from selected virtual networks
enable virtual network and IP addresses

  • In the Virtual networks section, select Add existing virtual network.
  • Select your virtual network and subnet, select Add. select add existing virtual network, select virtual network and subnet
  • Be sure to Save your changes.

    • Select the Storage browser and navigate to your file share. show file share on storage browser

verifying the storage fileshare accessibilty

Top comments (0)