如何将 "Azure File Storage" 与 Web App Service 一起使用?

How can I use "Azure File Storage" with Web App Service?

我一直在努力寻找一些资源来帮助解释我们如何将 File Storage 与 Web 应用服务一起使用。

有一些方法可以将它与旧的 Web 角色一起使用,请在此处查看 (Using the Azure File Service in your Cloud Services (Web and Worker Roles))。

但是,"Azure Web Service" 中没有 OnStart() 方法。

如果您正在寻找使用 SMB 协议将驱动器映射到 Web 应用程序中的 Azure 文件服务共享,那么我认为您今天无法做到。

您可以做的是利用 Azure 文件服务 REST API 并以这种方式操作共享和文件。您不必实际使用 REST API 本身;您可以简单地使用最新版本的 .Net Storage Client 库,它是 REST API 的包装器。

请参阅此 link 以了解有关如何使用存储客户端库使用此功能的更多详细信息:https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/

是的,你可以。仅在 Linux Web 应用程序和 Windows 容器 Web 应用程序中。

在 Web 应用程序中,在 Application Settings 下,您会找到 Mount storage (Preview) 部分,您可以在其中装载 Storage account。很有魅力。