如何找到Azure功能的git repo设置来拉出?

时间:2017-06-30 12:26:50

标签: azure azure-functions

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

2 个答案:

答案 0 :(得分:4)

点击您的功能应用

- >转到Platform features标签

- >点击All settings

- > Overview

- >右侧的GitHub Project标签

答案 1 :(得分:0)

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

<强> / API /设置:

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

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

<强> / API /部署

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有效负载和Portal设置中,而不是Kudu,但我可能错了。