File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -715,7 +715,17 @@ module isolation 'network-isolation.bicep' = {
715
715
}
716
716
717
717
var environmentData = environment ()
718
- var privateEndpointConnections = usePrivateEndpoint ? [
718
+
719
+ var openAiPrivateEndpointConnection = (isAzureOpenAiHost && deployAzureOpenAi ) ? [{
720
+ groupId : 'account'
721
+ dnsZoneName : 'privatelink.openai.azure.com'
722
+ resourceIds : concat (
723
+ [ openAi .outputs .id ],
724
+ useGPT4V ? [ computerVision .outputs .id ] : [],
725
+ !useLocalPdfParser ? [ documentIntelligence .outputs .id ] : []
726
+ )
727
+ }] : []
728
+ var otherPrivateEndpointConnections = usePrivateEndpoint ? [
719
729
{
720
730
groupId : 'blob'
721
731
dnsZoneName : 'privatelink.blob.${environmentData .suffixes .storage }'
@@ -724,15 +734,6 @@ var privateEndpointConnections = usePrivateEndpoint ? [
724
734
useUserUpload ? [ userStorage .outputs .id ] : []
725
735
)
726
736
}
727
- {
728
- groupId : 'account'
729
- dnsZoneName : 'privatelink.openai.azure.com'
730
- resourceIds : concat (
731
- [ openAi .outputs .id ],
732
- useGPT4V ? [ computerVision .outputs .id ] : [],
733
- !useLocalPdfParser ? [ documentIntelligence .outputs .id ] : []
734
- )
735
- }
736
737
{
737
738
groupId : 'searchService'
738
739
dnsZoneName : 'privatelink.search.windows.net'
@@ -745,6 +746,9 @@ var privateEndpointConnections = usePrivateEndpoint ? [
745
746
}
746
747
] : []
747
748
749
+
750
+ var privateEndpointConnections = concat (otherPrivateEndpointConnections , openAiPrivateEndpointConnection )
751
+
748
752
module privateEndpoints 'private-endpoints.bicep' = if (usePrivateEndpoint ) {
749
753
name : 'privateEndpoints'
750
754
scope : resourceGroup
You can’t perform that action at this time.
0 commit comments