Search code examples
azureazure-web-app-serviceazure-storage

Deploy an app which requires disk storage to Azure app service


I am trying to migrate an old app to Azure. Let's call the app OAP. OAP was currently deployed locally on a typical server with Windows Server 2016.

When the user is using OAP, he may upload files to the system via a browser.

On the OAP server side, written by C#, it saves the file to the local disk. The saving location is a configurable setting for OAP. It values F:\OAPStorage now.

Now I need to deploy the app which requires disk storage to Azure app service. I understand that Azure app service provides some space for running an App. But what if the app scales?

I understand the best practice is to use Azure Blob Storage. But refactor the old app OAP is not possible. I have to provide it file storage to save user uploaded files. Is it okay to save it just on the disk which app runs?


Solution

  • I found a solution finally.

    In the Web App, under Application Settings, you will find Mount storage (Preview) section where you can mount Storage account. Works like a charm. In Linux Web Apps and Windows Containers Web Apps only.

    https://blogs.msdn.microsoft.com/appserviceteam/2018/09/24/announcing-bring-your-own-storage-to-app-service/

    But this is only a preview feature and do not support Windows Web Apps.