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