Nomad18
Nomad18

Reputation: 161

Execute python script from azure data factory

Can someone help me with executing python function from azure data factory. I have stored python function in blob and i'm trying to trigger the same. However i'm not able to do it. Please assist.

Second, Can i parameterize python function call from ADF?

Upvotes: 1

Views: 3672

Answers (1)

Jay Gong
Jay Gong

Reputation: 23782

You could get an idea of Azure Function Activity in ADF which allows you to run Azure Functions in a Data Factory pipeline.

And you could duplicate your python function into Python Azure Function.

Also,it want to pass parameters into python function,you could set them into body properties.

enter image description here

The Azure Function Activity supports routing. For example, if your app uses the following routing - https://functionAPP.azurewebsites.net/api/functionName/{value}?code=<secret> - then the functionName is functionName/{value}, which you can parameterize to provide the desired functionName at runtime.

Upvotes: 1

Related Questions