The issue might be that the FUNCTIONS_EXTENSION_VERSION is not being passed correctly to the Azure Functions app during deployment. You can try the following steps to resolve this issue:
- Verify that the
azurefunctionsblock in thebuild.gradlethe file is correctly formatted, and all the necessary information is provided. - Make sure that the correct version of the Azure Functions Gradle plugin is being used in your project. You can check this by adding the following line to the
build.gradlefile:plugins { id "com.microsoft.azure.functions" version "1.7.0" } - Try using the
functionsproperty instead ofappSettingsto set theFUNCTIONS_EXTENSION_VERSION:
azurefunctions {
subscription = 'xxxxx-xxxx-xxxx-xxxx-xxxx'
resourceGroup = 'xxxxxxx'
appName = 'xxxxxx'
region = 'Southeast Asia'
runtime {
os = 'Linux'
javaVersion = '8'
}
localDebug = "transport=dt_socket,server=y,suspend=n,address=5005"
functions {
FUNCTIONS_EXTENSION_VERSION = '~4'
}
}
If the above steps do not work, you can try setting them FUNCTIONS_EXTENSION_VERSION directly in the Azure portal instead of through the Gradle configuration. To do this, go to the Azure portal, select your Functions app, and go to the Configuration tab. Add a new setting in the App settings section with the key FUNCTIONS_EXTENSION_VERSION and the value. ~4.
I hope these steps help resolve the issue with the FUNCTIONS_EXTENSION_VERSION error in your Azure Functions app.