我们如何在Windows中将Azure Blob存储安装为网络驱动器?

时间:2019-05-06 18:38:00

标签: azure

如何在本地Windows中将Azure Blob存储添加为网络驱动器。 有什么方法可以将天蓝色blob挂载为驱动器?

5 个答案:

答案 0 :(得分:4)

现在,在某些站点中,可以将Blob存储作为文件系统安装作为预览:https://docs.microsoft.com/en-us/azure/storage/blobs/network-file-system-protocol-support-how-to?tabs=windows

答案 1 :(得分:2)

根据您的用例问题,我认为您应该提交共享而不是blob。您将获得URL和连接驱动器的密钥。然后可以将其映射为系统中的网络驱动器。

答案 2 :(得分:1)

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

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

答案 3 :(得分:1)

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

enter image description here

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

答案 4 :(得分:1)

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

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