How can I find a storage account from its container name?

July 5, 2025 2 answers
Asked by CloudVoyager42
I have the name of a container but I'm not sure what the associated storage account is. I can either use the Azure CLI or the Azure Portal to find this out. However, I want to avoid using Storage Explorer as I find it lacking in certain features. Any tips on how to track down the storage account?

Answers

CodeMonkey88
I ended up writing a shell script to do this instead since I prefer avoiding PowerShell on Windows. It worked out well for me!
Reply to this answer
DevGuru101
Unfortunately, containers don't have a global uniqueness, so there's no direct way to find the storage account just from the container name. A good approach would be to write a simple PowerShell script that checks all your accessible storage accounts and looks for the container name you're after. That's how you can find what you're looking for.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions