Azure / Azure/azure-dev

azd update: rollback/recovery on failed update

Open
#6,982 0 comments 0 reactions 0 assignees View on GitHub
area/core-cli bug
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

## Problem
No backup of current binary before replacement. A broken update via `azd update` or auto-apply requires manual reinstall.

## Proposed
- Back up the current binary before replacement (e.g. `azd.bak`)
- On failure, restore from backup automatically
- For auto-apply (`ApplyStagedUpdate`), use atomic copy-to-temp + rename instead of direct overwrite

## Context
Raised in design review #6910 and PR #6942 code review.

Parent epic: #6721

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.