File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ resource privateEndpoint 'Microsoft.Network/privateEndpoints@2021-02-01' = {
47
47
properties : {
48
48
privateDnsZoneConfigs : !empty (dnsZoneId ) ? [
49
49
{
50
- name : 'config1 '
50
+ name : 'config-${ name }-${ dnsZoneId } '
51
51
properties : {
52
52
privateDnsZoneId : dnsZoneId
53
53
}
Original file line number Diff line number Diff line change @@ -1212,8 +1212,9 @@ var cognitiveServicesPrivateEndpointConnection = (usePrivateEndpoint && (!useLoc
1212
1212
{
1213
1213
groupId : 'account'
1214
1214
dnsZoneName : 'privatelink.cognitiveservices.azure.com'
1215
+ // Only include generic Cognitive Services-based resources (Form Recognizer / Vision / Content Understanding)
1216
+ // Azure OpenAI uses its own privatelink.openai.azure.com zone and already has a separate private endpoint above.
1215
1217
resourceIds : concat (
1216
- [openAi .outputs .resourceId ],
1217
1218
!useLocalPdfParser ? [documentIntelligence .outputs .resourceId ] : [],
1218
1219
useMultimodal ? [vision .outputs .resourceId ] : [],
1219
1220
useMediaDescriberAzureCU ? [contentUnderstanding .outputs .resourceId ] : []
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ var privateEndpointInfo = [
52
52
resourceId : resourceId
53
53
})
54
54
]
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'
57
58
params : {
58
59
location : location
59
60
name : '${privateEndpointInfo .name }${abbrs .privateEndpoint }${resourceToken }'
@@ -82,6 +83,7 @@ module monitorDnsZones './core/networking/private-dns-zones.bicep' = [for monito
82
83
virtualNetworkName : vnetName
83
84
}
84
85
}]
86
+
85
87
// Get blob DNS zone index for monitor private link
86
88
var blobEndpointInfo = filter (flatten (privateEndpointInfo ), info => info .groupId == 'blob' )
87
89
// Assert that blob endpoints exist (required for this application)
You can’t perform that action at this time.
0 commit comments