Skip to content

Commit 173fb1c

Browse files
fix: update destroy target to select Azure environment before teardown
1 parent 0704b87 commit 173fb1c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ azd-login: ## 🔑 Login to Azure with azd and a SPN
5757
@echo -e "\e[34m$@\e[0m" || true
5858
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}
5959

60-
azd-login: ## 🔑 Login to Azure with azd and a SPN
61-
@echo -e "\e[34m$@\e[0m" || true
62-
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}
63-
6460
# Fixed Makefile section for deploy target
6561
# Fixed Makefile section for deploy target
6662
deploy: azd-login ## Deploy everything to Azure
@@ -178,4 +174,5 @@ disable-auth-fixed:
178174

179175
destroy: azd-login ## 🧨 Destroy everything in Azure
180176
@echo -e "\e[34m$@\e[0m" || true
177+
@azd env select $(AZURE_ENV_NAME) || true
181178
@azd down --force --purge --no-prompt

0 commit comments

Comments
 (0)