我正在尝试部署一个 ARM 模板,其中包含从 github 中提取代码的资源。我的问题是如何在 arm 模板中为这个 github 设置用户名和密码。我的回购不是公开的。
"gitRepoUrl": {
"type": "string",
"metadata": {
"description": "The URL to the GitHub repository to deploy."
},
"defaultValue": "https://github.com/OfficeDev/microsoft-teams-apps-quickresponses.git"
},
"gitBranch": {
"type": "string",
"metadata": {
"description": "The branch of the GitHub repository to deploy."
},
"defaultValue": "master"
}
"resources": [
{
"apiVersion": "2016-08-01",
"name": "web",
"type": "sourcecontrols",
"condition": "[not(empty(parameters('gitRepoUrl')))]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('botAppName'))]"
],
"properties": {
"RepoUrl": "[parameters('gitRepoUrl')]",
"branch": "[parameters('gitBranch')]",
"IsManualIntegration": true
}
}
]
},
参考臂模板ARM TEMPLATE
有什么问题吗?