File tree Expand file tree Collapse file tree
function-app-managed-identity/python/terraform
function-app-storage-http/dotnet/terraform
web-app-cosmosdb-mongodb-api/python/terraform
web-app-managed-identity/python/terraform
web-app-sql-database/python/terraform Expand file tree Collapse file tree Original file line number Diff line number Diff line change 132132if [ -f " $ZIPFILE " ]; then
133133 rm " $ZIPFILE "
134134fi
135+
136+ # Clean up Terraform resources
137+ echo " Cleaning up Terraform resources..."
138+ cd " $CURRENT_DIR " || exit
139+ $TERRAFORM destroy -auto-approve
Original file line number Diff line number Diff line change @@ -115,3 +115,8 @@ $AZ functionapp deploy \
115115 --name " $FUNCTION_APP_NAME " \
116116 --src-path $ZIPFILE \
117117 --type zip 1> /dev/null
118+
119+ # Clean up Terraform resources
120+ echo " Cleaning up Terraform resources..."
121+ cd " $CURRENT_DIR " || exit
122+ $TERRAFORM destroy -auto-approve
Original file line number Diff line number Diff line change @@ -118,3 +118,8 @@ $AZ webapp deploy \
118118if [ -f " $ZIPFILE " ]; then
119119 rm " $ZIPFILE "
120120fi
121+
122+ # Clean up Terraform resources
123+ echo " Cleaning up Terraform resources..."
124+ cd " $CURRENT_DIR " || exit
125+ $TERRAFORM destroy -auto-approve
Original file line number Diff line number Diff line change 130130if [ -f " $ZIPFILE " ]; then
131131 rm " $ZIPFILE "
132132fi
133+
134+ # Clean up Terraform resources
135+ echo " Cleaning up Terraform resources..."
136+ cd " $CURRENT_DIR " || exit
137+ $TERRAFORM destroy -auto-approve
Original file line number Diff line number Diff line change @@ -284,8 +284,12 @@ else
284284 exit 1
285285fi
286286
287- # Remove the zip package of the web app
288287# Remove the zip package of the web app
289288if [ -f " $ZIPFILE " ]; then
290289 rm " $ZIPFILE "
291290fi
291+
292+ # Clean up Terraform resources
293+ echo " Cleaning up Terraform resources..."
294+ cd " $CURRENT_DIR " || exit
295+ $TERRAFORM destroy -auto-approve
You can’t perform that action at this time.
0 commit comments