question

HERVOUETChristopheExternal-0308 avatar image
0 Votes"
HERVOUETChristopheExternal-0308 asked ShaikMaheer-MSFT commented

Run a python script via Azure Batch task (on ADF) & pass parameters

Hi

I solicitate please your help regarding this use case :
-Run a python script via Azure Batch task (on ADF)
-Pass a pipeline parameter to the python script

132474-image.png



  • I created my parameter but how please get it in the python script ?

  • What are the steps to follow , please ?

  • All this will serve the CICD

Best regards

Christophe

azure-data-factoryazure-batch
image.png (29.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HERVOUETChristopheExternal-0308 avatar image
0 Votes"
HERVOUETChristopheExternal-0308 answered ShaikMaheer-MSFT commented

I Found the solution

add dynamic expression on command --> @concat('python main2.py',' ', pipeline().parameters.param1)

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HERVOUETChristopheExternal-0308 ,

Thank you for sharing your solution. Could you please mark it as accepted answer by clicking on 130616-image.png button. Accepted answers helps us and community as well. Thank you.

0 Votes 0 ·