我们如何在 Windows 中将 azure blob 存储挂载为网络驱动器?

Akh*_*nia 8 azure azure-storage-blobs

如何在本地窗口中添加 azure blob 存储作为网络驱动器。有没有办法将 azure blob 安装为驱动器?

Tsa*_*her 8

到目前为止,Blob 存储作为文件系统挂载可在某些站点预览:https : //docs.microsoft.com/en-us/azure/storage/blobs/network-file-system-protocol-support-how -to?tabs=windows

  • 在撰写本答案时,安装可用于 Windows 或 Linux。当前文档表明安装仅适用于 Linux。 (2认同)

小智 7

只要满足一些先决条件,Azure 文件就支持将驱动器映射到本地和 Azure 托管系统。

查看文档中的说明:https : //docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows

  • 这是 Azure 文件共享而不是 Blob 存储 (3认同)

Har*_*rry 5

使用 Powershell,下面的脚本会将 Blob 存储映射到 Z:,驱动器标签为“Azure Blob 存储”\n您将需要位置、存储帐户名称和访问密钥。

\n
$connectTestResult = Test-NetConnection -ComputerName "BLOB STORAGE LOCATION HERE" -Port 445\nif ($connectTestResult.TcpTestSucceeded) {\n\xc2\xa0 \xc2\xa0 # Save the password so the drive will persist on reboot\n\xc2\xa0 \xc2\xa0 cmd.exe /C "cmdkey /add:`"BLOB STORAGE LOCATION HERE`" /user:`"STORAGE ACCOUNT NAME HERE`" /pass:`"ACCESS KEY HERE`""\n\xc2\xa0 \xc2\xa0 # Mount the drive\n\xc2\xa0 \xc2\xa0 New-PSDrive -Name Z -PSProvider FileSystem -Root "\\\\BLOB STORAGE LOCATION HERE\\FOLDER TO MAP" -Persist\n} else {\n\xc2\xa0 \xc2\xa0 Write-Error -Message "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."\n} \n(New-Object -ComObject Shell.Application).NameSpace('Z:').Self.Name = 'Azure Blob Storage'\n
Run Code Online (Sandbox Code Playgroud)\n


Iva*_*ang 3

没有官方方法可以将 azure blob 存储映射为网络驱动器。但是您可以使用一些第三方工具,例如CloudBerry Drive for Microsoft Azure(它需要许可证,但您可以使用免费试用版)。这是有关如何配置它的文档,我尝试过,它非常适合将 azure blob 存储映射为网络驱动器。

在此输入图像描述

另一种选择是使用 azure 文件存储而不是 blob 存储,因为 azure 文件存储支持映射为网络驱动器。