Attach Azure NetApp Files volumes to virtual machines as guest-mounted file systems

Completed

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

  1. Navigate to Azure NetApp Files in the Azure portal.
  2. Select the Volumes menu then + Add Volume to create a volume.
  3. In the Basics tab, ensure the Virtual network selected is the VNet connected to your AVS private cloud.
  4. In the Protocol tab, select NFSv3 as the protocol type.
  5. In the Review + create tab, select Create to create the volume.
  6. Navigate to Azure NetApp Files in the Azure portal. Select Volumes.
  7. Select the volume created in the previous step.
  8. Select Mount instructions. Make note of the commands needed to mount your volume.
  9. Mount the Azure NetApp Files volume to your Linux VM.
  10. Connect to your Linux VM.
  11. 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.

  1. Navigate to Azure NetApp Files in the Azure portal.
  2. Select the Volumes menu then + Add Volume to create a volume.
  3. In the Basics tab, ensure the Virtual network selected is the VNet connected to your AVS private cloud.
  4. In the Protocol tab, select SMB as the protocol type.
  5. In the Protocol tab, select your Active Directory connection from the drop-down list.
  6. In the Review + create tab, select Create to create the volume.
  7. Select the Volumes menu. Select the volume you created.
  8. Select Mount instructions to obtain the correct path to map the volume (for example, \\anf.contoso.com/smbvol01).
  9. Log in to the Windows VM.
  10. Select the Start button then Computer.
  11. Select Map Network Drive.
  12. In the Drive list, select any available drive letter.
  13. In the Folder box, enter the mount path for the volume.
  14. Select Finish.

After selecting Finish, the creation and mapping of your Azure NetApp Files SMB volume to a Windows VM is completed.