【问题标题】:How can we implement CI/CD on Azure VMSS created using custom image我们如何在使用自定义映像创建的 Azure VMSS 上实施 CI/CD
【发布时间】:2019-12-29 14:48:02
【问题描述】:

我使用自定义映像创建了 VMSS。我在 VMSS 上的 .Net MVC 中托管了 Web 应用程序构建。我已经通过参考https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/cd/azure/deploy-azure-scaleset?view=azure-devops 从 Azure DevOps 配置了 CI/CD。

显示错误 D:\a\_temp\1575277721063\packer\packer.exe failed with return code: 1 。任何建议/建议表示赞赏。 以下是 Log 中一些失败的命令:

 1. azure-arm: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=200 -- Original Error: Long running operation terminated with status 'Failed': Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details."
 2. Some builds didn't complete successfully and had errors:
    2019-12-02T09:57:31.5222618Z --> azure-arm: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=200 -- Original Error: Long running operation terminated with status 'Failed': Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details."

 3. 2019-12-02T09:57:31.5222868Z ==> Builds finished but no artifacts were created.

【问题讨论】:

  • 嗨 Mike,请关注 this document 以获取有关您的错误消息的更多详细信息。据我所知,很多原因都可能导致此类问题,因此如果没有进一步的信息,很难知道到底发生了什么。

标签: azure-devops continuous-integration continuous-deployment azure-vm-scale-set azure-pipelines-release-task


【解决方案1】:

由于来自管道的错误消息 (DeploymentFailed) 是通用错误消息,因此如果不查看底层日志或管道详细信息就很难调查问题。

要进一步排除故障,请尝试以下操作:

【讨论】:

    猜你喜欢
    • 2019-12-15
    • 1970-01-01
    • 2021-08-15
    • 2016-03-08
    • 2019-09-24
    • 2017-05-07
    • 1970-01-01
    • 2020-06-27
    • 2021-06-25
    相关资源
    最近更新 更多