Skip to content

Instantly share code, notes, and snippets.

@damienpontifex
Created September 19, 2020 07:05
Show Gist options
  • Save damienpontifex/a67ea9a3cf55f9b324cbae73ff8de4ab to your computer and use it in GitHub Desktop.
Save damienpontifex/a67ea9a3cf55f9b324cbae73ff8de4ab to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
## For debugging
#PS4='Line ${LINENO}: '
#set -o xtrace
RG_NAME=pontitest
COMMON_ARGS=(--resource-group $RG_NAME --location australiaeast)
az group show --resource-group $RG_NAME > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
az group create ${COMMON_ARGS[@]}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment