Ever need some details on all vnets across all #azure subscriptions using the CLI? #devops # Create TXT files of the VNET names and CIDR ranges array=(sub1 sub2 sub3) for subs in “${array[@]}” do az account set -s “$subs” az network vnet list -o table >$subs.txt done

Ever need some details on all vnets across all #azure subscriptions using the CLI? #devops

# Create TXT files of the VNET names and CIDR ranges
array=(sub1 sub2 sub3)
for subs in “${array[@]}”
do
az account set -s “$subs”
az network vnet list -o table >$subs.txt
done
from deltadan
twit http://twitter.com/deltadan/status/1440415128466300941