Oxygen
Oxygen

Reputation: 871

Azure functions core tools installation is stuck in visual studio code

I have created Azure function app to execute powershell script. Wanted to run it on my local first to test it. When I run it, with or without debugging option, one popup is coming which says - "You must have the azure functions core tools installed to debug your local functions." When I click on Install on this popup, it seems automatically starting installing Azure functions core tools.

But its stuck at one point - attempting to GET "https://functionscdn.azureedge.net/public/3.0.2534/Azure.Functions.Cli.win-x64.3.0.2534.zip"

Confirmed my network is good, tried by restarting PC and followed the steps again but no luck.

Other observation is, even If I install it manually using command prompt by using below command,

npm install -g azure-functions-core-tools@3

it still says "You must have the azure functions core tools installed to debug your local functions."

Reference is - enter image description here Can you please guide how to proceed with this? Thank You.

Upvotes: 6

Views: 31789

Answers (3)

Valentin Petkov
Valentin Petkov

Reputation: 1648

After lost a day with all these install uninstall...

THE MOMENT OF TRUTH
To install the 64-bit version, which allows you to debug, you can use the command

here

choco install azure-functions-core-tools-3 --params="'/x64:true'"

BAM worked I can debug in visual studio code

https://chocolatey.org/packages/azure-functions-core-tools-3#install

the first comment thanks Tyler Doerksen life saver!!!!

Upvotes: 3

nl09
nl09

Reputation: 103

I had similar issue.

npm install -g azure-functions-core-tools@3 It doesn't add func to the path.

Adding following to the path resolved the issue.

C:\Users\username\AppData\Roaming\npm

Upvotes: 1

George Chen
George Chen

Reputation: 14324

Go the Azure Functions Core Tools release page, download MSI file of the version you want, then just install it.

Or you could download the zip file, unzip it then set the folder path to your environment Path.

enter image description here

Upvotes: 7

Related Questions