Creating multiple instances of a resource property

When ARM templates were launched for the first time, they were not feature-rich. It was extremely difficult to iterate and create multiple properties for a resource, since copy was only supported at resource level. The copy element could not be used for the properties of a resource. This has changed over the years, with the addition of new capabilities within ARM templates. Recently, ARM templates added the capability to loop over resource properties, using the copy element. 

You should note the special syntax for the copyIndex() function when used alongside property iterations. The copyIndex function takes the name of the copy iteration to distinguish it from the resource-level copyIndex ...

Get Azure Resource Manager Templates Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.