如何从Git分支更新Azure Data Factory的实时模式?

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

How to update Azure Data Factory live mode from Git branches?

问题

我的ADF配置如下:

  • 主分支用于将所有最新更改从个人分支推送。
  • 协作分支为空,并在ADF中设置为“协作”分支。
  • 存在一个过时的实时模式,其中包含旧的流水线,我想要删除并替换为主分支的内容。

我的第一个需求是能够在我的ADF实例中设置ADF触发器。据我了解,这只能在实时模式下完成。因此,我需要使用来自我的Git仓库(主分支)的最新更改来更新实时模式。

我的问题是,只有在协作分支中才能找到“覆盖实时模式”按钮。如上所述,问题在于协作分支为空,今天不包含任何流水线。主分支包含所有最新的流水线。

在这里,应该采取什么最佳方法?我应该断开Git连接,然后重新连接,并将主分支设置为协作分支吗?然后再推送“覆盖实时模式”?

还是有办法将协作分支更改为“main”?
谢谢。

英文:

My ADF configuration is as follows:

  • The Main branch is used to push all our latest changes from individual branches.
  • The Collaboration branch is empty and set as the "collaboration" branch in ADF.
  • There is an outdated live mode with old pipelines that I want to remove and replace with the content of the Main branch.

如何从Git分支更新Azure Data Factory的实时模式?

My first need is to be able to set ADF triggers in my ADF instance. From my understanding, it is only possible in the live mode. Therefore, I need to update the live mode with the latest changes from my Git repo (Main branch)

My issue is that the Collaboration branch is the only place where I can find the "Overwrite Live mode" button. As specified above, the problem is that Collaboration branch is empty and doesn't contain any pipelines today. The Main branch contains all the up-to-date pipelines.

What should be the best approach here? Should I disconnect Git and reconnect it, setting the Main branch as the collaboration branch? And then push "Overwrite Live Mode"?

Or is there a way to change the collaboration branch to "main"?
Thanks.

答案1

得分: 1

最好的选择是,正如你所说,先断开连接,然后再次连接,这次将"main"设置为协作分支。请注意,在重新连接时不要导入实时模式,以免覆盖你的主分支。

另一种选择是从"main"分支向"collaboration"分支发起拉取请求,这样将包括所有的更改,然后进行发布,或者覆盖实时模式。这将暂时修复你的环境,但未来的开发可能会再次出现相同的问题。

英文:

The best option would be, as you said, to disconnect, and then reconnect again, this time setting "main" as the collaboration branch. Note not to import the live mode while reconnecting, to not overwrite your main branch.

Another option is to do a pull request from "main" branch to the "collaboration" branch, which will then include all changes and then do a publish, or overwrite live mode. This will fix your environment for now, but you are likely to get the same issue again with future developments.

huangapple
  • 本文由 发表于 2023年7月23日 19:10:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76747925.html
匿名

发表评论

匿名网友

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

确定