Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2019 01:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
A Build Script for Packer on Azure
echo 'Deleting existing image.'
az image delete -g $GROUPNAME -n $IMAGECASSANDRA
echo 'Creating the managed resource group for images.'
az group create --name $GROUPNAME --location $LOCATION
echo 'Creating the storage account for image storage.'
az storage account create \
--name $STORAGENAME --resource-group $GROUPNAME \
--location $LOCATION \
--sku Standard_LRS \
--kind Storage
echo 'Building Apache cluster node image.'
packer build -var 'imagename='$IMAGECASSANDRA node-cassandra.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment