You can use /home directory to persist data and share them across multiple instances. When persistent storage is enabled, all writes to the /home directory are persisted and can be accessed by all instances of a scaled-out app.
Hope this helps
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi
i have azure web apps linux/ flask app setup
app is running fine..
i need to read/write a file in home from container when it is hosted with multiple instance-->.gunicorn --bind=0.0.0.0 --timeout 600 --workers=4 app:app
i want to know how to write/read programmatically from any instance of container and use it in currently running .py files..
pls guide
You can use /home directory to persist data and share them across multiple instances. When persistent storage is enabled, all writes to the /home directory are persisted and can be accessed by all instances of a scaled-out app.
Hope this helps
@Kesavamurthi D Just checking in here if you have chance to see previous response, As suggested you can use persistent shared storage You can use the /home directory in your custom container file system to persist files across restarts and share them across instances. The /home directory is provided to enable your custom container to access persistent storage.
When persistent storage is enabled, all writes to the /home directory are persisted and can be accessed by all instances of a scaled-out app.
Please let us know if further query or issue remains.