简体   繁体   English

ARM模板中元数据下生成器的使用

[英]Use of generators under metadata in ARM Templates

What is the use of the highlighted part in the Azure ARM Templates' JSON structure? Azure ARM 模板的 JSON 结构中突出显示的部分有什么用? Where does the resource use it?资源在哪里使用它?

ARM 模板 JSON

Resource manager ignores the metadata at the time of deployment.资源管理器在部署时忽略元数据。 This is just for you to share the more information about the template and its resources with other developers.这只是为了让您与其他开发人员共享有关模板及其资源的更多信息。

From this link :从这个link

You can add a metadata object almost anywhere in your template.您几乎可以在模板中的任何位置添加元数据对象。 Resource Manager ignores the object, but your JSON editor may warn you that the property isn't valid.资源管理器会忽略该对象,但您的 JSON 编辑器可能会警告您该属性无效。 In the object, define the properties you need.在对象中,定义您需要的属性。

A caveat here is when you define metadata with description property for your template parameters.这里需要注意的是,当您为模板参数定义具有description属性的metadata时。 When you deploy the template through Azure Portal, the description is shown as a tool tip for that parameter.通过 Azure 门户部署模板时,说明将显示为该参数的工具提示。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM