Attach Azure NetApp Files volumes to virtual machines as guest-mounted file systems
You can provide direct access to Azure NetApp Files volume from your Azure VMware Solution (AVS) virtual machines (VMs) using Network File System (NFS) or Server Message Block (SMB) file shares.
Requirements
To provide access, you need the following resources:
- Access to an Azure subscription with an Azure VMware Solution private cloud.
- A VNet connected to your AVS private cloud via an ExpressRoute gateway.
- A subnet delegated to the
Microsoft.NetApp/volumes
service. - An Active Directory connection for Azure NetApp Files.
- An Azure NetApp Files capacity pool.
- A Linux virtual machine (VM) running on Azure VMware Solution.
- A Windows VM running on Azure VMware Solution.
Map NFS volume to a Linux VM
- Navigate to Azure NetApp Files in the Azure portal.
- Select the Volumes menu then + Add Volume to create a volume.
- In the Basics tab, ensure the Virtual network selected is the VNet connected to your AVS private cloud.
- In the Protocol tab, select NFSv3 as the protocol type.
- In the Review + create tab, select Create to create the volume.
- Navigate to Azure NetApp Files in the Azure portal. Select Volumes.
- Select the volume created in the previous step.
- Select Mount instructions. Make note of the commands needed to mount your volume.
- Mount the Azure NetApp Files volume to your Linux VM.
- Connect to your Linux VM.
- Use the mount commands provided in the Azure portal to mount your Azure NetApp Files volume.
Once you follow the mount commands, the creation and mapping of your Azure NetApp Files NFS volume to a Linux VM is completed.
Map SMB volume to a Windows VM
Before you mount an SMB share, you must create an Active Directory connection. When you create the Active Directory connection in Azure NetApp Files, you can select the AD connection when creating the SMB volume.
- Navigate to Azure NetApp Files in the Azure portal.
- Select the Volumes menu then + Add Volume to create a volume.
- In the Basics tab, ensure the Virtual network selected is the VNet connected to your AVS private cloud.
- In the Protocol tab, select SMB as the protocol type.
- In the Protocol tab, select your Active Directory connection from the drop-down list.
- In the Review + create tab, select Create to create the volume.
- Select the Volumes menu. Select the volume you created.
- Select Mount instructions to obtain the correct path to map the volume (for example,
\\anf.contoso.com/smbvol01
). - Log in to the Windows VM.
- Select the Start button then Computer.
- Select Map Network Drive.
- In the Drive list, select any available drive letter.
- In the Folder box, enter the mount path for the volume.
- Select Finish.
After selecting Finish, the creation and mapping of your Azure NetApp Files SMB volume to a Windows VM is completed.