如何找到 Azure 函数设置为从中提取的 git 存储库?

How to find what git repo an Azure Function is set up to pull from?

我有一些 Azure 功能,它们设置为从我的 GitHub 存储库部署。如何在门户中找到它连接到的存储库?

单击您的函数应用程序

-> 转到 Platform features 选项卡

-> 点击 All settings

-> Overview

-> GitHub Project右边的标签

通过 Kudu APIs(登录到 Azure 门户后,只需使用浏览器点击这些端点):

/api/settings:

GET https://{sitename}.scm.azurewebsites.net/api/settings

{
  "deployment_branch": "master",
  "ScmType": "GitHub",
  "branch": "dev",
  ...
}

/api/deployments:

GET https://{sitename}.scm.azurewebsites.net/api/deployments

{
  "id": "7c7b7fad2c6ea993671deccc45ebc482ea4355c1",
  ...
  "author": "snobu",
  "deployer": "GitHub",
  "message": "Fix removed one too many dependencies",
  "site_name": "gifinator"
  ...
},
{
  <<previous commit info>>
},
...

我相信 GitHub 存储库的实际 URL 在 Webhook 负载和门户设置中,而不是在 Kudu 中,但我可能是错的。