Share via

Request for Guidance: JAVA Uninstallation in Azure Function App (B3 Plan) and Recommendations for Production Stability

Vishal Bhalabar 20 Reputation points
2025-10-31T10:31:11.5066667+00:00

[Azure Environment]

Azure function app with B3 app service plan. (Hosting plan: App service plan)

[Functionality]

There is a one CSV file which has storage container and Search index mapping. Function app reads this CSV. Reads documents present on storage container and by using Azure Open AI's text embedding model, saves embedding into Search index.

Note: For processing .doc and .xls files, app needs JAVA to be installed on system.

[Deployment]

Deployed this function app from Visual studio code. It runs every 5 mints.

[Post Deployment]

Restarted function app after deployment. Connected to SSH and installed JAVA (apt-get update && apt-get install -y default-jdk). Verified java is installed.

[Issue]

After few days, it’s been observed that JAVA is uninstalled.

1.Could you please guide us on what could be the reason/cause?

2.How can we check/verify the cause?

3.What is recommended for Production use? (Any other app service plan?)

4.How can we avoid this in Production going forward?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Pravallika KV 17,025 Reputation points Microsoft External Staff Moderator
    2025-11-04T04:19:37.3033333+00:00

    Hi Vishal Bhalabar,

    Thanks for reaching out to Microsoft Q&A.

    Java getting uninstalled could be because of App Service Plan Limitations and environment scope.

    • The B3 pricing plan might have restrictions that do not preserve custom configurations or installations across restarts. App Service environments can sometimes loose installed dependencies if the underlying platform is reset or scaled.
    • If the Java installation was done under a different scope i.e., in a temporary container, it might not be retained after restarting the app.

    Could you please guide us on what could be the reason/cause?

    • Enable Application Insights in your Function App. Review the logs to see any errors or messages related to Java installation after a restart. Look for events related to environment changes.
    • Ensure that the settings for Java are correctly configured to persist through restarts. You can check this in the Azure Portal under App Service settings.

    Recommendations for Production Use:

    • Upgrade to a Premium Plan or Elastic Premium Plan for a more stable hosting option for Java applications. These plans provide better performance and reliability for Java applications and allow you to configure your environment more persistently.

    How to Avoid This in Production?

    • Instead of manually installing Java, use the built-in Java offered by Azure for the Function Apps. Select the latest version available in the Azure Portal.
    • If you require specific Java versions or configurations, consider using a Docker container where you can guarantee the environment's state across deployments.

    Save your necessary configurations or installations into Azure Blob Storage or Azure Files that can be accessed and restored whenever needed.

    Azure Functions Java developer guide

    Java on App Service configuration guide

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    User's image

    If you have any other questions, let me know in the "comments" and I would be happy to help you.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.