首页 文章

Azure ARM模板部署Github集成(使用部署密钥)

提问于
浏览
0

我想为Web应用程序进行ARM模板部署,该应用程序在Github上有源代码 . 经过相当多的试验和错误,我能够使用以下格式:

"apiVersion": "2015-08-01", "name": "web", "type": "sourcecontrols", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" ], "properties": { "RepoUrl": "https://github.com/user/repo.git", "branch": "dev", "IsManualIntegration": true } }

这是手动集成 . 如果我之前使用过Github并授权Azure,它似乎有效 . 有没有办法自动设置和同步Github回购?有没有办法使用部署密钥?

1 回答

  • 0

    是的,这是可能的,但不适用于ARM模板 . 请按照步骤here进行操作 .

    但是,如果您在订阅中设置了Github once ,则可以对此订阅中的所有部署使用此手动集成,它将起作用,因此无需担心 .

相关问题