question

SwathiDhanwada-MSFT avatar image
0 Votes"
SwathiDhanwada-MSFT asked ·

[MSDN Redirect] Azure app services with Linux: installing linux apps through SSH don't persist

Hi,

When we connect by SSH from Azure Management Portal to our Linux hosted app service, there is a warning saying "Note: Any data outside '/home' is not persisted".

We need to install some libraries in order for graphics to work on Linux. Currently we are using built-in image, not custom docker image.

Is there a way to persist the installation data (outside 'home' directory) in our current plan? Or a configuration or a command that would keep the installed apps intact next time the app service is restarted?

Thank you

Cem

Source : https://social.msdn.microsoft.com/Forums/en-US/bab19c8e-2d53-4776-b871-d50806aa29b1/azure-app-services-with-linux-installing-linux-apps-through-ssh-dont-persist?forum=windowsazuremanagement

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ·

@ Cem, Welcome to Microsoft Q&A! Thanks for posting a good question!

I understand the scenario you’re dealing with in-built image, but am afraid, as mentioned in this document “Any changes you make outside the /home directory are stored in the container itself and don't persist beyond an app restart.”

{Just to highlight} However, on Custom container, you can use an app setting called WEBSITES_ENABLE_APP_SERVICE_STORAGE to control whether or not the /home directory of your app is mapped to Azure Storage. If you need files to be persisted in scale operations or across restarts, you should add this app setting and set it to "true". If you don't require file persistence, you can set this app setting to false.

Furthermore, to use the custom startup script, go to the portal “Application Settings” page and override the StartupFile to /home/site/wwwroot/startupScript.sh and then try calling /bin/init_container.sh based on your requirement.

Your feedback is highly appreciated, you may always share your feedback on Uservoice (https://feedback.azure.com/forums/169385-web-apps) - All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.