azure-functions-core-tools
azure-functions-core-tools copied to clipboard
Core tools not respect JAVA_HOME set in local.setting.json file
I have core tools version 4.0.4590, I noticed for env vars like EventHubConnectionAppSetting, APPLICATIONINSIGHTS_CONNECTION_STRING, etc, those env vars are respect when run function app on core tools. However, for env var JAVA_HOME set in local.setting.json, it is not respect by core tools.
I tried the same thing on running the function app on host directly by setting JAVA_HOME as env var in vs2022, I found host is respecting it.
With @michaelpeng36 help I also tried command func settings add JAVA_HOME <javaHomeValue> and then func start but still not working.
Is something missing in core tools or is something wrong with my config. Thanks.
Noticed it print out
Seems core tools will first consider system env var. If it's already present then skip the setting in local.setting.json file, wondering if we can somehow override this behavior make it takes priority at local.setting.json settings. Thanks.