Skip to content

Commit

Permalink
Migrate to new CDN endpoint (#4629)
Browse files Browse the repository at this point in the history
* Migrate to new CDN endpoint

* Updates to DevOps extension version (from CONTRIBUTING.md)

* cSpell issues

* ignore host parts of hostname

* Update cspell

* disable-line did not work in this instance

* missing version updae

* version 0.17.0 -> 0.15.0

---------

Co-authored-by: Victor Vazquez <[email protected]>
  • Loading branch information
danieljurek and vhvb1989 authored Dec 14, 2024
1 parent d4c6168 commit d3faad6
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 13 deletions.
9 changes: 6 additions & 3 deletions cli/azd/.vscode/cspell.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import: ../../../.vscode/cspell.global.yaml
words:
- azcloud
- azurefd
- backoff
- Canonicalize
- chinacloudapi
- Codespace
- Codespaces
- devcontainers
# CDN host name
- gfgac2cmf7b8cuay
- goversioninfo
- nosec
- Retryable
- runcontext
- azcloud
- usgovcloudapi
- chinacloudapi
- unmarshals
- usgovcloudapi
languageSettings:
- languageId: go
ignoreRegExpList:
Expand Down
1 change: 1 addition & 0 deletions cli/azd/test/recording/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ func Start(t *testing.T, opts ...Options) *Session {
strings.Contains(req.URL.Path, "/azure-dev")) ||
strings.Contains(req.URL.Host, "azure-dev.azureedge.net") ||
strings.Contains(req.URL.Host, "azdrelease.azureedge.net") ||
strings.Contains(req.URL.Host, "azd-release-gfgac2cmf7b8cuay.b02.azurefd.net") ||
strings.Contains(req.URL.Host, "default.exp-tas.com") ||
(strings.Contains(req.URL.Host, "dev.azure.com") &&
strings.Contains(req.URL.Path, "/oidctoken"))
Expand Down
2 changes: 1 addition & 1 deletion cli/installer/choco/azd.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<description>A developer CLI that accelerates 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.</description>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<docsUrl>https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/get-started</docsUrl>
<iconUrl>https://azdrelease.azureedge.net/azd/assets/azure-dev.svg</iconUrl>
<iconUrl>https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/assets/azure-dev.svg</iconUrl>
<bugTrackerUrl>https://github.com/Azure/azure-dev/issues</bugTrackerUrl>
<licenseUrl>https://github.com/Azure/azure-dev/blob/main/LICENSE</licenseUrl>
<projectSourceUrl>https://github.com/Azure/azure-dev/</projectSourceUrl>
Expand Down
4 changes: 2 additions & 2 deletions cli/installer/install-azd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ download and install locations.
.PARAMETER BaseUrl
Specifies the base URL to use when downloading. Default is
https://azdrelease.azureedge.net/azd/standalone
https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release
.PARAMETER Version
Specifies the version to use. Default is `latest`. Valid values include a
Expand Down Expand Up @@ -59,7 +59,7 @@ Download the installer and install the "daily" build
#>

param(
[string] $BaseUrl = "https://azdrelease.azureedge.net/azd/standalone/release",
[string] $BaseUrl = "https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release",
[string] $Version = "stable",
[switch] $DryRun,
[string] $InstallFolder,
Expand Down
2 changes: 1 addition & 1 deletion cli/installer/install-azd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ extract() {
fi
}

DEFAULT_BASE_URL="https://azdrelease.azureedge.net/azd/standalone/release"
DEFAULT_BASE_URL="https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release"

base_url="$DEFAULT_BASE_URL"
platform="$(get_platform)"
Expand Down
2 changes: 1 addition & 1 deletion cli/installer/test-installer-containers.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param(
[string] $BaseUrl='https://azdrelease.azureedge.net/azd/standalone/release',
[string] $BaseUrl='https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release',
[string] $Version = 'latest',
[string] $ContainerPrefix = '',
[string] $AdditionalBuildArgs = '--no-cache',
Expand Down
2 changes: 1 addition & 1 deletion cli/installer/test-pwsh-xplat-install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param(
[string] $BaseUrl = 'https://azdrelease.azureedge.net/azd/standalone/release',
[string] $BaseUrl = 'https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release',
[string] $Version = 'latest',
[string] $InstallShScriptUrl = 'https://aka.ms/install-azd.sh',
[string] $UninstallShScriptUrl = 'https://aka.ms/uninstall-azd.sh'
Expand Down
2 changes: 1 addition & 1 deletion cli/installer/test-win-install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param(
[string] $BaseUrl = 'https://azdrelease.azureedge.net/azd/standalone/release',
[string] $BaseUrl = 'https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release',
[string] $Version = 'latest',
[string] $InstallFolder = "$($env:USERPROFILE)\azd-install-test"
)
Expand Down
2 changes: 1 addition & 1 deletion ext/azuredevops/setupAzd/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function runMain(): Promise<void> {
exeMap
)

const url = `https://azdrelease.azureedge.net/azd/standalone/release/${version}/${installArray[0]}`
const url = `https://azd-release-gfgac2cmf7b8cuay.b02.azurefd.net/azd/standalone/release/${version}/${installArray[0]}`

console.log(`The Azure Developer CLI collects usage data and sends that usage data to Microsoft in order to help us improve your experience.
You can opt-out of telemetry by setting the AZURE_DEV_COLLECT_TELEMETRY environment variable to 'no' in the shell you use.
Expand Down
2 changes: 1 addition & 1 deletion ext/azuredevops/setupAzd/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "AzureDeveloperCLI",
"version": {
"Major": 0,
"Minor": 14,
"Minor": 15,
"Patch": 0
},
"instanceNameFormat": "Installs azd: $(rootFolder)",
Expand Down
2 changes: 1 addition & 1 deletion ext/azuredevops/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "azd",
"name": "Install azd",
"version": "0.14.0",
"version": "0.15.0",
"publisher": "ms-azuretools",
"targets": [
{
Expand Down

0 comments on commit d3faad6

Please sign in to comment.