此示例显示如何通过 Azure 资源管理器 (ARM) 模板创建链接到 GitHub 存储库的 Web 应用程序:https ://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app -github-部署
这是依赖资源的片段:
{
"apiVersion": "2015-04-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
],
"properties": {
"RepoUrl": "[parameters('repoURL')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
}
}
但是,我想创建一个网站,从我自己的本地 git 存储库部署。如何使用 ARM 模板完成此操作?
更新:澄清我想要做什么:我想创建一个带有附加 Git 存储库的 Web 应用程序。请参阅这篇文章:https ://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/ - 我尝试自动化的步骤在标题为“启用Web 应用程序存储库”——我不想通过 Azure 门户进行操作