I'm trying to add an extension to an azure arm template, so when it loops around it adds the extension to each vm.
The full JSON is at the link below: https://pastebin.com/embed_iframe/7uvwdZ6e
The error I'm getting is:
Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The resource 'Microsoft.Compute/virtualMachines/vmt1dsc/extensions/CreateADPDC' at line
'0' and column '0' is defined multiple times in a template.
CreateADPDC' is the name of the extension.
Thanks in advance :)