added az vm show between apply & destroy
This commit is contained in:
parent
714076043e
commit
5f577c7b3a
|
@ -17,6 +17,11 @@ docker run --rm -it \
|
|||
/bin/terraform apply out.tfplan; \
|
||||
/bin/terraform show;"
|
||||
|
||||
# cleanup deployed azure resources via azure-cli
|
||||
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 vm show -g $KEY -n rgvm"
|
||||
|
||||
# cleanup deployed azure resources via terraform
|
||||
docker run --rm -it \
|
||||
|
@ -29,10 +34,3 @@ docker run --rm -it \
|
|||
--entrypoint "/bin/sh" \
|
||||
hashicorp/terraform:light \
|
||||
-c "/bin/terraform destroy -force -var dns_name=$KEY -var hostname=$KEY -var resource_group=$KEY -var admin_password=$PASSWORD;"
|
||||
|
||||
|
||||
# cleanup deployed azure resources via azure-cli
|
||||
# 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"
|
||||
|
|
Loading…
Reference in New Issue