Azure – List all Blobs and containers of all the storage accounts
I'm using the below script to run: $context = Get-AzContext $storageAccounts = Get-AzResource -ResourceType 'Microsoft.Storage/storageAccounts' [System.Collections.ArrayList]$saUsage = New-Object -TypeName System.Collections.ArrayList foreach ($storageAccount in $storageAccounts) { #list containers $containers= Get-AzStorageContainer -ResourceGroupName $storageAccount.ResourceGroupName -StorageAccountName $storageAccount.Name if($containers -ne $null){ foreach($container in $containers){ $StorageAccountDetails…