Good day,
To set the "JAVA_HOME" environment variable, login to portal.azure.com and follow the below steps,
- Navigate to your Azure Function's resource.
- In the left-hand menu, navigate to Configuration under settings.
- Under Application settings, Click on "New Application Setting".
- Set the name field as "JAVA_HOME" and value field to the path of your Java installation directory and click on save.
Once you have saved the changes, restart your Azure Functions.
Thank you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have an extra question about the answer, please click "Comment".