-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azd CDN changing January 2025 #4661
Comments
On
There is only one version, from what I can see? |
@TWolversonReply -- The version of the Azure DevOps extension which uses the latest hostname is Using the task |
I'm getting intermittent failures installing AZD using the latest version (0.15.0) of the Azure DevOps setup-azd@0 task today. There's no useful output when it fails (even with system diagnostics enabled on the run), but if I rerun the pipeline enough times it eventually succeeds. Output when it fails:
Output when it succeeds
The task succeeds either way, but then when my pipeline comes to use azd in a later task its not there on the occasions its failed to install. It seems like it doesn't successfully download, but that doesn't cause the task to fail, it just ends successfully. |
@markwragg -- Thanks for reporting. Would you mind sharing the general location where these DevOps agents are hosted? We have seen a couple of failures with the new CDN in England previously and this information may help with diagnosing and fixing the issue. I've also opened an issue to improve error logging: #4674 |
I think the agents are in Azure North Europe region. It's a self hosted VMSS, but I didn't set it up so will check and confirm tomorrow. |
Our agents are all hosted in Azure, north europe. This is still a problem today, having to run the pipeline multiple times before the task successfully downloads the installer. |
@markwragg -- Given that the download succeeds some of the time I think that could rule out an agent or network configuration that would prevent talking to the new CDN host. I've tried to reproduce the behavior on VMs in North Europe and have successfully downloaded files from the CDN every time. If you're still seeing the issue, can you run the following on an agent? If so, when the download fails do you get header outputs? - pwsh: |
try {
$result = Invoke-WebRequest -Uri https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release/latest/azd-linux-amd64.tar.gz
$result.Headers | Format-Table -AutoSize -Wrap
} catch {
Write-Host "Failure: Invoke-WebRequest threw an error"
$_ | Write-Host
$_.Exception.Response.Headers | Format-Table -AutoSize -Wrap
exit 1
}
displayName: Try downloading azd |
@danieljurek I don't seem to be experiencing the issue today. Yesterday it was occurring 4 out of 5 attempts but I haven't seen it at all today. My guess it was a temporary issue with the new CDN that is now resolved. |
This issue primarily impacts downloaded versions of installer scripts (which should be updated to the latest by visiting
https://aka.ms/install-azd.ps1
andhttps://aka.ms/install-azd.sh
), GitHub Actions users (who need to upgrade toazure/setup-azd@v2
), some Azure DevOps instances which need to upgrade to the latest version ofsetup-azd@0
, and custom logic that depends on hostnames.The CDN endpoint for downloading and installing
azd
is changing. This is because the Edgeio provider is retiring their CDN service effective January 15, 2025.Depending on hostnames for azd install is not supported. We recommend using the install scripts or supported installation channels like WinGet, Choco, and brew.
The CDN at
azdrelease.azureedge.net
and the much older unsupportedazure-dev.azureedge.net
will be taken offline in the coming days.Impacted:
azure/setup-azd
GitHub Actioninstall-azd.ps1
andinstall-azd.sh
scripts*.azureedge.net
CDN hostsActions:
v2
) forazure/setup-azd
in your workflows.azdrelease.azureedge.net
to instead use the new hostname.Not impact:
azd
client andAzure Developer CLI
VSCode extension are not directly impactedhttps://aka.ms/install-azd.ps1
and
https://aka.ms/install-azd.sh
scripts. Those have already been updated.The text was updated successfully, but these errors were encountered: