DEV Community

Cover image for Exercise: Provide Shared File Storage for Company Offices
Kosisochukwu Ugochukwu
Kosisochukwu Ugochukwu

Posted on • Edited on

Exercise: Provide Shared File Storage for Company Offices

INTRODUCTION
In today's networked business environment, shared file storage is critical for providing seamless communication, data accessibility, and efficient workflows between company offices. Implementing a shared file storage solution is more than simply a technology update; it's a strategic decision that may change the way teams communicate and handle data.

Create and configure a storage account for Azure Files.
First Create a storage account for the finance department’s shared files.

  • Steps are shown below In the portal, search for and select Storage accounts.

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.

Resource group

  • Provide a Storage account name. Ensure the name meets the naming requirements.
  • Set the Performance to Premium.
  • Set the Premium account type to File shares.
  • Set the Redundancy to Zone-redundant storage. Create the storage account
  • Select Review and then Create the storage account.

Create the storage account

  • Wait for the resource to deploy.
  • Select Go to resource.

Go to resource

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.

Data storage section

  • Select + File share and provide a Name.

File share

  • Review the other options, but take the defaults.
  • Select Create

Select Create

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.
  • Name the new directory finance. Add directory
  • Select Browse and then select the finance directory.

Browse finance directory

  • Notice you can Add directory to further organize your file share.
  • Upload a file of your choosing.

Upload

Configure and test snapshots.

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.

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

Add snapshot

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

Browse to your file directory

  • Locate your uploaded file and in the Properties pane select Delete.

Properties pane

  • Select Yes to confirm the deletion.

confirm the deletion

  • 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. restore
  • Provide a Restored file name.
  • Verify your file directory has the restored file.

file directory
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

Virtual networks

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

Create virtual network

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

Review + create

  • Wait for the resource to deploy.
  • Select Go to resource.

Go to resource

  • In the Settings section, select the Subnets blade.

Subnets blade

  • Select the default subnet.
  • 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.

Microsoft.Storage

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

  • Return to your files storage account.

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.

networking

  • Select the Storage browser and navigate to your file share.
  • Verify the message not authorized to perform this operation

not authorized to perform this operation

Benefits of Shared File Storage
Increased Productivity: Workers focus more on important activities and spend less time looking for files.
Cost Savings: Redundancy and the requirement for numerous storage systems are reduced when storage is shared.
Enhanced Data Management: Data governance and compliance are made easier by centralized storage.
Enhanced Collaboration: Teams in different places may collaborate on projects with ease, increasing productivity and innovation.

Conclusion
One essential component of contemporary business operations is the provision of shared file storage for corporate offices. Businesses may support their long-term growth, improve cooperation, and safeguard important data by putting a well-thought-out solution into place. Whether using cloud storage, hybrid systems, or on-premises servers, the best strategy will rely on the particular requirements and goals of the company.

Top comments (0)