14

Is there a way of downloading a container and all of its content from Azure Blob Storage?

I use CloudBerry Explorer for Azure Blob Storage to manage my containers, files and folders.

I have a container with over 100GB of data which I would like to download, but cannot find a way of downloading the container, only individualy files.

97ldave
  • 5,249
  • 4
  • 25
  • 39

3 Answers3

18

If you want, you can use the AzCopy tool to download an entire blob container. Assuming you have the latest version of the Azure SDK installed, you can find this tool in the C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy folder.

You can try the following command:

AzCopy /Source:"https://[accountname].blob.core.windows.net/[containername]/" /Dest:"[folder path e.g. D:\temp\" /SourceKey:"[account key]" /S

Replace [accountname], [containername], [folder path], [account key] with the appropriate values.

participant
  • 2,923
  • 2
  • 23
  • 40
Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
15

To download the Container (All Files) from Azure Blob Storage

az login

az account set --subscription <Sub ID>

az storage blob download-batch --account-name <storageaccountname> --source <containername> --destination <C:\Users\Downloads\***>

To Delete All files at a time

az storage blob delete-batch --account-name <storageaccountname> --source <containername>
VINOD KUMAR
  • 265
  • 4
  • 15
  • 5
    And where, pray tell, would you run these commands? Please improve your answer. I have no idea where to run this from. – rory.ap Jan 18 '22 at 18:26
0

az storage blob download-batch --account-name --source --destination <C:\Users\Downloads***>

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 10 '22 at 01:26