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.
$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:
- Display Power BI Report in SharePoint Online
- Extract term stores in SharePoint 2013 using PowerShell
- Download Blobs from Azure Container using PowerShell
- Create Azure Storage using PowerShell and upload a video file
- Bind SharePoint Online List Data into HTML table using jQuery and Rest API
- Deploy SharePoint 2013 designer workflow into production in SharePoint online
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: