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' = {
4747 properties : {
4848 privateDnsZoneConfigs : !empty (dnsZoneId ) ? [
4949 {
50- name : 'config1 '
50+ name : 'config-${ name }-${ dnsZoneId } '
5151 properties : {
5252 privateDnsZoneId : dnsZoneId
5353 }
Original file line number Diff line number Diff line change @@ -1212,8 +1212,9 @@ var cognitiveServicesPrivateEndpointConnection = (usePrivateEndpoint && (!useLoc
12121212 {
12131213 groupId : 'account'
12141214 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.
12151217 resourceIds : concat (
1216- [openAi .outputs .resourceId ],
12171218 !useLocalPdfParser ? [documentIntelligence .outputs .resourceId ] : [],
12181219 useMultimodal ? [vision .outputs .resourceId ] : [],
12191220 useMediaDescriberAzureCU ? [contentUnderstanding .outputs .resourceId ] : []
Original file line number Diff line number Diff 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
8688var blobEndpointInfo = filter (flatten (privateEndpointInfo ), info => info .groupId == 'blob' )
8789// Assert that blob endpoints exist (required for this application)
You can’t perform that action at this time.
0 commit comments