0

确切的状态消息配置失败是:

{
    "status": "Failed",
    "error": {
        "code": "90008",
        "message": "Failed to provision revision for container app '***********'. Error details: Operation expired."
    }
}

当我尝试使用以下命令从日志分析中获取数据时:

az monitor log-analytics query --workspace **************** --analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == '******' | project ContainerAppName_s, Log_s, TimeGenerated"

我得到 =>BadArgumentError: The request had some invalid properties 这可能与日志分析工作区的自定义日志中没有创建自定义表有关(假设)。

使用二头肌脚本自动部署。我在调试模式下运行命令以获得最多的输出,但它没有提供太多额外的有用信息:

az deployment group create --resource-group rg-radix-samples-shop --template-file .\main.bicep --debug

最有用的部分是,这可能会给内部人员一些额外的信息:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", 
line 109, in handle_template_based_exception        
AttributeError: 'OperationFailed' object has no attribute 'error'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 712, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", 
line 112, in handle_template_based_exception        
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", 
line 104, in raise_subdivision_deployment_error     
azure.cli.core.azclierror.DeploymentError: {"status":"Failed","error":{"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.","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    \"details\": [\r\n      {\r\n        \"code\": \"DeploymentFailed\",\r\n        \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.\",\r\n    
    \"details\": [\r\n          {\r\n            \"code\": \"Conflict\",\r\n            \"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    \\\"details\\\": [\\r\\n      {\\r\\n        \\\"code\\\": \\\"90008\\\",\\r\\n        \\\"message\\\": \\\"Failed to provision revision for container app '************'. Error details: Operation expired.\\\"\\r\\n  
    }\\r\\n    ]\\r\\n  }\\r\\n}\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}"}]}}    

所以我基本上有2个问题:

  • 什么可能导致配置失败?
  • 为什么没有日志写入我的分析工作区(或任何地方),以便我可以诊断正在发生的事情?

在此先感谢您的帮助

4

1 回答 1

0

错误消息似乎已经改变(也许是改进?)。错误代码仍然相同,但消息包含更多信息,即它无法拉取 docker 映像。最后,docker 镜像名称有错别字(数字)。

于 2021-12-03T09:59:41.423 回答