AZURE WEB APP WITH LINUX CONTAINER Assest persistance

Mohit Kumar Sharma 86 Reputation points
2021-01-06T12:42:00.143+00:00

Hi,

I am using azure web app with linux container. my web app is a php web app where user can upload the profile pic and also upload the pdf for invoices and we are saving all the images inside project code.

These files are not in git repo. we added this folder in gitignore so once i redeploy the container and old images is not available. Can you please help me how can i manage these images and pdfs?

Can i move these files and pdfs in the azure file storage without changing the code. if possible can you please guide me how can i do this?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. Andriy Bilous 12,076 Reputation points MVP Volunteer Moderator
    2021-01-06T14:06:47.947+00:00

    Hello @Mohit Kumar Sharma
    You can upload your files and pdfs into Azure file storage and mount this storage into WebApp

    To mount Azure file storage into WebApp

    • Go to Configuration -> Path Mappings -> New Azure Storage Mount
      53960-image.png

    Type Name of the mount, choose Storage Account, type Share name, Storage account Access key and the Mount path where to mount the share in Docker container


0 additional answers

Sort by: Most helpful

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.