Skip to content

azd update: leverage existing install scripts for download and verification #6987

@rajeshkamal5050

Description

@rajeshkamal5050

Problem

azd update reimplements download, extraction, and platform-specific install logic that already exists in the official install scripts (install-azd.sh, aka.ms/install-azd.ps1). This duplicates logic and creates maintenance risk if download URLs, archive formats, or verification steps change.

Proposed

  • Evaluate delegating the download/install step to the existing install scripts
  • For Linux/macOS: invoke install-azd.sh with version and install-folder args
  • For Windows: invoke install-azd.ps1 with equivalent params
  • Alternatively: refactor shared logic into a common library that both install scripts and azd update consume

Tradeoffs

  • Pro: single source of truth for install mechanics, reduces azd binary complexity
  • Con: adds external dependency on script availability, may need offline fallback

Context

Parent epic: #6721

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions