Azure File Storage

File Storage

What is Azure File Storage?

Azure Files offers a fully managed cloud file share accessible via the industry-standard Server Message Block (SMB) protocol. This means you can lift and shift your on-premises file shares to the cloud without significant code changes. Azure Files is also accessible via the Network File System (NFS) protocol, enabling Linux and macOS clients to mount shares.

Key Features

Use Cases

Getting Started with Azure File Storage

To start using Azure File Storage, you need an Azure Storage account. You can then create a file share within that account.

Creating a File Share

You can create a file share using the Azure portal, Azure CLI, Azure PowerShell, or client libraries.

Tip: When creating a file share, you can select a performance tier (Standard or Premium) and configure redundancy options.

Mounting a File Share

Once created, you can mount the file share to your on-premises servers or Azure virtual machines using the SMB or NFS protocol. The Azure portal provides the necessary connection strings or mount commands.

Example: Mounting with SMB (Windows)


    net use Z: \\yourstorageaccount.file.core.windows.net\yourfileshare /u:AZURE\yourstorageaccount yourstorageaccountkey
            

Example: Mounting with SMB (Linux)


    sudo mount -o vers=3.0 //yourstorageaccount.file.core.windows.net/yourfileshare /mnt/yourshare -o dir_mode=0777,file_mode=0777,cache=none,username=yourstorageaccount,password=yourstorageaccountkey,sec=ntlm
            

Access Control

Azure File Storage supports several methods for controlling access:

Performance Tiers

Tier Description Use Cases
Standard HDD-based, cost-effective for general-purpose file workloads. General file sharing, dev/test environments, application settings.
Premium SSD-based, high performance with low latency for demanding workloads. Databases, I/O-intensive applications, high-performance computing.
Note: Premium file shares have minimum provisioned capacity requirements and are billed based on provisioned capacity and transactions.

Learn More