【问题标题】:Azure resource group deployment in azure devops failed with error ["Message": "Deployment with id '#######' exists"]azure devops 中的 Azure 资源组部署失败并出现错误 ["Message": "Deployment with id '#######' exists"]
【发布时间】:2019-10-23 02:20:45
【问题描述】:

我正在 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 门户上找不到待处理的部署。

【问题讨论】:

    标签: azure azure-devops azure-web-app-service arm-template azure-deployment


    【解决方案1】:

    您可以通过导航到部署资源组来查看部署,除非部署范围类型是订阅、租户或管理组。

    如果是资源组部署,请导航:

    门户 -> 资源组 -> 选择 -> 部署

    您可以通过单击并选择取消来停止部署。

    你也可以使用powershell:

    Stop-AzDeployment -Name 'Performing deployment'
    

    【讨论】:

    • 它不显示挂起的部署。它只显示成功和失败的部署。
    • 尝试使用 PowerShell 的 Get-AzDeployment | Where { $_.ProvisioningState -eq "Updating" }。如果您愿意停止所有部署,也可以通过管道将其发送给 Stop-AzDeployment,或者只使用 -Name 停止单个部署。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-15
    • 2023-01-26
    • 2019-10-25
    • 1970-01-01
    • 2020-05-18
    • 2018-03-06
    • 1970-01-01
    相关资源
    最近更新 更多