Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.

Home Page:https://aka.ms/azd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Issue] error 404 when using winget to install this package

Robertblazor opened this issue · comments

When type in the following command

'''winget install Microsoft.Azd '''

It shows the error of the following

image

I've got the same error.
I tried both update Microsoft.Azd via winget and uninstall and then trying to re-install but the command fails with 404 response

Thanks for reporting @Robertblazor and @albx ... I see this happening locally. Checking now .

An issue has been identified in WinGet. Running winget install Microsoft.Azd --verbose-logs produces the following logs:

...
2024-05-09 09:19:13.862 [REPO] Downloading manifest
2024-05-09 09:19:13.862 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/Azd/1.9.100/5f71
2024-05-09 09:19:14.144 [CORE] Download request failed. Returned status: 404
2024-05-09 09:19:14.144 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(148)\WindowsPackageManager.dll!00007FFB51FE91E2: (caller: 00007FFB521751B7) Exception(17) tid(5c90) 80190194 Not found (404).
    Msg:[Download request status is not success.] 
...

Issue tracking on WinGet's side: microsoft/winget-pkgs#152915

Workaround

To work around for now, you can run the PowerShell install script:

powershell -nop -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"

When it's time to upgrade again azd will recommend using the PowerShell stanza but, once the WinGet issue is fixed, you can go back to using winget upgrade Microsoft.Azd.

Workaround

To work around for now, you can run the PowerShell install script:

powershell -nop -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"

Just tried out the workaround. It works! :)

It is working around, but I would recommend the winget to be back on.

WinGet has fixed the issue in the short term: microsoft/winget-pkgs#152946 so winget install Microsoft.Azd now works again.