AZURE temp files


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.
7,045 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Andriy Bilous 10,996 Reputation points MVP


    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,611 Reputation points MVP

    A few folders are not persistent: - 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