Problem
azd-deploy fails in a brand-new environment because retry attempt 2 tries to create ACA apps that already exist in Azure but are not present in Terraform state at that moment.
Type
Evidence
- Workflow run: https://github.com/Azure-Samples/tutor/actions/runs/23124471384
- Job:
provision (67164738583), step Provision infrastructure failed.
- Same run shows:
- attempt 1 transient ACA errors (
Operation expired), then retry
- attempt 2 errors:
already exists - to be managed via Terraform this resource needs to be imported into the State for multiple apps (avatar/chat/configuration/essays/evaluation/lms-gateway/questions/upskilling).
- Earlier in same job, reconcile step logged several
not found in Azure. Skipping state import. for those apps before attempt 1.
Reproduction
- Trigger
.github/workflows/azd-deploy.yml with workflow_dispatch and azure_env_name_override=178dev (or any fresh dev env).
- Allow first
Provision infrastructure attempt to hit transient ACA revision failures.
- Observe retry attempt where Terraform reports
already exists on ACA apps.
Acceptance Criteria
Suggested Owner
platform-quality
Problem
azd-deployfails in a brand-new environment because retry attempt 2 tries to create ACA apps that already exist in Azure but are not present in Terraform state at that moment.Type
Evidence
provision(67164738583), stepProvision infrastructurefailed.Operation expired), then retryalready exists - to be managed via Terraform this resource needs to be imported into the Statefor multiple apps (avatar/chat/configuration/essays/evaluation/lms-gateway/questions/upskilling).not found in Azure. Skipping state import.for those apps before attempt 1.Reproduction
.github/workflows/azd-deploy.ymlwithworkflow_dispatchandazure_env_name_override=178dev(or any fresh dev env).Provision infrastructureattempt to hit transient ACA revision failures.already existson ACA apps.Acceptance Criteria
already existsfor ACA backend apps in fresh env scenarios.Suggested Owner
platform-quality