diff --git a/cli/azd/cmd/update.go b/cli/azd/cmd/update.go index 9e6b61dce53..974200a0667 100644 --- a/cli/azd/cmd/update.go +++ b/cli/azd/cmd/update.go @@ -201,7 +201,8 @@ func (a *updateAction) Run(ctx context.Context) (*actions.ActionResult, error) { Err: fmt.Errorf("daily builds aren't available via %s", installedBy), Suggestion: fmt.Sprintf( "Uninstall first with: %s\nThen install daily with: "+ - "curl -fsSL https://aka.ms/install-azd.sh | bash -s -- --version daily", + "powershell -ex AllSigned -c \"Invoke-RestMethod 'https://aka.ms/install-azd.ps1'"+ + " -OutFile 'install-azd.ps1'; ./install-azd.ps1 -Version 'daily'\"", uninstallCmd), }, } diff --git a/cli/azd/docs/design/azd-update.md b/cli/azd/docs/design/azd-update.md index 1d403137b45..3eedd750303 100644 --- a/cli/azd/docs/design/azd-update.md +++ b/cli/azd/docs/design/azd-update.md @@ -306,7 +306,7 @@ Switching between a package manager and direct installs is **not supported** via | Scenario | Guidance | |----------|----------| -| Package manager → daily | Show: "Daily builds aren't available via {brew/winget/choco}. Uninstall with `{uninstall command}`, then install daily with `curl -fsSL https://aka.ms/install-azd.sh \| bash -s -- --version daily`" | +| Package manager → daily | Show: "Daily builds aren't available via {brew/winget/choco}. Uninstall with `{uninstall command}`, then install daily with the platform-appropriate daily install command (`install-azd.ps1` on Windows, `install-azd.sh` on Linux/macOS)" | | Script/daily → package manager | Show: "To switch to {brew/winget/choco}, first uninstall the current version, then install via your package manager." | This avoids the silent symlink overwrite problem that exists today with conflicting install methods. @@ -377,4 +377,3 @@ The startup "out of date" warning banner is suppressed during `azd update` (stal When the auto-update elevation warning is shown ("azd version X.Y.Z has been downloaded. Run 'azd update' to apply it."), the "out of date" warning is also suppressed to avoid showing two redundant warnings about the same condition. --- -