Download Blobs from Azure Container using PowerShell

We already discussed in my previous post to create a container and upload blobs (video files). There will also a requirement to download blob files to local folder. We can write console application or PowerShell script to get it done.

I am sharing the PowerShell script to download blobs from a specific container. If you have more than one container create input CSV file to maintain the container name and respective destination folder. Write additional loop code with the input CSV to automate the process.

Also read: Design Windows Azure Application with Azure Table partitioning approach

$subname = “StorageSubscription”

$stAcc = “samstorage”

$stKey = “*************************** ==”

$contName = “videocontainer”

$DestinationFolder = “D:\Sam\Videos”

$ctx = New-AzureStorageContext -StorageAccountName $stAcc -StorageAccountKey $stKey

$blobs = Get-AzureStorageBlob -Container $contName -Context $ctx

#Download blobs from a container.

New-Item -Path $DestinationFolder -ItemType Directory -Force

$blobs | Get-AzureStorageBlobContent -Destination $DestinationFolder -Context $ctx


Read some SharePoint tutorials below:

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Sambita Rath

I have 9 years of exprience into SharePoint implementation, architecture, Administrator, development and Training.Designing Information Architecture in SharePoint 2007, 2010,2013 and Office 365.

View all posts by Sambita Rath →

Leave a Reply