Commit 964ef72
fix(agents/postdeploy): make postdeploy non-fatal after successful deploy
The postdeploy event handler runs AFTER the agent is already deployed
and active. Failures in this step (AZURE_TENANT_ID missing, agent
version lookup 404, RBAC assignment errors) should not cause azd up
to report EXIT 1 when the deploy actually succeeded.
Wrap the postdeploy handler to catch all errors and emit a warning
to stderr instead of returning the error to azd (which treats it as
a deployment failure).
Discovered via iterative quickstart assessment:
- Iter1: AZURE_TENANT_ID not set → EXIT 1
- Iter3: duplicate service → version lookup 404 → EXIT 1
Both cases had working agents despite the error.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent be06a46 commit 964ef72
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
0 commit comments