2016-12-12 16:21:56 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
AZURE_RESOURCE_GROUP="$1"
|
|
|
|
|
|
|
|
if [ "$AZURE_RESOURCE_GROUP" == "" ]; then
|
|
|
|
echo "AZURE_RESOURCE_GROUP is missing"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-05-03 19:42:26 +00:00
|
|
|
ansible-playbook generate-templates.yml
|
|
|
|
|
|
|
|
az group deployment create -g "$AZURE_RESOURCE_GROUP" --template-file ./.generated/clear-rg.json --mode Complete
|