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

dhc*_*cgn 2 azure azure-storage azure-storage-blobs azure-table-storage azure-files

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

文件说明

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

似乎证明了这个szenario,但是net usedons不工作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-本地客户端运行的窗口

编辑:

  • 本地工作站使用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
Run Code Online (Sandbox Code Playgroud)

Azure VM

Test-NetConnection -ComputerName SHARENAME.file.core.windows.net -Port 445
TcpTestSucceeded       : True
Run Code Online (Sandbox Code Playgroud)

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

Mic*_*l B 7

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

我使用以下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
Run Code Online (Sandbox Code Playgroud)