How can i add azure blob storage as a network drive in my local windows. Is there any way to mount azure blob as drive?
There is no official way to map azure blob storage as network drive. But you can use some third-party tool like CloudBerry Drive for Microsoft Azure (it needs a license, but you can use the free trial version).
Use Azure Storage Explorer Launch Microsoft Azure Storage Explorer. To bring up the Sign in to your account... wizard, select Azure account settings icon, then Add an account and enter you credentials. To bring up the Connect to Azure Storage wizard, select the Connect to Azure Storage icon.
Azure Files has support for mapping drives to both local and azure hosted systems as long as a few pre-reqs are met.
Take a look at the instructions in the documentation: https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows
Using Powershell the script below will map a blob storage to Z: with the drive label "Azure Blob Storage" You will need the location, the storage account name and access key.
$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'
There is no official way to map azure blob storage as network drive. But you can use some third-party tool like CloudBerry Drive for Microsoft Azure (it needs a license, but you can use the free trial version). Here is a doc on how to configure it, I tried and it works well for mapping azure blob storage as network drive.
The other option is to use azure file storage instead of blob storage, since azure file storage does support mapping as network drive.
By now, Blob storage mounting as a file system is available as a preview in some sites: https://docs.microsoft.com/en-us/azure/storage/blobs/network-file-system-protocol-support-how-to?tabs=windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With