I need to get a list off all blobs we have in a azure storage account. We have about 10'000 containers and 7'000'000 blobs.
I'm using PowerShell, but I'm a noob. Is there a way to get this information into a text file? I need the name and container of each blob. If I can get the size and created date it would be nice.
It depends on your version of PowerShell
$PSVersionTable.PSVersion
If you're on or above 5.1 and above, you can use The Az module
Then I assume this cmdlet and/or this one with wildcards.
Normally I'd walk you through the exact steps, but I'm an AWS guy, and my azure experience is very limited. With that in mind, I think it would look something like this
You'd get everything you need (assuming I'm correct) and store it in a variable
Then you can explore the objects, and figure out what information you need out of them, by grabbing the first one in the array, and listing all of its properties
Once you figure out what information you'd like to extract, you can create a custom class, then use a foreach loop to build an array full of those custom objects, and export it to a csv doc.