Skip to content

fix(teardown): add az OIDC login + tolerate missing azd state#16

Merged
emmanuelknafo merged 1 commit into
mainfrom
fix/teardown-az-login
Jun 3, 2026
Merged

fix(teardown): add az OIDC login + tolerate missing azd state#16
emmanuelknafo merged 1 commit into
mainfrom
fix/teardown-az-login

Conversation

@emmanuelknafo

Copy link
Copy Markdown
Contributor

Two failures in teardown.yml:%0A1. azd down aborted with 'deployment not found' when azd local state was missing — added continue-on-error + || true.%0A2. Final az group delete failed with 'Please run az login' — added azure/login@v2 (OIDC) and explicit az account set.%0A%0AMirrors ADO .azuredevops/pipelines/teardown.yml which already does || true and uses an Azure CLI task that auto-authenticates az.

Two failures observed:
1. 'azd down' aborted with 'deployment not found' when azd local state was
   missing (azd env state is per-runner, not stored in Azure). Mark the step
   continue-on-error and append '|| true' so the RG-delete fallback runs.
2. Final 'az group delete' failed with 'Please run az login to setup account'
   because only 'azd auth login' ran (azd does not authenticate the az CLI).
   Add azure/login@v2 (OIDC) + explicit 'az account set'.

Mirrors the ADO pipeline behavior (.azuredevops/pipelines/teardown.yml).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@emmanuelknafo emmanuelknafo merged commit 1e633b3 into main Jun 3, 2026
9 checks passed
@emmanuelknafo emmanuelknafo deleted the fix/teardown-az-login branch June 3, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant