DEV Community

Cover image for How to Create a Shared File Storage Account for Company Offices
Onyemachi Doris
Onyemachi Doris

Posted on

How to Create a Shared File Storage Account for Company Offices

Table of Contents

  • Introduction
  • Types of Shared Files Storage Solutions
  • Guidelines to Creating a Shared Files Storage Account in Azure
  • Conclusion

Introduction

In today's digital world, shared file storage is a crucial tool for businesses as it facilitates easy collaboration and effective data management. Having dependable, safe, and easily accessible storage is essential to sustaining business productivity, whether it is used for team projects, company documents, or shared resources.

Types of Shared Files Storage Solutions

There are three primary types of storage solutions businesses can adopt to provide shared file storage. They are cloud-based, on-premises, and hybrid models.

Cloud-Based Storage
Cloud-based storage is increasingly popular due to its scalability and ease of access. With cloud storage services like Dropbox, Google Drive, and Microsoft OneDrive, users may store files on remote servers and retrieve them from any location with an internet connection.

On-Premises Storage
On-premises storage refers to physical hardware that is kept within the organization's infrastructure, such as Storage Area Networks (SAN) or Network Attached Storage (NAS). Although it can demand a large amount of IT resources, this strategy gives total control over data.

Hybrid Storage
Hybrid storage offers the advantages of both on-premises and cloud systems. Here, data can be stored on-premises for sensitive files and in the cloud for scalability and easy access.

Guidelines to Creating a Shared Files Storage Account in Azure

Assuming a company is geographically dispersed with offices in different locations. Of course they will 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 and some content should only be accessed from selected corporate virtual networks. The guidelines of how to achieve this is explained as follows;

Step 1: Create and configure a storage account for Azure Files.

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

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

Image description

  • Select + Create.

Image description

  • 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.

Image description

  • Set the Performance to Premium.

  • Set the Premium account type to File shares.

  • Set the Redundancy to Zone-redundant storage. You might want to look at the meaning of Zone-redundant storage in my previous article.

  • Select Review and then Create the storage account.

Image description

  • Wait for the resource to deploy.

  • Select Go to resource.

Image description

Step 2: Create and configure a file share with directory.

Create a file share for the corporate office.

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

  • Select + File share and provide a Name.

Image description

  • Review the other options, but take the defaults.

  • Select Create

Image description

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

  • Select your file share and select + Add directory.

Image description

  • Name the new directory finance.

Image description

  • Select Browse and then select the finance directory.

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

Image description

  • Upload a file of your choosing.

Image description

Step 3: Configure and test snapshots.

Similar to blob storage, you need to protect against accidental deletion of files. You can use Snapshots to achieve this.

  • Select your file share.

  • In the Operations section, select the Snapshots blade.

  • Select + Add snapshot. The comment is optional. Select OK.

Image description

  • Select your snapshot and verify your file directory and uploaded file are included.

Image description

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.

Image description

  • Select the Snapshots blade and then select your snapshot.

Image description

  • Navigate to the file you want to restore.

  • Select the file and the select Restore.

Image description

  • Provide a Restored file name.

Image description

  • Verify your file directory has the restored file.

Image description

Step 4: Configure restricting storage access to selected virtual networks.

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.

Image description

  • Select Create.

Image description

  • Select your resource group. and give the virtual network a name.

Image description

  • Take the defaults for other parameters, select Review + create, and then Create.

Image description

  • Wait for the resource to deploy.

  • Select Go to resource.

Image description

  • In the Settings section, select the Subnets blade.

  • Select the default subnet.

Image description

  • 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.

Image description

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.

  • In the Virtual networks section, select Add existing virtual network.

  • Select your virtual network and subnet, select Add.

  • Be sure to Save your changes.

Image description

  • 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.

Image description

Conclusion

Modern company operations depend on the provision of safe, easily accessible, and well-managed shared file storage. It's important to evaluate your organization's needs, set up proper infrastructure, and apply best practices for security and administration regardless of whether you choose a cloud-based, on-premises, or hybrid storage solution. A shared file storage account can improve productivity and collaboration in an organisation while protecting their valuable data if used properly.

Don't forget to like, comment, share and subscribe!

Top comments (0)