So I\'m really new to ARM templates and for my first template I\'m trying to create one that asks some questions and ultimately creates a new subnet and an NSG if required and t
Yes, to diagnose the issue exactly we would need your complete template but based on the error it just looks like incorrect segment length issue i.e.,
in general a ROOT resource type must have segment length one greater than its resource name i.e., if your ROOT resource type is something like "type": "Microsoft.xxxxxxx/yyyyyyy/zzzzzzz" then it's name should be something like "name": "aaaaaaa/bbbbbbb"
and a NESTED resource type must have identical number of segments as its resource name i.e., if your NESTED resource type is something like "type": "Microsoft.xxxxxxx/yyyyyyy/zzzzzzz" then it's name should be something like "name": "aaaaaaa/bbbbbbb/ccccccc"
For more information, please refer this document.