How to dowload multiple blobs from Azure to Linux VM?

vinothkaliaperumal-2643 381 Reputation points

Hi All,

I need to download multiple blobs from Azure to my linux vm. Looking out for any way to do this. Please assist.


Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshu katara 1,020 Reputation points

    Hi , Hope doing good!

    To answer your query , please check below Using AzCopy:

    AzCopy is a command-line utility specifically designed for transferring data to and from Azure Blob Storage.

    a. Download and install AzCopy on your Linux VM by following the instructions here:

    b. Once installed, open a terminal.

    c. Use the azcopy copy command to download multiple blobs. Here's an example command:

    azcopy copy "*" /path/to/local/folder --recursive=true

    Replace* with the URL of your container and blobs (you can use wildcards), and /path/to/local/folder with the local directory where you want to save the downloaded blobs.

    Also , please use above link for more info

    And please accept answer if it has helped , Thanks

1 additional answer

Sort by: Most helpful
  1. dashanan13 535 Reputation points

    Hei vinothkaliaperumal-2643,

    Thank you for contacting Microsoft community.

    It is possible to install powershell on linux and use the code below to download the blobs while enumerating each container in each storage account.

    Read more:

    Quickstart: Upload, download, and list blobs with PowerShell Install PowerShell on Linux

    Please mark this as "answer" if it helped


    $myrgs = Get-AzResourceGroup
    foreach ($myrg in $myrgs){
        $myrsrs = Get-AzStorageAccount -ResourceGroupName $myrg.ResourceGroupName
        foreach ($myrsr in $myrsrs){
            $ctx = New-AzStorageContext -StorageAccountName $myrsr.StorageAccountName
            $containers = Get-AzStorageContainer -Context $ctx 
            foreach ($container in $containers){
                Get-AzStorageBlob -Container $container.Name -Context $ctx | Get-AzStorageBlobContent -Destination "C:\temp\dwnld"
    0 comments No comments