Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irwinwilliams/2884fabdc835b8a0c83dad9b7fef1961 to your computer and use it in GitHub Desktop.
Save irwinwilliams/2884fabdc835b8a0c83dad9b7fef1961 to your computer and use it in GitHub Desktop.
Creates a list of azure storage accounts, output their name and keys in bash
for number in {1..20}
do
account=comp69052017a2
account+=$number
az storage account create --name $account --resource-group COMP6905A2Storage --location eastus --sku Standard_LRS --encryption blob | jq ".name"
az storage account keys list --account-name $account --resource-group COMP6905A2Storage | jq '.[].value' | tr -s '\n' ','
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment