Azure ARM Template Skip Nested Condition

后端 未结 1 1983
耶瑟儿~
耶瑟儿~ 2021-01-24 16:22

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

相关标签:
1条回答
  • 2021-01-24 17:17

    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.

    0 讨论(0)
提交回复
热议问题