Install Libre Office Azure Webapp

amandamonteiro-2450 51 Reputation points

Hello, community,
Could you help me to install Libre Office in an Azure web app on the Java stack?
I connect via ssh and run the following commands:

apt-get update
apt-get install LibreOffice

The installation occurs, but it does not persist, and sometime later, it disappears, and I have to do the same process.

I don't use DevOps, and the application has an error when I create a script to start with the web app.


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,788 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 17,826 Reputation points Microsoft Employee

    @amandamonteiro-2450 Thank you for reaching out to Microsoft Q&A. Apologize for the inconvenience caused on this.

    • This is a known phenomenon on App Service, as data only persists under /home directory only and to make the installations persist it is advisable to use a custom start up script.
    • You need create a custom startup script named from SSH command line inside /home directory and add the below cmdlets in it:- apt-get update
      apt-get -y install libreoffice
    • Add this path /home/ under Startup Command in Configuration blade of the web app.
    • As the modules is of a larger size, it is recommended to increase startup time of the application container to 600 seconds by using the app setting WEBSITES_CONTAINER_START_TIME_LIMIT = 600.
    • Post making the above suggested changes, we can see that LibreOffice library still persists after the webapp restarts. I would suggest you validate from your end as well.

    Feel Free to reach back to me if you have any further questions on this.

0 additional answers

Sort by: Most helpful