@@ -63,6 +63,7 @@ function NewTaskHubName
63
63
$FUNC_RUNTIME_VERSION = ' 4'
64
64
$POWERSHELL_VERSION = ' 7.4'
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
@@ -108,23 +109,9 @@ Remove-Item -Recurse -Force $FUNC_CLI_DIRECTORY -ErrorAction Ignore
108
109
if (-not $SkipCoreToolsDownload )
109
110
{
110
111
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
-
126
- $version = Invoke-RestMethod - Uri " $env: CORE_TOOLS_URL /version.txt"
127
- Write-Host " Downloading Functions Core Tools (Version: $version )..."
112
+
113
+ $coreToolsDownloadURL = " https://github.com/Azure/azure-functions-core-tools/releases/download/$CORE_TOOLS_VERSION /Azure.Functions.Cli.$os -$arch .$CORE_TOOLS_VERSION .zip"
114
+ Write-Host " Downloading Functions Core Tools (Version: $CORE_TOOLS_VERSION )..."
128
115
129
116
$output = " $FUNC_CLI_DIRECTORY .zip"
130
117
Invoke-RestMethod - Uri $coreToolsDownloadURL - OutFile $output
0 commit comments