CopyPastor

Detecting plagiarism made easy.

Score: 0.9730914269129993; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2020-02-20
by KrishnaG-MSFT

Original Post

Original - Posted on 2020-01-09
by KrishnaG-MSFT



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Welcome to Stack Overflow. :)
Yes, to diagnose the issue exactly we would need your complete template but based on the error it just looks like [incorrect segment length][1] 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][1] document.
Source of the above information is [this][2] Stack Overflow thread.
Hope this helps! Cheers!

[1]: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/error-invalid-template#solution-2---incorrect-segment-lengths [2]: https://stackoverflow.com/questions/59653656/azure-arm-template-skip-nested-condition/59657680#59657680
Welcome to Stack Overflow. :)
Yes, to diagnose the issue exactly we would need your complete template but based on the error it just looks like [incorrect segment length][1] 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][1] document.
Hope this helps!

[1]: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/error-invalid-template#solution-2---incorrect-segment-lengths

        
Present in both answers; Present only in the new answer; Present only in the old answer;