触发ADF结束CSV到Mongo迁移的API。

huangapple go评论58阅读模式
英文:

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中保存为记录。
    触发ADF结束CSV到Mongo迁移的API。
  • 然后创建另一个管道,其中包括Execute管道活动和Web活动或Azure函数活动。为了确保执行管道操作按顺序而不是并行运行,请确保选择"等待完成"选项。
    触发ADF结束CSV到Mongo迁移的API。
  • 现在运行此管道,它将在第一个管道成功完成后触发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.
    触发ADF结束CSV到Mongo迁移的API。
  • 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.
    触发ADF结束CSV到Mongo迁移的API。
  • Now run this pipeline it will run first pipeline after successful completion of it will trigger web activity or azure function activity.

huangapple
  • 本文由 发表于 2023年3月9日 18:34:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/75683399.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定