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
- Azure artificial intelligence (Azure AI)
Hope this will be helpful.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)