英文:
Trigger API the end of ADF - CSV to Mongo migration
问题
I have a setup where Azure Data Factory converts a CSV into a MongoDB collection. I mean the entries of the CSV file are saved as records in Mongo DB. At the end of migration, I want to trigger an API (either microservice of Azure function) at the end of migration. Is it feasible to detect the end of migration to trigger the API? If yes, how to set up that in ADF?
英文:
I have a setup where Azure Data Factory converts a CSV into a MongoDB collection. I mean the entries of the CSV file are saved as records in Mongo DB. At the end of migration, I want to trigger an API (either microservice of Azure function) at the end of migration. Is it feasible to detect the end of migration to trigger the API? If yes, how to set up that in ADF?
答案1
得分: 0
是的,您可以在迁移成功结束后使用Execute管道活动触发API。您可以从Web活动或Azure函数活动中调用API或Azure函数。
- 首先创建一个管道,该管道可以将CSV文件中的条目迁移到Mongo DB中保存为记录。
- 然后创建另一个管道,其中包括Execute管道活动和Web活动或Azure函数活动。为了确保执行管道操作按顺序而不是并行运行,请确保选择"等待完成"选项。
- 现在运行此管道,它将在第一个管道成功完成后触发Web活动或Azure函数活动。
英文:
> Is it feasible to detect the end of migration to trigger the API? If yes, how to set up that in ADF?
Yes, you can trigger the API After the successful end of migration with the help of Execute pipeline activity. you can call API or azure function from web activity or Azure function activity.
- First create pipeline which can migrate the entries of the CSV file are saved as records in Mongo DB.
- Then create another pipeline with execute pipeline activity and web activity or Azure function activity. To ensure that the perform pipeline action runs in order rather than in parallel, make sure to select the
Wait on Completion
option.
- Now run this pipeline it will run first pipeline after successful completion of it will trigger web activity or azure function activity.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论