How to mount an NFS file share (preview)
Azure Files is Microsoft's easy to use cloud file system. Azure file shares can be mounted in Linux distributions using either the Server Message Block protocol (SMB) or the Network File System (NFS) protocol (preview). This article is focused on mounting with NFS, for details on mounting with SMB, see Use Azure Files with Linux. For details on each of the available protocols, see Azure file share protocols.
While in preview, NFS Azure file shares have the following limitations:
- Only available for the premium tier.
- If a storage account was created before registering for the NFS feature, NFS file shares cannot be created in that storage account. NFS file shares can only be created in storage accounts that were created after registering for the NFS feature.
Azure NFS file shares is supported in all the same regions that support premium file storage.
For the most up-to-date list, see the Premium Files Storage entry on the Azure Products available by region page.
NFS shares can only be accessed from trusted networks. Connections to your NFS share must originate from one of the following sources:
Use one of the following networking solutions:
Disable secure transfer
Sign in to the Azure portal and access the storage account containing the NFS share you created.
Select Disabled for Secure transfer required.
Mount an NFS share
Once the file share is created, select the share and select Connect from Linux.
Enter the mount path you'd like to use, then copy the script.
Connect to your client and use the provided mounting script.
You have now mounted your NFS share.
If your mount failed, it's possible that your private endpoint was not setup correctly or is inaccessible. For details on confirming connectivity, see the Verify connectivity section of the networking endpoints article.