Search code examples
restazure-data-lakeazure-data-factory

Download a file from restAPI using Azure Data Factory into Data lake


Need some guidance or suggestion

Scenario: We are trying fetch a file using RestAPI and save it to Azure Data Lake.

Journey: Login, GetToken, Invoke GetFile API, and save to AzureDataLake

We are trying 2 options

  1. using LogicApp-- this work fine, but apparently this is not approved PaaS service.
  2. Using Data Factory-- here we are facing some issue. We are able to invoke the RestEndpoint, but unable to parse the response into a file (pdf, img etc...). How can I achieve this?

Best, Ashwin


Solution

  • Please change to use HTTP connector :

    HTTP connector is generic to retrieve data from any HTTP endpoint, for example, to download files.

    REST connector is used to copy the REST JSON response. You can refer this documentation