@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
- 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.
- 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.
- 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."
- 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.
- 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.