gpt4 book ai didi

azure - 使用逻辑应用读取 azure blob 存储文件夹中的文件列表,并将带有扩展名的文件名插入 Azure SQL

转载 作者:行者123 更新时间:2023-12-02 07:43:19 24 4
gpt4 key购买 nike

我正在学习 Azure 逻辑应用工作流程,我已将存档提取到 Blob 存储中的文件夹中。

现在,我需要读取提取路径中带有扩展名的文件名,并将这些文件名插入到 Azure SQL 数据库中。

请帮助我实现这一目标。

最佳答案

要实现这个要求,你可以引用我下面的步骤:

1. 使用“List blobs ”列出存储中文件夹中的所有 Blob。

enter image description here

2. 然后在逻辑应用中添加“For each ”循环以循环“列表 blob”中的值。在“Foreach”循环中,使用“Insert row(V2)”将每个文件名插入到您的sql表中。

enter image description here

顺便说一句,在第 2 步之前,我已经在我的 azure sql 数据库中创建了一个名为 FilesTable 的表,如下图所示:

enter image description here

当您使用“Foreach”循环插入行时,我们最好启用“并发控制”并将并行度设置为 1 避免并发问题。请按如下方式操作:

enter image description here

enter image description here

关于azure - 使用逻辑应用读取 azure blob 存储文件夹中的文件列表,并将带有扩展名的文件名插入 Azure SQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67866672/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com