Azure Data Factory Web Activity save output

Courtney Haedke 151 Reputation points
2020-10-16T18:17:15.043+00:00

32964-webactivityexample.jpgIs there a way to save the output of an Azure Data Factory Web Activity into a dataset?

Here is my current use case:

I have to dynamically build a JSON post request
The API I'm trying to reach requires a SSL certificate so I have to use the Web Activity Authentication Client Certificate option.
The API also requires basic authentication so I input the Content -Type and authorization guid in the header section of the Web Activity.
Once I get the JSON response from my post request I need to save the response into a blob storage some where.
I tried using the Copy Data Set HTTPS or Rest API as a data set source but both only allow one type of authentication certificate or Basic authentication.

Is there a way I can configure the Rest API or HTTPS data set source handle both types of authentications (SSL and Basic Authorization) or capture all the Web Activity output into a blob storage?

Thank you all for your help! I'm desperate at the moment lol..

Here is what my Web Activity looks like (sorry I had hide part of the credentials for security purposes: Web Activity

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,840 questions
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,091 Reputation points
    2020-10-19T23:18:02.627+00:00

    @Courtney Haedke I found an easier way to deal with the authorization. Use Managed Service Identity. This has 2 parts.

    1. Go to your storage account. Go to the IAM / RBAC. Give your Data Factory the Storage Blob Data Contributor role.
      Important: "Storage Blob Data Contributor" is not the same as "Contributor"
      1. Go to the web activity. In the bottom under 'advanced' select "MSI". The resource should be https://storage.azure.com/
        You may need to set the x-ms-version header to 2017-11-09 or higher.

    This should effectively handle the authentication for you.

    33471-image.png

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Courtney Haedke 151 Reputation points
    2020-10-19T21:58:18.817+00:00

    Thanks Martin! I understand that piece. What are the requirements to for the header to complete a put request to an azure blob storage. 33461-bloblstorage.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.