@@ -300,7 +300,7 @@ param webAppExists bool
300300@allowed (['appservice' , 'containerapps' ])
301301param deploymentTarget string = 'appservice'
302302param acaIdentityName string = deploymentTarget == 'containerapps' ? '${environmentName }-aca-identity' : ''
303- param acaManagedEnvironmentName string = deploymentTarget == 'containerapps' ? '${environmentName }-aca-envnet ' : ''
303+ param acaManagedEnvironmentName string = deploymentTarget == 'containerapps' ? '${environmentName }-aca-env ' : ''
304304param containerRegistryName string = deploymentTarget == 'containerapps'
305305 ? '${replace (toLower (environmentName ), '-' , '' )}acr'
306306 : ''
@@ -542,7 +542,7 @@ module acaBackend 'core/host/container-app-upsert.bicep' = if (deploymentTarget
542542 acaIdentity
543543 ]
544544 params : {
545- name : !empty (backendServiceName ) ? backendServiceName : '${abbrs .webSitesContainerApps }backend${resourceToken }'
545+ name : !empty (backendServiceName ) ? backendServiceName : '${abbrs .webSitesContainerApps }backend- ${resourceToken }'
546546 location : location
547547 identityName : (deploymentTarget == 'containerapps' ) ? acaIdentityName : ''
548548 exists : webAppExists
@@ -552,7 +552,7 @@ module acaBackend 'core/host/container-app-upsert.bicep' = if (deploymentTarget
552552 targetPort : 8000
553553 containerCpuCoreCount : '1.0'
554554 containerMemory : '2Gi'
555- containerMinReplicas : 1
555+ containerMinReplicas : usePrivateEndpoint ? 1 : 0
556556 allowedOrigins : allowedOrigins
557557 env : union (appEnvVariables , {
558558 // For using managed identity to access Azure resources. See https://github.com/microsoft/azure-container-apps/issues/442
@@ -1155,17 +1155,15 @@ module cosmosDbRoleBackend 'core/security/documentdb-sql-role.bicep' = if (useAu
11551155 }
11561156}
11571157
1158-
1159-
11601158module isolation 'network-isolation.bicep' = if (usePrivateEndpoint ) {
11611159 name : 'networks'
11621160 scope : resourceGroup
11631161 params : {
11641162 location : location
11651163 tags : tags
11661164 vnetName : '${abbrs .virtualNetworks }${resourceToken }'
1167- useVpnGateway : useVpnGateway
11681165 deploymentTarget : deploymentTarget
1166+ useVpnGateway : useVpnGateway
11691167 vpnGatewayName : useVpnGateway ? '${abbrs .networkVpnGateways }${resourceToken }' : ''
11701168 dnsResolverName : useVpnGateway ? '${abbrs .privateDnsResolver }${resourceToken }' : ''
11711169 }
0 commit comments