DEV Community

Olalekan Oladiran
Olalekan Oladiran

Posted on

Implementing Secure and Efficient File Sharing Solutions for Geographically Dispersed Offices

How to establish and set up an Azure Files storage account.

  • In the market place search for storage account and select create Image description
  • In the project details, select the resource group you just created Image description
  • Under the instance details, supply the name for your storage account. Image description
  • Change performance to Premium Image description
  • Change Premium account type to File shares Image description
  • Select Zone-redundant storage in the redundancy drop down Image description
  • click review Image description
  • Click create after passing validation Image description
  • Wait for it to deploy Image description
  • Click Go to resource Image description

How to establish and set up a directory-based file share.

  • Select File shares in the Data storage section Image description
  • Click + File share Image description
  • Provide a name for the new file share Image description
  • Leave other settings as default and click review + create Image description
  • Once validation is passed, click create Image description

How to include a directory in the shared file.

  • Click + Add directory in the file share overview page Image description
  • Type the name for your directory and click ok Image description
  • Select Browse in the overview section Image description
  • Select the newly created directory Image description
  • Click upload, select browse for file and then click upload again Image description
  • Your file will be displayed under your directory Image description

How to Set up and check snapshots.

-In the file share overview page, select snapshot under operation section
Image description

  • Click + Add snapshot Image description
  • Note that the comment is optional. Click Ok Image description
  • Click the snapshot and verify that both the directory and the uploaded file are included Image description Image description

Practice restoring a file using snapshots.

  • Go back to the file share, in the overview page, click browse Image description
  • Click on the uploaded file and and click delete in the file properties Image description
  • Click yes to confirm delete Image description
  • Click snapshot in the operations section Image description
  • Select the snapshot created before Image description
  • Click on the file you want to restore and click restore Image description
  • Supply a restored file name and click Ok Image description
  • You can verify the restored file by navigating to your directory to check by clicking browse.

How to set up a storage access restriction to only certain virtual networks.

  • Search for virtual network and click create Image description
  • Fill in the project details which comprises of Subscription and Resource group Image description
  • Provide a name for your virtual network and leave other parameters as default Image description
  • Click review + create Image description
  • Click create once validation is passed Image description
  • Once the deployment is complete, click go to resource Image description
  • Under settings section, click subnets Image description
  • Click default subnet Image description
  • Tick Microsoft.Storage in the services drop-down under service endpoints section, leave other settings as default and click save Image description

How to access the storage account through the virtual network you just established.

  • Go back to the files storage account and select Networking under Security + networking, select Enabled from selected virtual networks and IP addresses under public network access Image description
  • Click Add existing virtual network under virtual network and click the drop-down under virtual network. Image description
  • Tick your virtual network Image description
  • Tick your subnet Image description
  • Then click Add Image description
  • Select Storage browser Image description
  • Click File share Image description
  • Click the file under file share Image description
  • A pane showing This request is not authorized indicates that you are not connecting from the virtual network. Image description

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay