question

BenLevy-4415 avatar image
0 Votes"
BenLevy-4415 asked ·

Shared file storage for a web farm

We have an Azure VM (Windows) hosting our web app on IIS. This is set up behind a load balancer. Currently there is only one web server, but we will add more later.

We need to save files (images and videos) that are accessible to all web servers. These are user files. We will also need this to be backed up. Note, hot backups is not required .

These are compressed (ie size and bitrate) so they are not that large. They are not served up often. About 3 or 4 times per file, but they do need to be maintained.

All our servers are private VM's. No shared services. We will not use any shared services. The only connections are over HTTPS, no RDP or any other connections.

The Azure portal is not super helpful.

My guess is that a Storage Account (LRS is fine) would work. Then just map an IIS Virtual Directory to it (UNC?)

Am I on the correct track?

Also, do I need to set up backups or is this done automatically?

Thanks,
Ben


azure-virtual-machinesazure-storage-accountswindows-server-iis-general
· 6
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@BenLevy-4415 , thank you for reaching out to us! Happy to help.

Partially, you are on right track. You can use Azure Storage account to save your files and those can be accessed by different VMs (web servers).

You can directly use Azure AD natively for this operation. Azure Storage natively supports Azure AD authentication, so it can directly accept access tokens obtained using a managed identity. Do check out this step-by-step tutorial - Tutorial: Use a Windows VM system-assigned managed identity to access Azure Storage

For Storage back-ups, Azure has good option to do so: How to backup Azure Blob storage accounts.

Let me know if this helps your query.


0 Votes 0 ·

May I know, why do you need IIS Virtual Directory for this? You can also use Azure Storage Explorer to view the files.


0 Votes 0 ·
BenLevy-4415 avatar image BenLevy-4415 HarshitaSingh-MSFT ·

@HarshitaSingh-MSFT

Thanks for the info. Azure Storage Explorer will not be used.

Think of this as a profile pic on a web site. There are images and videos uploaded. Storing them in the DB is not a suitable option. We need to store these files on disk and have multiple IIS web servers (each on a VM) access them. The IIS web servers are behind a load balancer.

The IIS Virtual directory (on each IIS instance) will simply point to the UNC path.

Thanks,
Ben

0 Votes 0 ·

Okay, sounds fair. Thanks for the clarification. In that case, you might want to use Azure File share.

Check out Quickstart: Create and manage Azure Files share with Windows virtual machines and Use Azure File Share as Virtual Directory in IIS for the start.

Let me know if this helps your query.


0 Votes 0 ·
Show more comments
HarshitaSingh-MSFT avatar image
0 Votes"
HarshitaSingh-MSFT answered ·

In this case, you can use Azure File share.

Check out Quickstart: Create and manage Azure Files share with Windows virtual machines and Use Azure File Share as Virtual Directory in IIS for the start.

Further, Azure File Share provides you Scheduled (frequency and retaining period as per your needs) and On-demand backups. Check out Back up Azure file shares for details about these backups.

In summary, you can set a backup policy, a snapshot of the file shares is taken at the scheduled time. The recovery point is also retained for the chosen period:

73827-image.png

Further, to protect your data until the backup policy engages, initiate an on-demand backup:

73941-image.png



Please do not forget to "Accept the answer" if the information provided helps you. This will help others in the community as well.










·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BenLevy-4415 avatar image
0 Votes"
BenLevy-4415 answered ·

OK.

Thank you so much.

This is SO HELPFUL!

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.