Search code examples
javaazureazure-functionsazure-webjobsazure-web-app-service

What is the best way to work with Azure Functions and Azure File Share as a directory?


I am currently working with a Java console application on a Windows server that has mounted an Azure File Share. I can't use the SDK of Azure Storage on that case because I use a framework this can only treat local files(and I can not change that.). At this point everything is working perfectly.

The client wants now to move the application to an Azure Function. The problem is that I don't see any way to mount the Azure File Share in an Azure Function. I've also tried Azure Web App but as I've seen so far there are not many options for Java.

What would be the best way to do that?

Thanks in advance for your help.


Solution

  • After a lot of work I found out myself the best way to do it.

    I've an Azure Web App running on a linux server with Tomcat 9.0, which has the option to mount azure storage in it, then(because it doesn't allow web jobs) I run a new Thread when the server starts with the api.

    It works like a charm.