#!/usr/bin/env bash set -euo pipefail # Optional: lock to a specific subscription (otherwise uses your default) # az account set --subscription "" regions=( australiacentral australiaeast australiasoutheast austriaeast belgiumcentral brazilsouth canadacentral canadaeast centralindia chilecentral eastasia francecentral germanywestcentral indonesiacentral israelcentral italynorth japaneast japanwest koreacentral koreasouth malaysiawest mexicocentral newzealandnorth northeurope polandcentral qatarcentral southafricanorth southindia southeastasia spaincentral swedencentral switzerlandnorth uaenorth uksouth ukwest westeurope westindia ) echo "Checking Standard Dplsv6 Family vCPU usage and limits across ${#regions[@]} regions..." echo for region in "${regions[@]}"; do echo "==============================" echo "Region: $region" az vm list-usage \ --location "$region" \ --query "[?contains(name.value, 'standardDplsv6Family')].{Name:name.localizedValue,Usage:currentValue,Limit:limit}" \ -o table echo done