通过Azure逻辑应用程序访问Blob存储

时间:2020-02-18 14:02:57

标签: azure azure-storage-blobs azure-logic-apps

我有Azure blob存储,其中包含一些CSV文件。 我的任务:

1. Create a logic app for the blob storage.
2. Retrieve the data from the blob storage.
3. Convert the retrieve file to JSON.
3. Upload that data to an online portal through API.

我尝试通过“获取blob内容”操作来检索数据,但不确定在哪里可以看到结果。我刚刚创建了逻辑应用程序,但是在下一步该怎么做。

1 个答案:

答案 0 :(得分:1)

This is the output of get blob content. Is there any way to convert this output to JSON关于

的问题

我尝试通过“获取blob内容”操作来检索数据,但不确定在哪里可以看到结果。

运行逻辑应用程序时,可以在OUTPUTS中看到csv文件的内容,如下所示:

enter image description here

如果您想使用api上传数据,则只需执行以下屏幕截图之类的操作即可(但是这也取决于api的请求正文的类型):

enter image description here

由于您提到过您的azure存储blob包含一些csv文件,因此也许您需要循环这些文件。您可以使用“ List blobs”操作和“ For each”操作来循环它们,然后获取Blob内容。

enter image description here

希望有帮助,如果您还有其他问题,请告诉我。