Created
October 16, 2017 13:21
-
-
Save chgeuer/afc98e6d6cd442f001853b581d9be562 to your computer and use it in GitHub Desktop.
show-vm-sizes.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for location in $(az account list-locations | jq -r ".[].name"); do | |
az vm list-sizes -l $location | jq -r "{ \"$location\": [ .[].name ] }" > "${location}.json" | |
echo "Wrote ${location}.json" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment