{"id":563,"date":"2024-12-12T09:29:15","date_gmt":"2024-12-12T01:29:15","guid":{"rendered":"https:\/\/www.sysadmindayph.com\/blog\/?p=563"},"modified":"2024-12-12T09:29:16","modified_gmt":"2024-12-12T01:29:16","slug":"how-to-get-blob-list-of-storage-accounts-with-azure-cli","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/how-to-get-blob-list-of-storage-accounts-with-azure-cli\/","title":{"rendered":"How To Get Blob List of Storage Accounts with Azure CLI?"},"content":{"rendered":"\n<p>Requirement is to check or get the list of blobs from containers in an Azure Storage Account.<\/p>\n\n\n\n<p>Using the Azure CLI command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>az storage blob list --account-name gmepsstorageprod --container-name insights-logs-querystoreruntimestatistics --output table --auth-mode key\n<\/code><\/pre>\n\n\n\n<p>will list the content in the screen so fast, I cant copy and pasted it on a text file.<\/p>\n\n\n\n<p>And then, I used the AZ Cli for powershell..<\/p>\n\n\n\n<p>saved the output in a variable and used the cmdlet Export-csv<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br>PS C:\\Users\\Ely.Palad> $result = az storage blob list &#8211;account-name gmepsstorageprod &#8211;container-name insights-logs-querystoreruntimestatistics &#8211;output table &#8211;auth-mode key<\/p>\n\n\n\n<p>PS C:\\Users\\Ely.Palad> $result > .\\insights-logs-querystoreruntimestatistics.csv<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement is to check or get the list of blobs from containers in an Azure Storage Account. Using the Azure CLI command: will list the content in the screen so fast, I cant copy and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-563","post","type-post","status-publish","format-standard","hentry","category-commands"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":1,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}