Created
October 12, 2017 04:19
-
-
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
This file contains 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 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