d414588a47
apply-rg.sh was for Azure command version 1("azure" command) and the command is old and version 2("az" command) is officially used today. apply-rg_2.sh was for the version 2. In addition, the README[1] says we need to run apply-rg.sh for applying templates. This renames apply-rg_2.sh to apply-rg.sh for common usages of the version 2. [1]: https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/azurerm#generating-and-applying
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
|