我正在尝试查找此版本失败的原因。它与Azure资源组部署一起使用,并且一直工作到一周前。该错误似乎是随机的,并且变量出现在我们的两个嵌套模板文件中的两个中:function.json和webApp.json。原始值为null,我将这些值更改为“ VS2012”和“ VS2017”,但未成功。我还尝试将remoteDebuggingEnabled从false更改为true,但未成功。当我通过Visual Studio进行部署时,ARM模板的部署情况很好,但是Azure DevOps出现了错误。唯一的更改是在此任务之前对Azure文件复制任务中的上一个任务进行的,其中版本从“预览”版本2. *更改为1。*
有什么想法吗?我需要提供更多信息吗?
模板的一部分在 “ type”:“ Microsoft.Web / sites / config”,
2018-11-13T02:54:45.1471124Z ##[section]Starting: Create or Update Azure Infrastructure
2018-11-13T02:54:45.1477792Z ==============================================================================
2018-11-13T02:54:45.1477917Z Task : Azure Resource Group Deployment
2018-11-13T02:54:45.1478008Z Description : Deploy an Azure resource manager (ARM) template to a resource group. You can also start, stop, delete, deallocate all Virtual Machines (VM) in a resource group
2018-11-13T02:54:45.1478131Z Version : 2.141.1
2018-11-13T02:54:45.1478287Z Author : Microsoft Corporation
2018-11-13T02:54:45.1478360Z Help : [More Information](https://aka.ms/argtaskreadme)
2018-11-13T02:54:45.1478455Z ==============================================================================
2018-11-13T02:54:45.5851577Z Checking if the following resource group exists: uiis-dev-rg.
2018-11-13T02:54:45.8038374Z Resource group exists: true.
2018-11-13T02:54:45.8040134Z Creating deployment parameters.
2018-11-13T02:54:45.8110536Z The detected encoding for file 'D:\a\r1\a\UIIS-CI\drop\azureDeploy.json' is 'utf-8'
2018-11-13T02:54:45.8268289Z Starting Deployment.
2018-11-13T02:58:06.2894763Z There were errors in your deployment. Error code: DeploymentFailed.
2018-11-13T02:58:06.2896043Z ##[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-11-13T02:58:06.2896936Z ##[error]Details:
2018-11-13T02:58:06.2898051Z ##[error]Conflict: {
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "BadRequest",
"message": "{\r\n \"Code\": \"BadRequest\",\r\n \"Message\": \"The parameter remoteDebuggingVersion has an invalid value.\",\r\n \"Target\": null,\r\n \"Details\": [\r\n {\r\n \"Message\": \"The parameter remoteDebuggingVersion has an invalid value.\"\r\n },\r\n {\r\n \"Code\": \"BadRequest\"\r\n },\r\n {\r\n \"ErrorEntity\": {\r\n \"ExtendedCode\": \"01007\",\r\n \"MessageTemplate\": \"The parameter {0} has an invalid value.\",\r\n \"Parameters\": [\r\n \"remoteDebuggingVersion\"\r\n ],\r\n \"Code\": \"BadRequest\",\r\n \"Message\": \"The parameter remoteDebuggingVersion has an invalid value.\"\r\n }\r\n }\r\n ],\r\n \"Innererror\": null\r\n}"
}
]
}
]
}
} undefined
2018-11-13T02:58:06.2899605Z ##[error]Task failed while creating or updating the template deployment.
2018-11-13T02:58:06.2972216Z ##[section]Finishing: Create or Update Azure Infrastructure
答案 0 :(得分:0)
我有同样的问题。我通过删除每个remoteDebbugingVersion条目来修复它。 希望对您有帮助