Azure Files

On this page 8

Azure Files is a fully managed file share service in Microsoft Azure that exposes cloud storage through the SMB and NFS protocols, so servers, desktops and containers can mount a share exactly as they would mount a folder on a traditional file server. In cloud storage, it occupies the space between object storage, which stores data as whole objects behind an HTTP API, and block storage, which attaches a raw disk to a single machine.

The service matters because a large share of enterprise software still expects hierarchical directories, file locks and in-place edits. Azure Files lets such workloads move to the cloud without rewriting the application, while Microsoft handles hardware, patching, replication and capacity.

How Azure Files delivers a network file share

Azure Files works by placing file shares inside an Azure storage account and serving them through managed protocol endpoints. Each share has a name, a quota and a root directory; clients reach it at an address such as account.file.core.windows.net and see ordinary folders and files.

Three access paths exist. SMB 3.x serves Windows, Linux and macOS clients and supports opportunistic locks, byte-range locks and encryption in transit. NFS 4.1 serves Linux workloads with POSIX semantics. The FileREST API lets applications read and write files over HTTPS without mounting anything, which suits automation and serverless code.

The table below summarizes how the protocols differ in daily operation.

ProtocolTypical clientsAuthenticationNotable constraint
SMB 3.xWindows, Linux, macOSIdentity-based or storage account keyNeeds outbound TCP port 445
NFS 4.1Linux servers and containersNetwork rules, no user identityPremium SSD shares only
FileREST APIApplications and scriptsShared key, SAS or Entra IDNo mount, no OS file locks
Access protocols supported by Azure Files

Data written to a share is encrypted at rest with AES-256 and replicated according to the redundancy option of the storage account. Share snapshots capture a read-only, point-in-time copy of an entire share, and soft delete keeps a deleted share recoverable for a configurable retention period.

Performance tiers and billing models

Azure Files offers SSD-based premium shares and HDD-based standard shares, and the choice determines both latency and the way the bill is calculated. Premium shares use a dedicated FileStorage account type, while standard shares live in general-purpose accounts.

Billing follows two models. In the provisioned model, the customer reserves capacity, and with newer versions also IOPS and throughput, and pays for the reservation whether or not it is used. In the pay-as-you-go model, the customer pays for stored data plus transactions and data retrieval, which makes busy shares on a cool tier surprisingly expensive.

The following table compares the main media and access tiers.

TierMediaCost structureBest fit
Premium (provisioned)SSDProvisioned capacity and performanceDatabases, IO-heavy apps, NFS
Transaction optimizedHDDHigher storage, lower transaction priceBusy shares with modest size
HotHDDBalanced storage and transaction priceGeneral team and app shares
CoolHDDLow storage, high transaction priceArchives and rarely read data
Standard (provisioned v2)HDDProvisioned capacity, IOPS and throughputPredictable budgets on HDD
Azure Files tiers and their typical fit

A single share can reach 100 TiB, and an individual file can be up to 4 TiB. Premium shares deliver single-digit millisecond latency for most operations, whereas standard shares typically show higher and more variable latency. Exact IOPS and throughput limits depend on provisioned size and tier and change over time, so they should be confirmed against current Azure documentation before sizing.

Azure Files is the general-purpose managed file service in Azure, and it is easiest to understand next to its neighbors. Azure Blob Storage stores unstructured objects for web-scale access, Azure NetApp Files targets very demanding enterprise file workloads, and Amazon EFS is the closest equivalent on AWS for NFS clients.

The comparison below highlights the structural differences rather than prices, which vary by region.

ServiceData modelMain protocolsTypical workload
Azure FilesHierarchical file shareSMB, NFS, RESTLift-and-shift apps, user shares
Azure Blob StorageFlat object namespaceHTTPS REST, optional NFS 3.0Data lakes, media, backups
Azure NetApp FilesEnterprise NAS volumesSMB, NFS 3 and 4.1SAP, HPC, latency-critical files
Amazon EFSElastic file systemNFS 4.0 and 4.1Linux apps on AWS
Azure managed disksBlock deviceAttached to one VMOperating system and database disks
How Azure Files relates to comparable services

A frequent design mistake is to treat Azure Files as a cheaper replacement for Blob Storage. Object storage scales to far larger datasets at lower cost per gigabyte, while Azure Files is valuable precisely because it preserves file system semantics that object storage lacks.

Identity, security and hybrid access

Azure Files secures SMB access with identity-based authentication, so users see the same NTFS permissions they had on an on-premises file server. Supported sources are on-premises Active Directory Domain Services, Microsoft Entra Domain Services and Microsoft Entra Kerberos for hybrid identities. Share-level permissions are granted through Azure role-based access control, and file-level permissions use Windows ACLs.

Network isolation is equally important. Private endpoints place the share on a private IP address inside a virtual network, and storage firewall rules block public access. Because many internet providers and corporate networks block TCP port 445, remote users usually reach SMB shares through a VPN, ExpressRoute or Azure File Sync rather than directly over the internet.

Azure File Sync extends the service into branch offices. It installs an agent on Windows Server, keeps the server and the cloud share synchronized, and uses cloud tiering to keep only frequently used files on local disk while older files remain as lightweight pointers that are recalled on demand.

Choosing and configuring Azure Files

The right configuration depends on workload pattern, client operating system and recovery needs. The decision table below maps common situations to a recommended setup.

SituationRecommended choiceReason
Replacing a Windows file serverStandard Hot with AD DS authenticationKeeps NTFS ACLs and user experience
Branch offices with slow linksAzure File Sync with cloud tieringLocal cache with central copy
Linux app needing POSIX semanticsPremium NFS 4.1 shareNFS is only offered on SSD shares
Virtual desktop profile containersPremium SMB shareLow latency at user sign-in
Rarely accessed compliance archiveCool tier or Blob StorageLow storage cost, few reads
Decision guide for common Azure Files scenarios

Redundancy should be chosen deliberately. LRS keeps three copies in one datacenter, ZRS spreads them across availability zones, and GRS or GZRS add an asynchronous copy in a paired region. Geo-redundant options are not available for premium shares, and geo-replication does not replace backup, because an accidental deletion replicates just as quickly as valid data.

Limitations and common mistakes

Most problems with Azure Files come from mismatched expectations about latency, networking and cost. A share is a network resource, so chatty applications that open thousands of small files sequentially perform noticeably worse than on local disk.

  • Ignoring transaction charges on pay-as-you-go tiers, which can exceed the storage cost for busy shares.
  • Mounting with the storage account key for end users, which grants full control and bypasses per-user auditing.
  • Expecting NFS on standard shares, which only support SMB and REST.
  • Relying on snapshots as the only backup, since snapshots live in the same storage account as the data.
  • Underprovisioning premium shares, because performance scales with the provisioned size or settings.

Explained without jargon

Azure Files is a shared network drive that lives in a Microsoft data center instead of in a server room down the hall. People and programs open it the same way they open a mapped drive letter or a mounted folder, with the same folders, files and permissions.

The key point is familiarity. Nothing about the way people save or open documents has to change, but the company no longer buys disks, replaces failed hardware or worries about running out of space. It pays for the space and speed it chooses, much like paying a utility bill instead of owning a power plant.

A typical use case

An engineering firm with 120 employees across three offices runs an aging Windows file server holding 6 TB of project drawings. The server is near the end of its warranty, and staff in the two smaller offices complain about slow access to files stored at headquarters.

The IT team creates a standard Hot file share with zone-redundant storage, joins it to the existing Active Directory and copies the NTFS permissions unchanged. In each office, a small Windows Server runs Azure File Sync with cloud tiering, keeping roughly 800 GB of recently used drawings on local disk. Daily Azure Backup snapshots are retained for 30 days.

After the migration, staff open recent files at local speed in every office, older projects are recalled on demand within seconds, and the firm retires the old server without changing a single drive mapping for its users.