pkhabazi/ARM-Templates

Validation failed on NSG name

Opened this issue · 0 comments

Sorry I'm new to templating so can't provide any insights, is this something that can be resolved? Error occurs both in VS Code with the ARM extension, and while trying to deploy via PS / Azure GUI

Template validation failed: The template resource '[concat(parameters('subnetConfig')[copyIndex('nsg')].name, '-nsg')]' at line '63' and column '9' is not valid: The template function 'copyIndex' is not expected at this location. The function can only be used in a resource with copy specified. Please see https://aka.ms/arm-copy for usage details.. Please see https://aka.ms/arm-template-expressions for usage details.