我正在azure devops中创建一个发布定义,其中包括使用Azure资源组部署步骤来部署arm模板。 我收到一条错误消息
019-10-23T01:59:02.1607991Z There were errors in your deployment. Error code: DeploymentFailed.
2019-10-23T01:59:02.1670193Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
2019-10-23T01:59:02.1678572Z ##[debug]Processed: ##vso[task.issue type=error;]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
2019-10-23T01:59:02.1679076Z ##[error]Details:
2019-10-23T01:59:02.1679263Z ##[debug]Processed: ##vso[task.issue type=error;]Details:
2019-10-23T01:59:02.1690885Z ##[error]Conflict: {
"Message": "Deployment with id '####' exists"
}
2019-10-23T01:59:02.1691134Z ##[debug]Processed: ##vso[task.issue type=error;]Conflict: {%0D%0A "Message": "Deployment with id '3131571625766363' exists"%0D%0A}
2019-10-23T01:59:02.1697310Z ##[error]Conflict: {
"Message": "Deployment with id '###' exists"
}
2019-10-23T01:59:02.1697524Z ##[debug]Processed: ##vso[task.issue type=error;]Conflict: {%0D%0A "Message": "Deployment with id '###' exists"%0D%0A}
2019-10-23T01:59:02.1697754Z ##[error]Conflict: {
"error": {
"code": "BadRequest",
"message": "The 'Performing deployment' operation conflicts with the pending 'Performing deployment' operation started at 2019-10-23T01:58:54.0080997Z. Please retry operation later."
}
}
我尝试了很多次,并且总是会出现此错误。我什至无法在azure门户上找到挂起的部署。
答案 0 :(得分:0)
除非部署范围类型是“ Subsciption”,“ Tenant”或“ Management Group”,否则您可以通过导航到要部署到的资源组来查看部署。
如果是资源组部署,请导航:
门户->资源组->选择->部署
您可以通过单击并选择取消来停止部署。
您也可以使用powershell:
Stop-AzDeployment -Name 'Performing deployment'