14 lines
311 B
Bash
Executable file
14 lines
311 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
AZURE_RESOURCE_GROUP="$1"
|
|
|
|
if [ "$AZURE_RESOURCE_GROUP" == "" ]; then
|
|
echo "AZURE_RESOURCE_GROUP is missing"
|
|
exit 1
|
|
fi
|
|
|
|
ansible-playbook generate-templates.yml
|
|
|
|
az group deployment create -g "$AZURE_RESOURCE_GROUP" --template-file ./.generated/clear-rg.json --mode Complete
|