Tuesday, May 23, 2023

Housecleaning: Blogging Notes

I've been a little busier these days, so I was not able to blog as much over the last few weeks, but looking to get on a regular cadence again, at least a couple times a week and hopefully more, or some good sessions just posting up on a lot of things. 

As I've blogged before, it is a marathon...

Quick Code: AZ CLI To Get Storage Accounts And Redundancy Type (AKA sku.name)

Here's some quick code to get a list of your Storage accounts from a cloud shell in the Azure Portal.

az storage account list --query "[].{Name:name, Redundancy:sku.name}" --output table

That's it!

It will output something similar to this:

mystorageaccount1    Standard_LRS
mystorageaccount131    Standard_RAGRS

By default this will list everything for the subscriptions you have checked to show resources for in the portal.