Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active August 26, 2018 02:57
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 garystafford/8ed4f2c1b33e4490b99a86901d2bdc19 to your computer and use it in GitHub Desktop.
Save garystafford/8ed4f2c1b33e4490b99a86901d2bdc19 to your computer and use it in GitHub Desktop.
#!/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