-
Notifications
You must be signed in to change notification settings - Fork 64
Customize JRE used by Azure Functions
Ahmed El Sayed edited this page Nov 16, 2021
·
10 revisions
For Windows plan:
-
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
- Use one of the Azure JREs
-
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:
- Please follow Manual version updates on linux