Azure / Azure/azure-dev

azd update does not support daily builds for winget installations

Open
#7,752 0 comments 0 reactions 2 assignees Claimed by @danieljurek View on GitHub
area/installer area/pipeline engineering item engsys
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

## Problem

When `azd` is installed via `winget install Microsoft.Azd`, running `azd update` to switch to the daily channel is explicitly blocked. The code at `cmd/update.go:193-209` checks `IsPackageManagerInstall()` (winget/choco) and returns an error suggesting the user uninstall first.

Homebrew has full channel support — it can switch between `azd` and `azd@daily` casks seamlessly. Winget/Chocolatey lack this parity.

## Current workaround for winget daily update

The stable flow (`winget install Microsoft.Azd` → `azd update`) works because `azd update` downloads the MSI and installs it (via the PowerShell script). However, upgrading across channels with the MSI is unreliable and may fail unpredictably. The deterministic workaround is to uninstall first (`winget uninstall Microsoft.Azd`), then install daily via the PowerShell script.

Discussed offline with @danieljurek. We will follow up with winget daily build support later.

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.