Azure:使用vsts为Web应用程序部署Arm模板

时间:2018-09-13 15:45:46

标签: azure tfs azure-devops azure-pipelines arm-template

我的情况是,我需要在Azure资源组部署(ARM)模板的帮助下,使用VSTS将webapp,function app和sql数据库部署到Azure。在这里,我想为每种服务部署3个不同的模板。

场景1:我试图使用VSTS管道将webapp(node.js)手臂模板部署为天蓝色。在这里,我从github(public repo)中提取了node.js应用程序以及template.json文件。并成功部署了该应用程序。但是,当我尝试通过在Web应用程序中进行更改来重新部署相同的arm模板时,它已成功部署到Azure,但是更改没有更新。

场景2:在这里,我尝试将Web应用程序部署到Azure,方法是将Web应用程序放置在Github中,将template.json文件放置在VSTS中。面临与方案1相同的问题

方案3:我尝试通过将Web应用程序和template.json文件都放在VSTS中来部署Web应用程序。这里面临的问题是

`2018-09-10T18:06:18.6904732Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
2018-09-10T18:06:18.6920249Z ##[error]Details:
2018-09-10T18:06:18.6926076Z ##[error]BadRequest: {
"Code": "BadRequest",
"Message": "There was a conflict. Conflict with existing ScmType: ExternalGit",
"Target": null,
"Details": [
{
"Message": "There was a conflict. Conflict with existing ScmType: ExternalGit"
},
{
"Code": "BadRequest"
},
{
"ErrorEntity": {
"ExtendedCode": "01020",
"MessageTemplate": "There was a conflict. {0}",
"Parameters": [
"Conflict with existing ScmType: ExternalGit"
],
"Code": "BadRequest",
"Message": "There was a conflict. Conflict with existing ScmType: ExternalGit"
}
}

0 个答案:

没有答案
相关问题