首页 文章

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

提问于
浏览
2

我想将Azure Files Storage挂载到我的本地Workstation . 此时的文档似乎并不清楚 .

文件说明

某些Internet服务提供商可能会阻止端口445

似乎证明了这个szenario,但 net use 并不适用于localy(Azure VM工作正常) .

我收到此错误:

“无法找到网络名称”

文档: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

编辑:

  • 本地工作站与Windows 10 Pro一起运行

  • 命令是 net use <drive-letter>: \\<storage-account-name>.file.core.windows.net\<share-name> /u:<storage-account-name> <storage-account-key> 它适用于同一区域和订阅中的Azure实例 .

编辑2:

它有效,但只有一次!重启后我遇到了同样的问题 . 针对SMB端口的TCP Ping仅获得了azure vm .

本地工作站

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

Azure VM

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

看来,我的ISP阻止了端口445 .

2 回答

  • 6

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

    我使用以下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
    
  • 1

    我使用Comcast(aka xfinity)作为我的ISP,端口445被阻止 . 所以我无法使用普通的简单方法从Windows 10映射驱动器号 . 但是,我意外地使用此过程使其工作:

    1)使用Azure允许的最小大小在Azure中创建了一个ubuntu 16.04服务器虚拟机(运行起来非常便宜)

    2)在Windows 10上的ubuntu服务器和OpenVPN客户端上安装OpenVPN服务器 . 对于该过程,搜索“如何在Ubuntu 16.04上设置OpenVPN服务器” .

    3)连接到VPN

    4)Windows驱动器号现在映射得很好 .

    我不是说这是一个很好的解决方案,也不是一个简单的解决方案 . 启动和运行OpenVPN服务器需要花费大量时间 . 我相信一定有更好的方法 . 但是,无论如何我还需要OpenVPN服务器 . 所以对我来说这是一个很好的解决方案,直到找到更好的解决方案 .

相关问题