如何使用"Azure文件存储"使用Web App服务? [英] How can I use "Azure File Storage" with Web App Service?

查看:74
本文介绍了如何使用"Azure文件存储"使用Web App服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一些有助于解释我们如何使用使用Web App Service的文件存储.

I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service.

有一些方法可以将其与旧版Web角色一起使用,请在此处检查(

There are ways to use it with the old Web Roles, Check here (Using the Azure File Service in your Cloud Services (Web and Worker Roles)).

但是,"Azure Web服务"中没有OnStart()方法.

However, there is NO OnStart() methods in "Azure Web Service".

推荐答案

如果要使用SMB协议将驱动器映射到Web应用程序中的Azure File Service共享,那么我认为您不能这样做今天.

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.

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

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.

有关如何使用Storage Client库使用此链接的更多详细信息,请参见此链接:

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/.

这篇关于如何使用"Azure文件存储"使用Web App服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆