DEV Community

Cover image for How to Configure Azure File Shares for Secure Enterprise File Storage
forsyth famous
forsyth famous

Posted on

How to Configure Azure File Shares for Secure Enterprise File Storage

Introduction

Organizations with multiple office locations often require a centralized and secure way to share files across departments and teams.

With Azure File Shares, businesses can store and access files in the cloud while maintaining scalability, availability, and secure network access.

In this guide, we’ll configure Azure File Shares in Microsoft Azure and explore how organizations can securely share files across distributed environments.

By the end of this tutorial, you’ll know how to:

  • Create and configure Azure File Shares
  • Upload and manage files in Azure Storage
  • Configure secure network access
  • Understand Azure Files networking and access controls

Let’s build a secure enterprise cloud file sharing solution.

What are Azure File Shares?

Azure File Shares provide cloud-based file storage that can be accessed across multiple devices and locations using the SMB protocol.

Organizations can use Azure File Shares to:

  • Share files across departments and office locations
  • Centralize enterprise file storage
  • Improve scalability and availability
  • Restrict access using networking and identity controls
  • Replace or extend traditional on-premises file servers

Think of it as a cloud-based network drive hosted securely inside Microsoft Azure.

Scenario

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.

These file shares should be easy to access and load without delay. Some content should only be accessed from selected corporate virtual networks.

Prerequisites

Before we begin, ensure you have:

  • A Microsoft Azure account
  • An active Azure subscription
  • A stable internet connection
  • Access to the Azure Portal

Now come with me, let’s build a secure cloud file-sharing solution.

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. storage
    • Select + Create. create
    • For Resource group select Create new. Give your resource group a name and select OK to save your changes. new rg
    • Provide a Storage account name. Ensure the name meets the naming requirements. unique
    • Set the Performance to Premium. premium
    • Set the Premium account type to File shares. fileshare
    • Set the Redundancy to Zone-redundant storage. ZRS
    • Select Review and then Create the storage account. review create
    • Wait for the resource to deploy. deploy
    • Select Go to resource. resource

Create and configure a file share with directory.

  1. Create a file share for the corporate office.

    • In the storage account, in the Data storage section, select the File shares blade. data storage
    • Select + File share and provide a Name. + name
    • Review the other options, but take the defaults. default
    • Select Create Reviw Ima
  2. 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. add
    • Name the new directory finance. finance
    • Select Browse and then select the finance directory. browse
    • Notice you can Add directory to further organize your file share. dire
    • Upload a file of your choosing. upload uploaddd

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. fileshare
    • In the Operations section, select the Snapshots blade. operation
    • Select + Add snapshot. The comment is optional. Select OK. addok
    • Select your snapshot and verify your file directory and uploaded file are included. snapshotss director files
  2. Practice using snapshots to restore a file.

    • Return to your file share. fileshare
    • Browse to your file directory. file dir
    • Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion. locate delete confirm
    • Select the Snapshots blade and then select your snapshot. snap
    • Navigate to the file you want to restore, restore
    • Select the file and the select Restore. clIck
    • Provide a Restored file name. name
    • Verify your file directory has the restored file. verify

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. vnet
      • Select Create. Select your resource group. and give the virtual network a name. create vnet
      • Take the defaults for other parameters, select Review + create, and then Create. default review create
      • Wait for the resource to deploy. wait
      • Select Go to resource. goto
    • In the Settings section, select the Subnets blade. subnets
      • Select the default subnet. default
      • In the Service endpoints section choose Microsoft.Storage in the Services drop-down. mst
      • Do not make any other changes. nochange
      • Be sure to Save your changes. save
  2. The storage account should only be accessed from the virtual network you just created.

    • Return to your files storage account. filestorage
    • In the Security + networking section, select the Networking blade. networking
      • Change the Public network access to Enabled from selected virtual networks and IP addresses. vnets
      • In the Virtual networks section, select Add existing virtual network. existing
      • Select your virtual network and subnet, select Add. Add
      • Be sure to Save your changes. Save
    • Select the Storage browser and navigate to your file share. browser
    • Verify the message not authorized to perform this operation. You are not connecting from the virtual network. not authorized

Conclusion

Congratulations on successfully configuring Azure File Shares in Microsoft Azure.

In this lab, we explored how Azure File Shares can provide centralized, scalable, and secure cloud-based file storage for geographically distributed organizations.

We also configured network restrictions to help protect sensitive organizational data and control access from approved virtual networks.

Some key takeaways from this lab include:

  • Azure File Shares provide centralized cloud file storage
  • Azure networking controls help secure sensitive data
  • Azure Files supports distributed enterprise workloads
  • Cloud-based file services improve accessibility and scalability

By completing this exercise, you have taken another important step in building practical Azure storage and cloud administration skills.

See you in the next article.

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Welldone!