-
Notifications
You must be signed in to change notification settings - Fork 53
Description
There is a NestedTemplateInline.json template which can be used also for cross resource group deployments in your repo. It even has a copyIndex() usage example, but it uses property copy iteration.
I have a template in which I want to do cross resource group deployment and inside the inline template I moved resources that were deployed using resource iteration method (earlier they were in root template and deployment worked), but when I try to deploy it I get error message - "...Microsoft.Resources/deployments... The template function 'copyIndex' is not expected at this location. The function can only be used in a resource with copy specified." Is it a bug or by design? Because it looks like only property copy syntax is allowed in nested inline template. But I have some resources and a bunch of alerts configured inside the nested template, so I can't use property iteration syntax.