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