Searching Azure blob storage by file extension
Here is a powershell script to search azure’s blob storage by file extension:
## Install Azure powershell, instructions @ https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps ## GDURGHA - 2017-09-20 $StorageAcctName = 'STORAGE ACCT NAME' $StorageAcctKey = 'SECURE KEY HERE' $ContainerName = 'myfiles' $StorageContext = New-AzureStorageContext -StorageAccountName $StorageAcctName -StorageAccountKey $StorageAcctKey $blobs = Get-AzureStorageBlob -Container $ContainerName -Context $StorageContext -MaxCount 10 # Search by Suffix using powershell Write-Output $blobs | Where-Object {$_.Name -like "*.jpg"} | Select-Object {$_.Name} Write-Output "-- Search finished --"