导出的ARM模板有很多警告 [英] Exported ARM template has many warnings

查看:63
本文介绍了导出的ARM模板有很多警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Azure门户,我导出了资源组的ARM模板(通过自动化脚本"选项).不幸的是,当我在Visual Studio中加载导出的模板时,遇到了数百条警告.其中一些是:

From the Azure Portal, I exported an ARM template of a Resource Group (via the "Automation script" option). Unfortunately, when I loaded the exported template in Visual Studio, I was confronted with hundreds of warnings. Some of them are:

为什么我看到这么多警告?我希望门户网站根据模式导出完全有效的JSON.

我正在使用VS2017 15.9.4和 Microsoft Azure工具2.9.10730.2.

推荐答案

这是预期的-按照https://blogs.msdn.microsoft.com/premier_developer/2017/07/21/resolving -azure-arm-rest-api-versions-arm-in-arms模板/

That's expected - as per https://blogs.msdn.microsoft.com/premier_developer/2017/07/21/resolving-azure-arm-rest-api-versions-conflict-in-arm-templates/

您应该考虑从部署历史记录而不是从资源组中导出模板(当然,假设通过模板来部署资源)-有关更多信息,请访问https://docs.microsoft.com/zh-cn/azure/azure-resource-manager/resource-manager-export-template

You should consider exporting template from the deployment history rather than from the resource group (assuming of course that the resources were deployed via a template) - more at https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-export-template

hth
Marcin

hth
Marcin


这篇关于导出的ARM模板有很多警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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