【发布时间】:2019-02-06 02:31:37
【问题描述】:
我很难使用 c# 写入 ADLS Gen 2 blob 存储。 有这个功能吗?
我正在尝试将我的代码从 ADLS Gen 1 更新到 Gen 1。
这段代码适用于 ADLS Gen 1
public static async Task<HttpResponseMessage> Run
( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]HttpRequestMessage req,
Binder binder ,
TraceWriter log)
{
var container = "my_container";
var path = container + "/test.txt" ;
using (var writer = await binder.BindAsync<TextWriter>(new BlobAttribute(path)))
{
writer.Write("Hello there !!!!!");
}
}
【问题讨论】:
-
您在尝试第 2 代时是否收到任何错误消息?两种类型的代码是否相同?
-
另外查看文章中的程序接口:docs.microsoft.com/en-gb/azure/storage/blobs/…ABFSdocs.microsoft.com/en-us/azure/storage/blobs/…让我知道状态
标签: azure-storage azure-data-lake