Customize JRE used by Azure Functions - Azure/azure-functions-java-worker GitHub Wiki

For Mitigation for the TLS issue, please visit here

For Windows plan:

  • Open Kudu: https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings#kudu

  • You can use one of the Azure JREs or you can bring you own JRE

    • Use one of the Azure JREs
      • Find the JRE you would like to use, which can be located at D:\Program Files\Java\
      • Add AppSetting Key languageWorkers:java:defaultExecutablePath with value set to full path to the required java.exe, for example - D:\Program Files\Java\<version>\bin\java.exe
    • Bring you own JRE
      • Copy your JRE to a folder in d:\home. For example D:\home\MyJre
      • Add AppSetting Key languageWorkers:java:defaultExecutablePath with value set to full path to your java.exe, for example d:\home\MyJre\bin\java.exe
  • If your app is using consumption plan, you also need add following appsetting. Note: This will increase cold starts for java functions

    • App setting key WEBSITE_USE_PLACEHOLDER with value set to 0

For Linux plan:

⚠️ **GitHub.com Fallback** ⚠️