Skip to content

Commit 2bef078

Browse files
authored
Fix issue with BICEP, deployment template validation error
1 parent 874c46e commit 2bef078

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

infra/private-endpoints.bicep

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ var privateEndpointInfo = [
5252
resourceId: resourceId
5353
})
5454
]
55-
module privateEndpoints './core/networking/private-endpoint.bicep' = [for privateEndpointInfo in flatten(privateEndpointInfo): {
56-
name: '${privateEndpointInfo.name}-privateendpoint'
55+
56+
module privateEndpoints './core/networking/private-endpoint.bicep' = [for (privateEndpointInfo, i) in flatten(privateEndpointInfo): {
57+
name: '${privateEndpointInfo.name}-${i}-privateendpoint'
5758
params: {
5859
location: location
5960
name: '${privateEndpointInfo.name}${abbrs.privateEndpoint}${resourceToken}'
@@ -82,6 +83,7 @@ module monitorDnsZones './core/networking/private-dns-zones.bicep' = [for monito
8283
virtualNetworkName: vnetName
8384
}
8485
}]
86+
8587
// Get blob DNS zone index for monitor private link
8688
var blobEndpointInfo = filter(flatten(privateEndpointInfo), info => info.groupId == 'blob')
8789
// Assert that blob endpoints exist (required for this application)

0 commit comments

Comments
 (0)