DEV Community

Cover image for Deploying Secure Azure File Shares: Premium Performance and Network Security
Louis Oodo
Louis Oodo

Posted on

Deploying Secure Azure File Shares: Premium Performance and Network Security

Deploying Secure Azure File Shares: Premium Performance and Network Security

Introduction

Azure Files offers fully managed file shares in the cloud that are accessible via the industry-standard SMB and NFS protocols. For departments like Finance, balancing high performance with strict network security is critical. In this guide, we will walk through deploying a Premium Azure File share, protecting data with snapshots, and restricting access to a specific Virtual Network to ensure enterprise-grade security.


Create and configure a storage account for Azure Files.

Create a storage account for the finance department’s shared files. Learn more about storage accounts for Azure Files deployments.

  1. In the portal, search for and select Storage accounts.
    Storage accounts

  2. Select + Create.
    Create

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

  4. Provide a Storage account name. Ensure the name meets the naming requirements.
    Storage account name

  5. Set the Performance to Premium.
    Premium

  6. Set the Premium account type to File shares.
    File shares

  7. Set the Redundancy to Zone-redundant storage.
    Zone-redundant storage

  8. Select Review and then Create the storage account.
    Review and then Create

  9. Wait for the resource to deploy.
    resource to deploy

  10. Select Go to resource.
    Go to resource


Create and configure a file share with directory.

Create a file share for the corporate office. Learn more about Azure File tiers.

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

  2. Select + File share and provide a Name.
    + File share
    Name

  3. Review the other options, but take the defaults.

  4. Select Create
    Create
    Create

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

  1. Select your file share and select + Add directory.
    Add directory

  2. Name the new directory finance.
    finance

  3. Select Browse and then select the finance directory.
    Browse
    finance

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

  5. 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. Learn more about file snapshots.

  1. Select your file share.

  2. In the Operations section, select the Snapshots blade.
    Snapshots

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

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

Practice using snapshots to restore a file.

  1. Return to your file share.
    finance

  2. Browse to your file directory.
    Browse

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

    yes

  4. Select the Snapshots blade and then select your snapshot.
    snapshot

  5. Navigate to the file you want to restore,

  6. Select the file and the select Restore.
    Restore

  7. Provide a Restored file name.
    Restored file name

  8. Verify your file directory has the restored file.

file directory has the restored file


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.

  1. Search for and select Virtual networks.
    Virtual networks

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

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

  4. Wait for the resource to deploy.

  5. Select Go to resource.
    Go to resource

  6. In the Settings section, select the Subnets blade.
    Settings

  7. Select the default subnet.
    default

  8. In the Service endpoints section choose Microsoft.Storage in the Services drop-down.
    Microsoft.Storage

  9. Do not make any other changes.

  10. Be sure to Save your changes.
    Save

The storage account should only be accessed from the virtual network you just created. Learn more about using private storage endpoints.

  1. Return to your files storage account.
    files storage ac

  2. In the Security + networking section, select the Networking blade.
    Security + networking

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

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

  5. Select your virtual network and subnet, select Add.
    virtual network

  6. Be sure to Save your changes.
    Save

  7. Select the Storage browser and navigate to your file share.
    Storage browser

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


Conclusion

By completing these steps, you have successfully deployed a high-performance, resilient file storage solution. Using Premium File Shares with Zone-redundant storage (ZRS) ensures low latency and protection against datacenter failures. Furthermore, by implementing Service Endpoints and restricting traffic to a specific Virtual Network, you have significantly reduced the attack surface of your financial data. This layered approach to security and availability represents best practices for managing sensitive departmental data in Azure.

Top comments (0)