Azure Fileshares on a web page hosted from a VM

35 Views Asked by At

SO, I know that Azure does not currently have a way to display FileShare data directly to a webpage. SO as a workable solution, I created a VM that hooks into the fileshare from the SMB share as a virtual drive.

I have a pipeline that generates large zip files and other smaller zips with accompanying data. The smaller zip files are about 20 Mb, and the larger zip files are in the neighborhood of ~400Gb. The ADO pipeline will upload directly to the fileshare.

The VM is using windows/IIS and cannot reference the virtual drive directly, so I have a script that copies the files to the local drive. This script will compare the virtual drive and the local drive every 10 mins; if it detects a change, I have a wait timer set for 1 hr before starting the copy, because if it starts to transfer the file before the upload is complete, the upload will error out with File in use error.

This is currently "Working" but is there another way I can do this without spending so much time just waiting?

0

There are 0 best solutions below