Reputation: 3737
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?
Upvotes: 6
Views: 4252
Reputation: 3824
It depends on the App Service Plan you pick. Each plan has different amounts of storage.
https://azure.microsoft.com/en-us/pricing/details/app-service/windows/
You can access this storage space on the following directories [Ref]
%HOME%
or \home\
for Linux - For persistent storage%SYSTEMDRIVE%
- For accessing the drive. It usually point to D:
drive in Windows Containers.Upvotes: 4
Reputation: 3737
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.
But this is only a preview feature and do not support Windows Web Apps.
Upvotes: 3
Reputation: 14334
If you choose to use Azure App to host your website, the storage is all depending on the Service Plan, if you want more storage you have to scale up your tier.Here is the pricing for Windows Service Plan.
If you don't need the Azure Features , you could also choose Azure VM to deploy your site.And Azure VM support to add disks, there are HDD disks and SSD disks for choice.And here is the pricing for Managed Disks.If you want to use Azure VM, here is the VM charges.
Upvotes: 0