问题描述
我对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.
错误: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模板验证错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!