Lesson 1 of 2 Azure Files Shares

Creating and Configuring Azure File Shares

Azure Files offers managed SMB and NFS shares. This lesson explains protocols, tiers and billing models, share settings and how clients connect.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish between standard and premium file shares and their billing models.
  • Describe the protocols supported and their requirements.
  • Explain how clients mount shares and why port 445 matters.

Protocols and billing models

Azure Files supports two protocols. SMB (versions 2.1, 3.0 and 3.1.1) is used by Windows, Linux and macOS clients, supports identity-based authentication and encryption in transit, and is available in standard and premium shares. NFS 4.1 is used by Linux clients, authenticates by network rather than by user, and is available only in premium shares, which must be reached through a private endpoint or a service endpoint, because NFS relies on network-level security rather than user authentication.

Standard shares live in general-purpose v2 accounts on HDD storage. With the pay-as-you-go model they use access tiers chosen per share: transaction optimized (heavy transaction workloads), hot (general purpose) and cool (online archive), each with different storage and transaction prices. The provisioned v2 model instead charges for provisioned storage, IOPS and throughput. Premium shares live in premium file share accounts on SSDs and are provisioned: performance scales with the provisioned size, and billing is for the provisioned capacity whether used or not. The following comparison summarizes the options.

Standard (HDD)
AccountGeneral-purpose v2
ProtocolsSMB
BillingPay-as-you-go tiers or provisioned v2
RedundancyLRS, ZRS, GRS, GZRS
Choose when General file shares, cost-sensitive
Premium (SSD)
AccountPremium file shares
ProtocolsSMB and NFS 4.1
BillingProvisioned
RedundancyLRS, ZRS
Choose when Databases, low latency, NFS
Scenario questions

Choosing a share type

Exam skills 2.3.1

Choose the share type and billing model for each workload.

Log in to try this activity Interactive activities are free with an account.

Creating a share

A share is created on the account's File shares page with a name (3 to 63 lowercase characters), a tier or provisioned size and, for standard shares, a quota that caps its size. Standard shares can grow to 100 TiB when large file shares is enabled on the account (it is enabled by default for new LRS and ZRS accounts). Changing a standard share's tier is possible after creation and incurs transaction charges for the data moved.

The account's File share settings control SMB security: the allowed SMB versions, authentication methods (NTLMv2 and Kerberos), Kerberos ticket encryption, and SMB channel encryption (AES-128-CCM, AES-128-GCM, AES-256-GCM). Premium SMB shares can enable SMB Multichannel for higher throughput from a single client.

True or false

Share settings

Exam skills 2.3.1

Check how shares are sized and secured.

Log in to try this activity Interactive activities are free with an account.

Mounting and connecting

The share's Connect page generates a script for Windows, Linux or macOS. On Windows, the script stores the storage account key with cmdkey and maps a drive with New-PSDrive or net use to \\stcontoso.file.core.windows.net\share. On Linux, mount -t cifs mounts SMB shares and mount -t nfs mounts NFS shares. SMB uses TCP port 445, which many internet service providers and corporate firewalls block; in that case clients connect over a VPN or ExpressRoute with a private endpoint, or use Azure File Sync.

# Windows PowerShell: map drive Z: to an Azure file share using the account key
cmdkey /add:"stcontoso.file.core.windows.net" /user:"localhost\stcontoso" /pass:"<storage-account-key>"
New-PSDrive -Name Z -PSProvider FileSystem -Root "\\stcontoso.file.core.windows.net\projects" -Persist

Azure File Sync caches Azure file shares on Windows Servers on-premises: a Storage Sync Service holds a sync group with one cloud endpoint (the Azure file share) and server endpoints (folders on registered servers). Cloud tiering keeps frequently used files locally and replaces others with pointers, so a small local server can front a large share.

The following diagram compares a branch office's blocked path to an Azure file share with a path through a VPN and a private endpoint.

Reaching an Azure file share from a branch whose ISP blocks TCP 445. The branch cannot reach the public SMB endpoint, so a site-to-site VPN connects it to Azure and a private endpoint for the storage account's file sub-resource, with DNS resolving to the private address, carries SMB inside the tunnel. Workstations keep using SMB.
The scenario is illustrative.
Troubleshooting

Connecting to a share

Exam skills 2.3.1

Find the fix for each connection problem.

Log in to try this activity Interactive activities are free with an account.
Worked example

A share that will not mount

Users in a branch office cannot map an Azure file share; the error indicates that the network path was not found. Users on Azure VMs in the same region map the share successfully. The branch office's ISP blocks outbound TCP port 445. The company wants users to keep using SMB with minimal change to their workstations. What should you do?

Because port 445 is blocked, the branch cannot reach the public SMB endpoint. Connect the branch to Azure with a site-to-site VPN and give the storage account a private endpoint for the file sub-resource with DNS resolving to its private IP, or deploy Azure File Sync on a local Windows Server so users map a local share. Changing the share tier or quota has no effect on connectivity, and NFS would require Linux clients and a premium account.

Check yourself

Which storage account type is required for an NFS file share?

Show answer

A premium file shares (FileStorage) account; NFS is not available on standard shares.

Exam Tips

Remember for the exam

  • NFS shares require a premium file share account and network-restricted access.
  • SMB uses TCP port 445; if it is blocked, use a VPN or ExpressRoute with a private endpoint, or Azure File Sync.
  • Standard tiers: transaction optimized, hot and cool. Premium shares are billed on provisioned size.
  • Large file shares allow standard shares of up to 100 TiB.