Access Azure Virtual Machine File share using File Explorer on local computer.acces vm file share

Andrew Berardi 0 Reputation points

I need to map a drive to an Azure VM. The local computer has an application that requires a map drive to the server that has the application and the data. How can I do this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,919 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Riaan-VS 346 Reputation points

    Hi Andrew,

    If i understand correctly you have a Virtual Machine hosted in Azure with data on it.
    And your local client needs to access this data through a drive map?

    You would need some kind of connection from on-premises to Azure I.E. a S2S VPN, P2S VPN, ExpressRoute etc.

  2. Prrudram-MSFT 18,781 Reputation points

    Hello Andrew Berardi,

    Thank you for reaching out to the Microsoft Q&A platform.

    If you have already been assigned the Contributor role in Azure, you should have the necessary permissions to access the Azure VM using RDP and the P2S VPN. As a Contributor, you can manage all resources within a resource group, including virtual machines.

    Therefore, you should be able to access the Azure VM drives with File Explorer on your local laptop without any additional role assignments. You can simply connect to the Azure VM using RDP and the P2S VPN, and then share the drives or folders that you want to access from your local laptop.

    Once the drives or folders are shared, you can map them as network drives on your local laptop using File Explorer. To do this, right-click on "This PC" in File Explorer and select "Map network drive". Then, enter the UNC path of the shared drive or folder on the Azure VM, and provide your Azure VM credentials when prompted.

    If you encounter any issues while trying to access the Azure VM drives, you may need to check the network security group (NSG) rules for the Azure VM. The NSG rules control inbound and outbound traffic to and from the VM and may need to be updated to allow traffic from your local laptop over the P2S VPN.

    I hope this helps! Let me know if you have any other questions.

    If this does answer your question, please accept it as the answer as a token of appreciation.