Hello @Priyanka P ,
Thanks for the ask and using Microsoft Q&A platform .
PyMongo is a Python distribution containing tools for working with MongoDB, and is the recommended way to work with MongoDB from Python. So basically you are willing to run Python script from Azure data factory.
You can leverage custom activity in Azure data factory to perform this task. Using Azure batch services customer activity can run your script.
You can also deploy your python code to Azure functions and run Azure function using Azure Function activity.
As requirement is to run python from ADF, custom activity running in ADF will be better option.
Below documentation has detailed steps to Run Python Scripts through Azure data factory using Azure batch. Kindly go through same.
https://learn.microsoft.com/en-us/azure/batch/tutorial-run-python-batch-azure-data-factory
Please do let me know how it goes.
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators