Skip to content

Commit 7a82bde

Browse files
committed
private endpoint for ACA
1 parent 7ad962a commit 7a82bde

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

infra/main.bicep

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ module isolation 'network-isolation.bicep' = if (usePrivateEndpoint) {
10621062

10631063
var environmentData = environment()
10641064

1065-
var openAiPrivateEndpointConnection = (isAzureOpenAiHost && deployAzureOpenAi && deploymentTarget == 'appservice')
1065+
var openAiPrivateEndpointConnection = (isAzureOpenAiHost && deployAzureOpenAi)
10661066
? [
10671067
{
10681068
groupId: 'account'
@@ -1075,7 +1075,7 @@ var openAiPrivateEndpointConnection = (isAzureOpenAiHost && deployAzureOpenAi &&
10751075
}
10761076
]
10771077
: []
1078-
var otherPrivateEndpointConnections = (usePrivateEndpoint && deploymentTarget == 'appservice')
1078+
var otherPrivateEndpointConnections = (usePrivateEndpoint)
10791079
? [
10801080
{
10811081
groupId: 'blob'
@@ -1088,9 +1088,9 @@ var otherPrivateEndpointConnections = (usePrivateEndpoint && deploymentTarget ==
10881088
resourceIds: [searchService.outputs.id]
10891089
}
10901090
{
1091-
groupId: 'sites'
1092-
dnsZoneName: 'privatelink.azurewebsites.net'
1093-
resourceIds: [backend.outputs.id]
1091+
groupId: 'managedEnvironments'
1092+
dnsZoneName: 'privatelink.${location}.azurecontainerapps.io'
1093+
resourceIds: [containerApps.outputs.environmentId]
10941094
}
10951095
{
10961096
groupId: 'cosmosdb'

infra/network-isolation.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ module vnet './core/networking/vnet.bicep' = if (usePrivateEndpoint) {
5757

5858
output appSubnetId string = usePrivateEndpoint ? vnet.outputs.vnetSubnets[1].id : ''
5959
output backendSubnetId string = usePrivateEndpoint ? vnet.outputs.vnetSubnets[0].id : ''
60+
output bastionSubnetId string = usePrivateEndpoint ? vnet.outputs.vnetSubnets[2].id : ''
61+
output vmSubnetId string = usePrivateEndpoint ? vnet.outputs.vnetSubnets[3].id : ''
6062
output vnetName string = usePrivateEndpoint ? vnet.outputs.name : ''

0 commit comments

Comments
 (0)