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".”
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”.
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.
Post a Comment