DEV Community

Cover image for Creating a Shared File Storage for a Company using Azure.
Blessing Azeta
Blessing Azeta

Posted on • Edited on

1 1 1 1 1

Creating a Shared File Storage for a Company using Azure.

Provide shared file storage for the company offices.

This is a continuation of the previous article. The 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.

Create and configure a storage account for Azure Files.

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

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

  • Select + Create.
    create

  • For Resource group select Create new. Give your resource group a name and select OK to save your changes.
    createnew

  • Provide a Storage account name. Ensure the name meets the naming requirements.
    storagename

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

  • Wait for the resource to deploy.

  • Select Go to resource.
    deployment

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

  • Select + File share and provide a Name.
    fileshare
    filesharename

  • Review the other options, but take the defaults.

  • Select Create
    fileshare

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

  • Name the new directory finance.
    Financedirectory

  • Select Browse and then select the finance directory.
    financedirectory

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

  • Upload a file of your choosing.
    uploadfile

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

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

Practice using snapshots to restore a file.

  • Return to your file share.
  • Browse to your file directory.
    browsedirectory

  • Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion.
    deletefile

  • Select the Snapshots blade and then select your snapshot.
    snpashot

  • Navigate to the file you want to restore,

  • Select the file and the select Restore.
    restorefile

  • Provide a Restored file name.
    restorefilename

  • Verify your file directory has the restored file.
    filerestored

Configure restricting storage access to selected virtual networks.

This requires a virtual network with subnet. In a production environment these resources would already be created.

  • Search for and select Virtual networks.
    vnetworks

  • Select Create.
    createvnet

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

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

  • Wait for the resource to deploy.

  • Select Go to resource.
    gotoresource

  • In the Settings section, select the Subnets blade.

  • Select the default subnet.
    defaultsubnet

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

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

  • Change the Public network access to Enabled from selected virtual networks and IP addresses.

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

  • Select your virtual network and subnet, select Add.

  • Be sure to Save your changes.
    vnetazeta

  • Select the Storage browser and navigate to your file share.
    myfileshare

  • Verify the message not authorized to perform this operation. You are not connecting from the virtual network.
    errormessage

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • --last-failed: Zero in on just the tests that failed in your previous run
  • --only-changed: Test only the spec files you've modified in git
  • --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Practical examples included!

Watch Video 📹️

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay