gpt4 book ai didi

Azure Arm部署失败,如何查看错误的更多详细信息?

转载 作者:行者123 更新时间:2023-12-03 06:54:09 26 4
gpt4 key购买 nike

我正在创建一个托管应用程序,并且有一个复杂的 azure 模板。

几天前,我开始在部署过程中遇到错误。首先,我认为模板有问题,并且我恢复了所做的所有模板更新。但现在,即使是运行良好的旧模板也会在部署阶段失败。

我详细了解了此信息,但这并没有多大帮助:

{
"status": "Failed",
"error": {
"code": "ApplianceDeploymentFailed",
"message": "The operation to create appliance failed. Please check operations of deployment 'olwa41' under resource group '/subscriptions/d288d519-07cc-4537-baf9-f7e8bd616192/resourceGroups/mrg-test_managed_medx_app-previ-20220804152639'. Error message: 'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.'",
"details": [
{
"code": "Conflict",
"message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\"\r\n }\r\n}"
}
]
}
}

https://aka.ms/DeployOperations 上提供的说明不要给我任何东西。当我打开资源组部署时,没有部署历史记录。 enter image description here

最佳答案

如果您获得跟踪 ID(或相关 ID),您可以运行此...

$log = get-azurermlog -CorrelationId '________________________' -DetailedOutput

$log.properties.content[0]['statusMessage'] |convertfrom-json |% error |% details |% details

这在过去帮助过我。

关于Azure Arm部署失败,如何查看错误的更多详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73248342/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com