在通过ARM模板启用网络流日志时出现“错误的段长度”错误[重复]

问题描述 投票:0回答:1

尝试通过ARM模板启用网络流日志。但是出现“段长度不正确”的错误使用附件中的模板和参数文件。需要建议。在此先感谢

https://github.com/azure-arm-nsg-flow-log

出现如下错误:

Deployment template validation failed: 
'The template resource 'Microsoft.Networkdemodemo-2-nsg' for type 
'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Common.Entities.TemplateGenericProperty`1[System.String]' 
at line '67' and column '62' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. 
A root resource type must have segment length one greater than its resource name. 
Please see https://aka.ms/arm-template/#resources for usage details.'. (Code: InvalidTemplate)
azure azure-resource-manager arm-template
1个回答
0
投票

是,要确切地诊断问题,我们需要您完整的模板,但基于错误,它看起来像是incorrect segment length问题,即

通常,ROOT资源类型的段长度必须比其资源名称大一,即,如果您的ROOT资源类型类似于“ type”:“ Microsoft.xxxxxxx / yyyyyyy / zzzzzzz”,则其名称应类似于“ name “:”“ aaaaaaa / bbbbbbb”

并且NESTED资源类型必须具有与其资源名称相同的段数,即,如果您的NESTED资源类型类似于“ type”:“ Microsoft.xxxxxxx / yyyyyyy / zzzzzzz”,则其名称应类似于“ name” :“ aaaaaaa / bbbbbbb / ccccccc”

有关更多信息,请参阅this文档。

以上信息的来源是this堆栈溢出线程。

© www.soinside.com 2019 - 2024. All rights reserved.