how to pass parameter to python script from a pipeline

Question:

I am building an Azure Data Factory pipeline and I would like to know how to get this parameter into the python script.

The python script is located in Databricks (DBFS) and is run from Azure DataFactory. So, in my ADF pipeline, I have some parameters which I’d like to introduce and use them insinde the python script.

Any idea on how does it work?

Asked By: Cristian Ispan

||

Answers:

Import argv from sys and then use argv[1] to get the parameter in databricks activity.

Answered By: Steve Johnson