从天蓝色存储blob中的csv读取的Web作业 [英] Web job to read from csv in azure storage blob

查看:91
本文介绍了从天蓝色存储blob中的csv读取的Web作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我有一个控制台工作,可以做两件事 


1)运行SPO power-shell 脚本  ;在c#console job中,将输出写入csv


2)c#从文件读取并在线写入sharepoint



我已将此打包为azure web作业并部署到azure portal,现在我首先得到错误它无法写入csv文件 


第二步也失败


所以我试图将一个csv文件添加到azure存储blob类型(可以删除现有文件并每次编写新文件,因此powershell可以写入blob存储,然后c#需要读取这个存储空间。 



有没有更好的方法呢?如果这样可以,你可以帮我一些例子如何阅读/从blob写入以及保存文件的位置。



谢谢,






解决方案


  1. 你能分享错误信息或错误代码吗?
  2. 您指的是任何文件吗?


如何使用

使用WebJobs SDK的Azure blob存储



< span style ="line-height:106%; FONT-FAMILY:"宋体",无衬线; font-size:10pt"> 使用入门使用.NET / C# Azure Blob存储


你可以尝试这里解释的PowerShell脚本:如何添加csv文件或上传文件到Azure Blob
存储


附加信息:您可以使用Azure Blob存储来存储CSV。通过确保容器具有正确的权限,您可以直接获取blob
的链接并发送给用户。此外,您可以使用SASUrls来限制URL有效期的持续时间。


导出到Azure Blob存储


Hi

I have a console job which does two things 

1) run SPO power-shell  script  in c# console job, writes the output to csv

2) c# reads from file and writes to sharepoint online

I have packaged this as azure web job and deployed to azure portal, Now i get errors first it is not able to write to csv file 

second steps also fails

So i am trying to add a csv file to azure storage blob type ( which can delete existing file and write new one everytime, so powershell can write to blob storage, then c# need to read from this storage. 

Is there any better approach then this or if this is fine can some you help me with example how to read /write from blob and where to save the file.

Thanks,

解决方案

  1. Can you share the error message or error code?
  2. Are you referring to any documents?

How to use Azure blob storage with the WebJobs SDK

Get started with Azure Blob storage using .NET/C#

You could try this PowerShell script explained here: How to add a csv file or Uploading a file to Azure Blob Storage

Additional information: You can store the CSV using Azure Blob Storage. By ensuring the container has the correct permissions, you can then obtain the link directly to the blob and send to the user. In addition, you can use SASUrls to limit the duration of URL validity.

Export to Azure Blob Storage


这篇关于从天蓝色存储blob中的csv读取的Web作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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