Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Map Network drive to Azure Blob Storage using SAS

Tags:

Azure SAS

From what I have read you can put a SAS URI in the browser and bring up the file

You can also create a SAS with list and read permission to the container. In .NET I follow how to use that.

Can you map that SAS list and read as a network drive in Windows Explorer and see the file?

Thanks!

like image 435
bladerunner Avatar asked Apr 04 '17 21:04

bladerunner


People also ask

Can you map a drive to Azure blob storage?

Folders and files can be dragged and dropped to the mapped network drive and instantly saved in the Azure Blob Storage container without having to directly access the Azure Portal.

How do I use a SAS URL to upload files to Azure blob storage?

If you'd rather use a SAS token to authorize access to blob data, then you can append that token to the resource URL in each AzCopy command. For example: 'https://<storage-account-name>.blob.core.windows.net/<container-name><SAS-token>' .


1 Answers

Map Network drive to Azure Blob Storage using SAS.

Azure Blob Storage doesn't support to be mapped as a network drive in the Windows Explorer currently. If we want to mange Azure blob we can use Microsoft Azure Storage Explorer. for more information refer document.

If we want to map a network drive in Windows Explorer, please use Azure file storage, more detail about Azure file storage please refer to document.

net use <drive-letter>: \\<storage-account-name>.file.core.windows.net\<share-name> /u:AZURE\<storage-account-name> <storage-account-key>
example :
net use z: \\samples.file.core.windows.net\logs /u:AZURE\samples <storage-account-key>

Note:

  • Install a version of Windows which supports SMB 3.0. Windows will leverage SMB 3.0 encryption to securely transfer data between your on-premises client and the Azure file share in the cloud.
  • Open Internet access for port 445 (TCP Outbound) in your local network, as is required by the SMB protocol.
like image 69
Terry Fei Avatar answered Sep 22 '22 11:09

Terry Fei