AZURE temp files

JOSUE ALEJANDRO SALAS RODRIGUEZ 1 Reputation point
2022-09-21T23:03:24.15+00:00

Hi, im trying to deploy an app in azure.
Is there a tmp folder that can i use?
Im trying to deploy a web app where the user uploads some files to the app, the app do some things with this files and them delete them. Is there a way to do this?

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

2 answers

Sort by: Most helpful
  1. Andriy Bilous 10,901 Reputation points MVP
    2022-09-22T04:54:53.053+00:00

    Hello @JOSUE ALEJANDRO SALAS RODRIGUEZ

    I would recommend you to use Azure Files and mount it to your App Service as local share, here are instructions

    The benefits of custom-mounted storage include:

    • Configure persistent storage for your App Service app and manage the storage separately.
    • Make static content like video and images readily available for your App Service app.
    • Write application log files or archive older application log to Azure File shares.
    • Share content across multiple apps or with other Azure services.

    If you think your question has been answered, click "Mark as Accept Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.

    0 comments No comments

  2. Luke Murray 10,526 Reputation points MVP
    2022-09-22T20:40:07.51+00:00

    A few folders are not persistent: https://github.com/projectkudu/kudu/wiki/Understanding-the-Azure-App-Service-file-system - especially after a reboot, as you may end up on another host/instance etc.

    Although it wouldn't be recommended to use this folder to store your files, due to the size/monitoring etc. - it could cause unforeseen issues if these files grow.

    As suggested above, my recommendation would be an Azure File Share, mapped to the Azure App Service - and then an Azure function connecting to the file share to delete or move the files, that way you will be able to better log the changes and reduce the impact on the performance of your app service.

    0 comments No comments