August 16, 2018

Azure functions: The remote runtime "~1" is not compatible with your local runtime "beta".

Problem

When trying to deploy Azure Functions from Visual Studio Code, you get error “The remote runtime "~1" is not compatible with your local runtime "beta".”

azfunc

As beta is not yet production ready, you may not want to update your Azure Functions in the portal to version 2, i.e., “beta”.

Solution

You probably created the Azure Function when you had version 2.0 of azure-functions-core-tools installed

npm i –g azure-functions-core-tools@core
when you should’ve installed the 1.0 version using
npm i -g azure-functions-core-tools

What you need to do is to go to VS Code workspace settings and change azureFunctions.projectRuntime from “beta” to “~1”. After that deployment works.

azfunc2

No comments:

Post a Comment