简体   繁体   English

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

[英]Download dynamically generated file using Azure Datafactory

I am trying to download a file from a URL.我正在尝试从 URL 下载文件。

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

The above URL generates a report.csv file everytime it is hit.每次点击上面的 URL 都会生成一个 report.csv 文件。 The URL when run in a regular browser downloads a file.在常规浏览器中运行时的 URL 下载文件。 Nothing loads in the window.窗口中没有加载任何内容。

I am trying to download the file using Copy Activity in Azure data factory.我正在尝试使用 Azure 数据工厂中的复制活动下载文件。

Source: HTTP request >> Delimited Text来源:HTTP 请求 >> 分隔文本

Sink: Azure Blob Storage.接收器:Azure Blob 存储。

But the copy activity is failing to download the file.但是复制活动无法下载文件。

How to ensure that the file get's in the blob storage?如何确保文件在 blob 存储中?

I tested in the copy activity and it works for me.我在复制活动中进行了测试,它对我有用。

Source Dataset,Http Request:源数据集,Http 请求:

在此处输入图片说明

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

在此处输入图片说明

Result,never set any file name,so it generates random file name:结果,从来没有设置任何文件名,所以它生成随机文件名:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM