使用Azure Datafactory下载动态生成的文件

时间:2019-12-04 07:44:50

标签: azure azure-storage-blobs azure-data-factory azure-data-factory-2

我正在尝试从URL下载文件。

https://example.com/report_view.php?reportcode=59281&action=exportcsv&casino=2210&reportby=daily&datetype=1

上面的URL每次被点击时都会生成一个report.csv文件。在常规浏览器中运行时,URL将下载文件。窗口中没有任何内容。

我正在尝试使用Azure数据工厂中的“复制活动”下载文件。

来源:HTTP请求>>分隔文本

接收器:Azure Blob存储。

但是复制活动无法下载文件。

如何确保文件在blob存储中?

1 个答案:

答案 0 :(得分:0)

我在复制活动中进行了测试,它对我有用。

源数据集,Http请求:

enter image description here

接收器数据集,Azure Blob存储:

enter image description here

结果,从不设置任何文件名,因此会生成随机文件名:

enter image description here