File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ stages:
4747 TF_STATE_BLOB_FILE: 'terraform.mango$(kv-prefix).tfstate'
4848 TF_STATE_BLOB_SAS_TOKEN: $(kv-tf-state-sas-token)
4949
50- - bash : terraform plan -destroy -var "prefix=$(prefix)" -out $PLAN_FILE
50+ - bash : |
51+ terraform plan -destroy \
52+ -var "prefix=$(prefix)" \
53+ -var "sql_admin_password=$(kv-sql-password)" \
54+ -out $PLAN_FILE
5155 displayName: Terraform Plan -Destroy
5256 workingDirectory: '$(System.DefaultWorkingDirectory)/terraform'
5357 env:
@@ -67,7 +71,7 @@ stages:
6771 env :
6872 PLAN_FILE : ' main-$(kv-prefix).destroy.tfplan'
6973
70- - bash : terraform apply -var "sql_admin_password=$(kv-sql-password)" - destroy -auto-approve $PLAN_FILE
74+ - bash : terraform apply -destroy -auto-approve $PLAN_FILE
7175 displayName : Terraform Apply
7276 condition : eq(variables.anyTfChanges, true)
7377 workingDirectory : ' $(System.DefaultWorkingDirectory)/terraform'
You can’t perform that action at this time.
0 commit comments