Forum Discussion
AB_MN
Feb 15, 2023Copper Contributor
File Share with private endpoint
I am trying to mount a file share, using a private endpoint, on my local machine and am getting"Access Denied" errors. I am also unable to access it via the Portal when I have the firewall set to bl...
infocloud
Feb 16, 2023MCT
If you are getting "Access Denied" errors when trying to mount a file share with a private endpoint on your local machine, it's likely that the private endpoint is not properly configured to allow access from your local machine's IP address.
Here are some steps you can take to troubleshoot the issue:
Verify that the private endpoint is configured correctly: Check that the private endpoint is properly configured to allow access to the storage account and file share from your VNet and the IP address of your local machine. You can do this by reviewing the private endpoint settings in the Azure portal, specifically the "Allowed DNS names" and "Private DNS zone configuration" settings. Also, verify that you have added the IP address of your local machine to the list of allowed IP addresses on the private endpoint.
Verify that the VPN connection is established: Ensure that your VPN connection to the VNet is properly established and that you are able to access resources within the VNet, such as virtual machines and other services.
Check the firewall settings on your local machine: Ensure that the firewall on your local machine is not blocking traffic to the private endpoint. Specifically, make sure that port 445 is not blocked, as this is the port used for SMB file sharing.
Verify that the private endpoint is resolving correctly: Ensure that the private endpoint is resolving correctly from your local machine. You can do this by pinging the private endpoint's DNS name from your local machine and verifying that the IP address returned is the same as the private IP address assigned to the private endpoint.
Check the private endpoint logs: Check the private endpoint logs in the Azure portal to see if there are any errors or issues related to the private endpoint configuration or connectivity.
Here are some steps you can take to troubleshoot the issue:
Verify that the private endpoint is configured correctly: Check that the private endpoint is properly configured to allow access to the storage account and file share from your VNet and the IP address of your local machine. You can do this by reviewing the private endpoint settings in the Azure portal, specifically the "Allowed DNS names" and "Private DNS zone configuration" settings. Also, verify that you have added the IP address of your local machine to the list of allowed IP addresses on the private endpoint.
Verify that the VPN connection is established: Ensure that your VPN connection to the VNet is properly established and that you are able to access resources within the VNet, such as virtual machines and other services.
Check the firewall settings on your local machine: Ensure that the firewall on your local machine is not blocking traffic to the private endpoint. Specifically, make sure that port 445 is not blocked, as this is the port used for SMB file sharing.
Verify that the private endpoint is resolving correctly: Ensure that the private endpoint is resolving correctly from your local machine. You can do this by pinging the private endpoint's DNS name from your local machine and verifying that the IP address returned is the same as the private IP address assigned to the private endpoint.
Check the private endpoint logs: Check the private endpoint logs in the Azure portal to see if there are any errors or issues related to the private endpoint configuration or connectivity.