我可以从我的本地工作站装载 Azure 文件存储吗?

Can I mount Azure Files Storage from my local Workstation?

我想将 Azure 文件存储装载到我的本地工作站。 文档在这一点上似乎还不清楚。

文档中的注释

Some Internet service providers may block port 445

似乎证明了这个场景,但是 net use 在本地不起作用(Azure VM 工作正常)。

我得到这个错误:

“The network name cannot be found”

文档:https://github.com/Azure/azure-content/blob/master/articles/storage/storage-dotnet-how-to-use-files.md#mount-the-file-share-from-an-on-premises-client-running-windows

编辑:

编辑 2:

有效,但只有一次!重新启动后,我 运行 遇到了同样的问题。 针对 SMB 端口的 TCP Ping 仅在 azure 虚拟机上成功。

本地工作站

Test-NetConnection -ComputerName SHARENAME.file.core.windows.net -Port 445
TcpTestSucceeded       : False

Azure 虚拟机

Test-NetConnection -ComputerName SHARENAME.file.core.windows.net -Port 445
TcpTestSucceeded       : True

看来,我的 ISP 正在阻止端口 445。

显然你的里程可能会有所不同,但这对我来说很好

我使用以下 Powershell 脚本

$pass = "password" | ConvertTo-SecureString -AsPlainText -Force
$credentials = new-object -typename System.Management.Automation.PSCredential `
                          -argumentlist "topbanananas",$pass

New-PSDrive -Name p -PSProvider FileSystem `
            -Root \topbanananas.file.core.windows.net\fruity `
            -Credential $credentials -Persist

我使用 Comcast(又名 xfinity)作为我的 ISP,并且端口 445 被阻止。所以我无法使用普通的简单方法映射 windows 10 的驱动器号。但是,我不小心用这个程序让它工作了:

1) 使用 Azure 允许的最小大小在 Azure 中创建了一个 ubuntu 16.04 服务器 VM(这对 运行 而言非常便宜)

2) 在 ubuntu 服务器上安装了 OpenVPN 服务器,在 Windows 上安装了 OpenVPN 客户端 10. 对于该过程,请搜索 "How To Set Up an OpenVPN Server on Ubuntu 16.04".

3) 连接到 VPN

4) windows 盘符现在可以正常映射了。

我并不是说这是一个很好的解决方案,或者是一个简单的解决方案。启动 OpenVPN 服务器并 运行ning 需要花费大量时间。我相信一定有更好的方法。但是,出于另一个原因,我仍然需要 OpenVPN 服务器。所以在找到更好的解决方案之前,这对我来说是一个不错的解决方案。