azure file share connect with local machine

RUSHABH SHAH 1 Reputation point
2022-03-12T06:39:25.933+00:00

i trying to connect azure file in local computer using powershell script but every time face same error

write-error: unable to reach the azure storage account via port 445. check to make sure your organization or isp is not blocking port 445, or use azure p2s vpn, azure s2s vpn, or express route to tunnel smb traffic over a different port.

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

3 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 46,441 Reputation points Microsoft Employee
    2022-03-16T12:21:58.047+00:00

    @RUSHABH SHAH Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
    Are you getting any error message? If, so can you please share the screenshot of the error?

    Cause 1: Port 445 is blocked: Refer to the suggestion mentioned in this article

    Check if your firewall or ISP is blocking port 445, use the AzFileDiagnostics tool or Test-NetConnection cmdlet.

    Azure Files only allows connections using SMB 3.0 (with encryption support) from outside the region or datacenter. SMB 3.0 protocol has introduced many security features including channel encryption which is very secure to use over internet. However its possible that port 445 has been blocked due to historical reasons of vulnerabilities found in lower SMB versions. In ideal case, the port should be blocked for only for SMB 1.0 traffic and SMB 1.0 should be turned off on all clients.

    If you have ever been blocked using Azure Files due to your ISP's port 445, you can setup a Point to Site VPN to your Azure Files. Refer to the suggestions mentioned in the GitHub article

    You can mount the file share on your local machine by using the SMB 3.0 protocol, or you can use tools like Storage Explorer to access files in your file share. From your application, you can use storage client libraries, REST APIs, PowerShell, or Azure CLI to access your files in the Azure file share.

    Please refer to the suggestion mentioned in the SO thread and let me know the status.

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

    ----------

    Please do not forget to 183669-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.
    0 comments No comments

  2. Manu Philip 18,671 Reputation points MVP
    2022-03-12T08:29:51.65+00:00

    Here by I am providing an article detailing on the implementation in my blog. Hope it helps you to identify and fix the issues in connecting Azure file share from your computer
    use-an-azure-file-share-with-windows


    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Aaron Berson 16 Reputation points
    2022-11-15T14:37:25.68+00:00

    Hello,

    I am running into the issue that i have a mapped azure file share no problem. But if i am on a network with port 445 blocked then everything hangs on the computer as it seems the file share is constantly trying to connect. Is there a way to tell the file share to try and if fails to stop trying to connect till someone trys to access it?

    0 comments No comments

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.