I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service.
我一直在努力寻找一些资源来帮助解释我们如何使用文件存储与Web App服务。
There are ways to use it with the old Web Roles, Check here http://fabriccontroller.net/blog/posts/using-the-azure-file-service-in-your-cloud-services-web-roles-and-worker-role/
有一些方法可以将它与旧的Web角色一起使用,请点击此处http://fabriccontroller.net/blog/posts/using-the-azure-file-service-in-your-cloud-services-web-roles-and-工人角色/
However, there is NO OnStart() methods in "Azure Web Service".
但是,“Azure Web服务”中没有OnStart()方法。
1 个解决方案
#1
14
If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today.
如果您正在寻找使用SMB协议将驱动器映射到Web应用程序中的Azure文件服务共享,那么我认为您现在无法做到这一点。
What you could do is make use of Azure File Service REST API and manipulate shares and files that way. You don't have to actually use the REST API per se; you can simply use the latest version of .Net Storage Client library which is a wrapper over REST API.
您可以做的是使用Azure文件服务REST API并以这种方式操作共享和文件。您不必实际使用REST API;您可以简单地使用最新版本的.Net Storage Client库,它是REST API的包装器。
Please see this link for more details on how to use this using Storage Client library: https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/.
有关如何使用Storage Client库进行此操作的详细信息,请参阅此链接:https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/。
#1
14
If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today.
如果您正在寻找使用SMB协议将驱动器映射到Web应用程序中的Azure文件服务共享,那么我认为您现在无法做到这一点。
What you could do is make use of Azure File Service REST API and manipulate shares and files that way. You don't have to actually use the REST API per se; you can simply use the latest version of .Net Storage Client library which is a wrapper over REST API.
您可以做的是使用Azure文件服务REST API并以这种方式操作共享和文件。您不必实际使用REST API;您可以简单地使用最新版本的.Net Storage Client库,它是REST API的包装器。
Please see this link for more details on how to use this using Storage Client library: https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/.
有关如何使用Storage Client库进行此操作的详细信息,请参阅此链接:https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/。