簡體   English   中英

將 Azure 函數和 Azure 文件共享作為目錄使用的最佳方法是什么?

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

我目前正在安裝 Azure 文件共享的 Windows 服務器上使用 Java 控制台應用程序。 在這種情況下,我不能使用 Azure 存儲的 SDK ,因為我使用的框架只能處理本地文件(我無法更改它。)。 此時一切正常。

客戶現在希望將應用程序移動到 Azure Function。 問題是我看不到任何方法可以在 Azure Function 中安裝 Azure 文件共享。 我也嘗試過 Azure Web 應用程序,但到目前為止,Java 的選項並不多。

最好的方法是什么?

在此先感謝您的幫助。

According to my research, we cannot mount Azure file share in Azure Function or Azure web app. Because Azure app service cannot connect to anywhere using ports 445, 137, 138, and 139. However, if you want to mount Azure File share, you need to open port 445. For more details, please refer to the Accessing Azure File Storage from Azure Function文件 在此處輸入圖像描述

So if you want to manage Azure File share in Azure Function, you need to Azure Storage SDK to manage it.

另外,如果你只是想在 Azure 服務中掛載 Azure 文件共享,我建議你使用 Azure 虛擬機。 在 Azure VM 上掛載 Azure 文件共享后,您可以像管理本地文件系統一樣管理它。

經過大量的工作,我發現自己是最好的方法。

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 .

它就像一個魅力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM