Cannot map Azure File Share

Joshua Thompson 226 Reputation points
2022-07-27T21:22:09.34+00:00

I am trying to access a file share on an Azure storage account from an Azure VM in the same virtual network / subnet.

When I perform an nslookup on my storage account i get the following

nslookup (name of storage account).file.core.windows.net

Non-authoritative answer:
Name: file.phx10prdstr02a.store.core.windows.net
Address: 20.60.14.200
Aliases: (name of storage account).file.core.windows.net

(name of storage account).privatelink.file.core.windows.net

The nslookup responds with the alias of 'privatelink' which I believe means the private endpoint is set up correctly.
This Private endpoint has an IP address assigned of 10.0.0.10.

Instead of using DNS I am trying to map the share via IP address. (I know DNS is preferred but not ready for that yet)

Next I try to map the drive from the Azure VM

======
net use z: \ 10.0.0.10(name of file share)
System error 53 has occurred.

The network path was not found.

What am I doing wrong?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-07-28T17:18:33.8+00:00

    For anybody else having this problem, here was how I resolved my issue.
    I downloaded AzDiagnostics.ps1 from git hub and ran it against my storage account/fileshare on my Azure VM
    Instructions here on how to download:
    https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Windows

    Download the zip and look for the AzFileDiagnostics.ps1 file located in "azure-files-samples-master\azure-files-samples-master\AzFileDiagnostics\Windows"

    I then ran:
    .\AzFileDiagnostics.ps1 -UNCPath \storageaccountname.file.core.windows.net\sharename

    The output showed me my LmCompatibility Level in "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" was set to 1. It stated it needed to be 3 or mounting shares would fail.

    I changed to 3 and reran the map drive power shell script. Boom! All good now.

    Also found the below on MS docs. Great info
    https://learn.microsoft.com/en-us/answers/questions/727502/azure-file-share-mount-issue.html

    4 people found this answer helpful.

  2. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2022-07-28T05:20:17.93+00:00

    @Joshua Thompson Welcome to Microsoft Q&A Forum, Thanks for posting your query here!

    Based on the error message, Issue may be occurred due port 445 is been blocked. Ensure port 445 is open: The SMB protocol requires TCP port 445 to be open; connections will fail if port 445 is blocked. You can check if your firewall is blocking port 445 with the Test-NetConnection cmdlet.

    Note: Some of the ISP provide has blocked port 445 for azure files, please check here

    Error : System error 53 has occurred. The network path was not found. , Please refer to the troubleshooting steps mentioned in this article.

    This thread provides detailed steps " How to Map the Azure file share to a Windows drive(Azure VM)"

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

    ----------

    Please do not forget to 225589-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

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.