access a share of an azure virtual machine

Soporte Hogner 0 Reputation points
2024-03-21T14:31:59.31+00:00

Dear, I need to access a shared resource from a business network using the name of the virtual one, that is, from my local network I can access \computer name\shared resource\

How should I configure in Azure to be able to achieve this?

Azure Data Share
Azure Data Share
An Azure service that is used to share data from multiple sources with other organizations.
55 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 21,725 Reputation points
    2024-03-21T17:12:23.1233333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    May this article help you:

    https://learn.microsoft.com/en-us/azure/storage/files/storage-files-quick-create-use-windows

    If you want to connect an on-premises network to a Microsoft Azure virtual network please check this article:

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/connect-an-on-premises-network-to-a-microsoft-azure-virtual-network?view=o365-worldwide

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    0 comments No comments

  2. PRADEEPCHEEKATLA 90,231 Reputation points
    2024-03-25T04:29:26.7+00:00

    @Soporte Hogner - Thanks for the question and using MS Q&A platform.

    Unfortunately, Azure Data Share doesn't support access a share of an azure virtual machine. For more details, refer to Supported data stores in Azure Data Share.

    To access a shared resource on an Azure virtual machine from your local network, you will need to configure the virtual machine's network settings and firewall rules to allow incoming traffic on the appropriate ports.

    Here are the general steps to follow:

    • Configure the virtual machine's network settings to use a static IP address. This will ensure that the IP address of the virtual machine does not change, which could cause connectivity issues.
    • Open the appropriate ports in the virtual machine's firewall to allow incoming traffic. By default, Windows Firewall blocks incoming traffic on all ports except for a few common ones. You will need to open the ports that are used by the shared resource you want to access. For example, if you are accessing a shared folder using SMB, you will need to open TCP port 445.
    • Create an inbound security rule in the Azure Network Security Group (NSG) to allow incoming traffic on the appropriate ports. The NSG is a virtual firewall that controls traffic to and from virtual machines in an Azure virtual network. You will need to create a rule that allows incoming traffic on the ports you opened in the virtual machine's firewall.
    • Configure your local network's firewall to allow outgoing traffic on the appropriate ports. If your local network has a firewall, you will need to open the ports that are used by the shared resource you want to access.
    • Use the virtual machine's static IP address or DNS name to access the shared resource from your local network. You should be able to access the shared resource using the format \IP address\shared resource or \DNS name\shared resource.

    Note that the specific steps you need to follow will depend on the type of shared resource you are trying to access and the network configuration of your Azure virtual machine and local network.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.