|
7 | 7 | [Switch]
|
8 | 8 | $NoBuild,
|
9 | 9 | [Switch]
|
10 |
| - $UseCoreToolsBuildFromIntegrationTests, |
11 |
| - [Switch] |
12 | 10 | $SkipCoreToolsDownload
|
13 | 11 | )
|
14 | 12 |
|
@@ -63,6 +61,7 @@ function NewTaskHubName
|
63 | 61 | $FUNC_RUNTIME_VERSION = '4'
|
64 | 62 | $POWERSHELL_VERSION = '7.2'
|
65 | 63 | $FUNC_CMDLET_NAME = "func"
|
| 64 | +$CORE_TOOLS_VERSION = '4.0.7317' |
66 | 65 |
|
67 | 66 | # Set the appropriate environment variables
|
68 | 67 | $taskHubName = NewTaskHubName -Length 45
|
@@ -108,23 +107,9 @@ Remove-Item -Recurse -Force $FUNC_CLI_DIRECTORY -ErrorAction Ignore
|
108 | 107 | if (-not $SkipCoreToolsDownload)
|
109 | 108 | {
|
110 | 109 | Write-Host "Downloading Core Tools because SkipCoreToolsDownload switch parameter is not present..."
|
111 |
| - $coreToolsDownloadURL = $null |
112 |
| - if ($UseCoreToolsBuildFromIntegrationTests) |
113 |
| - { |
114 |
| - $coreToolsDownloadURL = "https://functionsintegclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest/Azure.Functions.Cli.$os-$arch.zip" |
115 |
| - $env:CORE_TOOLS_URL = "https://functionsintegclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest" |
116 |
| - } |
117 |
| - else |
118 |
| - { |
119 |
| - $coreToolsDownloadURL = "https://functionsclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest/Azure.Functions.Cli.$os-$arch.zip" |
120 |
| - if (-not $env:CORE_TOOLS_URL) |
121 |
| - { |
122 |
| - $env:CORE_TOOLS_URL = "https://functionsclibuilds.blob.core.windows.net/builds/$FUNC_RUNTIME_VERSION/latest" |
123 |
| - } |
124 |
| - } |
125 | 110 |
|
126 |
| - $version = Invoke-RestMethod -Uri "$env:CORE_TOOLS_URL/version.txt" |
127 |
| - Write-Host "Downloading Functions Core Tools (Version: $version)..." |
| 111 | + $coreToolsDownloadURL = "https://github.com/Azure/azure-functions-core-tools/releases/download/$CORE_TOOLS_VERSION/Azure.Functions.Cli.$os-$arch.$CORE_TOOLS_VERSION.zip" |
| 112 | + Write-Host "Downloading Functions Core Tools (Version: $CORE_TOOLS_VERSION)..." |
128 | 113 |
|
129 | 114 | $output = "$FUNC_CLI_DIRECTORY.zip"
|
130 | 115 | Invoke-RestMethod -Uri $coreToolsDownloadURL -OutFile $output
|
|
0 commit comments