terraform/examples/azure-vm-simple-linux/after_deploy.sh

10 lines
269 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset
# cleanup deployed azure resources
docker run --rm -it \
azuresdk/azure-cli-python \
sh -c "az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $ARM_TENANT_ID; \
az group delete -y -n $KEY"