Search code examples
azureazure-resource-managerazure-rm-template

Use of generators under metadata in ARM Templates


What is the use of the highlighted part in the Azure ARM Templates' JSON structure? Where does the resource use it?

ARM Templates JSON


Solution

  • 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:

    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. In the object, define the properties you need.

    A caveat here is when you define metadata with description property for your template parameters. When you deploy the template through Azure Portal, the description is shown as a tool tip for that parameter.

    enter image description here