ADF git configuration error: You are not allowed to save to current branch, either select another branch, or resolve the permissions in Azure DevOps

ADF git configuration error: You are not allowed to save to current branch, either select another branch, or resolve the permissions in Azure DevOps

为我的 Azure 数据工厂配置存储库时,我收到以下错误:

Failed to save Publish branch.
Error: You are not allowed to save to current branch, either select another branch, or resolve the permissions in Azure DevOps.

我选择的唯一非标准功能是使用自定义“发布分支”。

我检查了所有权限并确保该分支存在于 Azure DevOps 中。

据了解,如果您使用未称为 adf_publish 的“发布分支”,您需要在协作分支的根文件夹中创建一个 publish_config.json 文件(在本例中为 develop) .

{
    "publishBranch": "adf_publish_dnh"
}

只是错误信息不是很有帮助!

此处有更多详细信息:https://docs.microsoft.com/en-us/azure/data-factory/source-control#configure-publishing-settings

解决此问题的一个方法是断开与 Git 的连接,然后重新连接到正确的发布分支。 (在回购中有分支名称会使 CI/CD 过程复杂化。)