Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Azure Functions Core Tools versions

I have both version v3 and v4 installed of Azure Functions Core Tools on windows.

How do I start a function using a specific version of Azure Functions Core Tools?

When I do like this:

c:\code> func start

That will start v3.

I can get it to use v4 using hardcoded path:

c:\code> c:\Users\xxx\AppData\Local\AzureFunctionsTools\Releases\4.10.1\cli_x64\func.exe start

But how do I prevent using path that will change from version to version?

like image 803
Rasmus Avatar asked Nov 16 '25 10:11

Rasmus


2 Answers

If running on Mac and installed the function core tools V3 and V4 using Homebrew, you can easily switch between installed versions.

Just run this command to switch to V3: brew unlink azure-functions-core-tools@3 && brew link --overwrite azure-functions-core-tools@3

To switch to V4, use the same command but with a trailing @4, like this: brew unlink azure-functions-core-tools@4 && brew link --overwrite azure-functions-core-tools@4

like image 102
user186876 Avatar answered Nov 18 '25 21:11

user186876


Glad that your issue got resolved based on my comments I am converting that as an answer to help the other community members who face similar kind of issues.

  • You can only install one version of core tools on a given computer as stated in Microsoft documentation.
  • When you check the version of azure function core tools, it will show the version you have installed recently.
  • After installing new version of core tools to run the old version project,
    • Either you have to update the azure functions core tools package version inside the project (or)
    • Downgrade/Upgrade your azure functions core tools version according to your requirement and compatibility in your local environment.

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!