Need azure user to access me share file on my vm machine

amadou diallo 20 Reputation points
2024-07-25T04:04:55.1666667+00:00

I need your help,

I created my account storage and a sharing file.

I also have my vm machine created under Azure

I then synchronized the shared files on my vm machine which is good.

There is a VPN client that is configured and good.

I have a lot of users under Azure and I need each user to be able to connect to the shared file on my vm machine.

Maybe you got the idea a little

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,228 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,582 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,942 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 56,601 Reputation points
    2024-07-25T04:15:15.51+00:00

    Hi Amadou,

    Please see:

    Tutorial: Create an SMB Azure file share and connect it to a Windows VM using the Azure portal

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

    Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol or Network File System (NFS) protocol.

    How to mount it on a person's machine:

    Mount SMB Azure file share on Windows

    https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows


    If this is helpful please accept as answer or upvote.

    Best regards,

    Dillon Silzer, Director | Cloudaen.com | Cloudaen Computing Solutions

    0 comments No comments

  2. Sumarigo-MSFT 45,491 Reputation points Microsoft Employee
    2024-07-25T05:58:49.75+00:00

    @amadou diallo Welcome to Microsoft Q&A FOrum, Thank you for posting your query here!

    You have set up an Azure VM, created a shared file, and synchronized it on your VM. You also have a VPN client configured. Now, you want multiple users under Azure to connect to the shared file on your VM. ! To ensure that each Azure user can connect to the shared file on your VM machine, or Do you want to connect Azure user to your Azure File share storage account?

    To ensure that each Azure user can connect to the shared file on your VM machine, you can follow these steps

    1. Set Up File Sharing on the VM: Ensure that the shared folder on your VM is properly configured with the necessary permissions. Right-click on the folder, go to "Properties," then "Sharing," and set the permissions for the users who need access.
    2. Create Azure Active Directory (AAD) Users: Make sure all the users who need access are created in your Azure Active Directory. You can add users through the Azure portal under the "Azure Active Directory" section.
    3. Assign Roles and Permissions: Assign the appropriate roles and permissions to the users in Azure Active Directory. You can do this by navigating to the "Access control (IAM)" section of your storage account and adding the users with the required roles, such as "Storage File Data SMB Share Contributor."
    4. Map Network Drive: Each user can map the shared folder as a network drive on their local machine. They can do this by opening File Explorer, right-clicking on "This PC," selecting "Map network drive," and entering the path to the shared folder on the VM. They will need to provide their Azure AD credentials when prompted.
    5. Ensure VPN Connectivity: Since you have a VPN client configured, make sure that all users are connected to the VPN before attempting to access the shared folder. This will ensure that they can reach the VM and the shared files.

    If you have connect Azure user to your Azure File share storage account you can follow these steps.
    This article provides detailed information on your scenario: Configure directory and file-level permissions for Azure file shares

    Ensure Network Security Group (NSG) Rules: Make sure your NSG rules allow inbound traffic from your users' IP addresses over the VPN. This will enable them to access the shared file on your VM.

    Map Network Drive: Users can map the shared file as a network drive on their local machines. They can do this by right-clicking on "This PC" in File Explorer, selecting "Map network drive," and entering the UNC path of the shared drive on the Azure VM. They will need to provide their Azure VM credentials when prompted

    NFS Technology: If you do not want a cluster setup, you can use NFS technology to mount the Azure file share on the VM

    Persistent Connection: Ensure that the connection to the Azure file share is persistent across VM restarts. This can be done by configuring the file share to reconnect automatically

    Please let us know if you have any further queries. I’m happy to assist you further.    


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments