In our last post, we explored troubleshooting ‘convertfrom-json’ with ARM templates. Which boiled down to comments in your JSON files.
As per RFC 4627, comments with JSON aren’t supported (aren’t part of the standard). Only objects, resources etc. are.
What you need to do, is add a custom property “comment” like so. This comment won’t be visible in the azure portal, and only for reference in your templates:
Note: This does NOT work for certain resource-types!