如何解决Azure ARM模板验证错误? [英] How can I troubleshoot Azure ARM template validation errors?

查看:40
本文介绍了如何解决Azure ARM模板验证错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Azure ARM模板文件做了一些小的更改,现在当我尝试通过xplat cli进行部署或验证时,会收到此消息.

I have made some small changes to an Azure ARM template file and now when I try to deploy or validate via the xplat cli I get this message.

错误:InvalidTemplateDeployment:模板部署根据验证,"fakedDeploymentName"无效程序.跟踪ID为"\此处有某种GUID \".有关详细信息,请参见内部错误.请参阅 http://aka.ms/arm-deploy 使用细节.

错误:PreflightValidationCheckFailed:预检验证失败.请参阅具体的详细信息错误.

error: PreflightValidationCheckFailed : Preflight validation failed. Please refer to the details for the specific errors.

我很想解决此问题,但在控制台上看不到任何内部错误".甚至每次都给我一个唯一的GUID,这意味着我可以使用此GUID查找更多信息.在哪里可以查看更详细的错误?(尚未在错误的真正原因上寻求帮助)

I would love to troubleshoot this problem, but I don't see any "inner errors" on the console. It even gives me a unique GUID each time, implying that I could use this GUID to look up a more informative message. Where can I view a more detailed error? (not looking for help on the real source of the error yet)

推荐答案

确保您正在运行最新版本的CLI,我们正在努力冒充详细的错误.如果仍然无法解决问题,请告诉我们 https://github.com/Azure/azure-xplat-cli/issues

Make sure you're running the latest version of the CLI, we're working on bubbling up the detailed error. If that's still not catching it, let us know https://github.com/Azure/azure-xplat-cli/issues

然后,如果日志未显示详细信息,请使用-vv开关运行部署,详细的调试输出(详细信息)将包含所有错误消息,您通常可以筛选并查找特定的故障.

Then if the log isn't showing you the detail, run the deployment with the -vv switch, the detailed debug output (while verbose) will have all the error messages and you can usually sift through and find the specific failure.

azure group deployment create ... --debug

Powershell:

Powershell:

New-AzResourceGroupDeployment ... -debug

这篇关于如何解决Azure ARM模板验证错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆