How to mount an NFS file share
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. 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.
Limitations
NFS Azure file shares are only available for the premium tier.
Regional availability
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.
Prerequisites
Open port 2049 on any client you want to mount your NFS share to.
Important
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 Configuration.
Select Disabled for Secure transfer required.
Select Save.
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.
Validate connectivity
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.
Next steps
- Learn more about Azure Files with our article, Planning for an Azure Files deployment.
- If you experience any issues, see Troubleshoot Azure NFS file shares.
Maklum balas
Kirim dan lihat maklum balas untuk