Last active
August 26, 2018 02:57
-
-
Save garystafford/8ed4f2c1b33e4490b99a86901d2bdc19 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env sh | |
# author: Gary A. Stafford | |
# site: https://programmaticponderings.com | |
# license: MIT License | |
set -ex | |
## CONSTANTS ## | |
ACCOUNT_NAME="<value_goes_here>" | |
LOCATION="<value_goes_here>" | |
RESOURCE_GROUP="<value_goes_here>" | |
STORAGE_ACCOUNT="<value_goes_here>" | |
STORAGE_CONTAINER="<value_goes_here>" | |
az login | |
az storage account create \ | |
--name ${STORAGE_ACCOUNT} \ | |
--default-action Allow \ | |
--kind Storage \ | |
--location ${LOCATION} \ | |
--resource-group ${RESOURCE_GROUP} \ | |
--sku Standard_LRS | |
az storage container create \ | |
--name ${STORAGE_CONTAINER} \ | |
--fail-on-exist \ | |
--public-access blob \ | |
--account-name ${STORAGE_ACCOUNT} \ | |
--account-key ${ACCOUNT_KEY} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment