I'm trying to set up continuous integration for my Function App with GitHub. The initial pull from my repo shows that it worked as it shows "Success (Active)". However subsequent updates to the branch are all failing with the following error:
Your function app is targeting V1, but Azure host has function version V2, please change the version using the portal or update your 'FUNCTIONS_EXTENSION_VERSION' appsetting and retry
I have confirmed the FUNCTIONS_EXTENSION_VERSION
value is set to ~2
in the portal. My function app runtime version is 2.0.12134.0 (~2)
as defined in the web portal.
My host.json is also set to 2.0.
{
"version": "2.0"
}
Is there another place (locally) where the version would be defined?
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
(from your link provided) resolved this issue. Please post an answer and I'll accept it. Thanks :) – Jason Shave