For system, network and cloud administrators

How to list all Azure managed disks that start with a pattern using Azure CLI

In order to view all managed disks that start with the disk name, type:

az disk list --query "[?starts_with(name,'disk')].name" --output tsv

Leave a Reply

Your email address will not be published. Required fields are marked *