- Check the Windows firewall policies on your VM to allow connections for Windows File Sharing.
- If you have a Network Security Group (NSG) configured for the VM, make sure it allows SMB connections on port 445.
Sharing folder of C drive on VM
Hi there
I would be very grateful for any assistance with this issue:-
I have created a Virtual Network, a VM and a VPN gateway and I am able succesfully to connect to the private IP address of my VM, so I know that the connection is good.
I need to share a folder on my VM. I don't need a separate disk or a storage account, I just need to be able to share (and access from 2 local machines) a folder on the C (Operating System) drive of the VM which will contain a very small amount of data.
The reason it needs to be on C is that the data needs to be in C:\Users\Public\Documents
So on the C drive of my VM I have created a folder called "shared" for example and I have shared it. However when I browse to "\10.0.0.4\share" from the local machine it fails to connect. I have also tried using the VM name instead of the private IP address.
If this was an on-premise computer on the LAN it would be easy - so I can't see why it is not possible in Azure.
Many thanks in advance!
Hari V
Azure VPN Gateway
Azure Virtual Network
2 answers
Sort by: Most helpful
-
RushiShah-2653 1 Reputation point
2022-01-05T02:25:50.97+00:00 -
GitaraniSharma-MSFT 50,096 Reputation points Microsoft Employee Moderator
2022-01-05T11:27:57.07+00:00 Hello @Hari Voyantzis | Cobalt Cube ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
As mentioned in this doc, when the connection is initiated, the VPN client adds the session credentials and the failure occurs. After the connection is established, the client is forced to use the cache credentials for Kerberos authentication. To work around the problem, disable the caching of domain credentials from the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\DisableDomainCreds - Set the value to 1
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.