“ InvalidTemplate”,同时通过ARM启用Azure NSGFlow

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

[通过ARM启用Azure NSGFlow时,出现错误。

以下链接中的模板和参数文件:

https://github.com/azure-nsgflow

出现如下错误:

Unable to process template language expressions for resource 
'/subscriptions/205dcef5-f966-48e3-9671-265c7379e647/resourceGroups/NetworkWatcherRG/providers/Microsoft.Resources/deployments/deployFlowLogs' 
at line '76' and column '9'. 'The template function 'copyIndex' is not expected at this location. 
The function can only be used in a resource with copy specified. 
Please see https://aka.ms/arm-copy for usage details.
azure azure-resource-manager azure-template
1个回答
0
投票

您需要在virtualNetworks资源上指定复制参数。

"copy": [
{
    "name": "xxx",
    "count": "xxx",
    "input": { ... }
}]
© www.soinside.com 2019 - 2024. All rights reserved.