Hello @CreatiXx,
Thank you for your follow-up and for checking your Container App Environment (CAE). I understand the confusion around “internal ingress.” I have provided the troubleshooting steps below, please run those steps to fix the issue.
Resolving Outbound Connectivity Issues to On-Prem:
Based on your information, the VPN, routing, and NSGs appear to be set up correctly. The issue is likely due to incomplete VNet integration or route propagation between the Container App Environment and the VPN gateway.
Here is the process to check and resolve the issue:
1. Verify VNet Integration:
- Go to Azure portal, navigate to Container Apps Environment → Networking
- Confirm:
o The Virtual Network is your networking RG’s VNet.
o The Subnet is a dedicated /27+ with delegation to Microsoft.App/environments.
o Outbound type is set to VNet integration.
- If these don’t match, you may need to edit or recreate the CAE to use the correct subnet.
2. Verify Effective Routes:
- Go to Network Watcher (for your region) → Connection Troubleshoot.
- Source: A VM in the same subnet as your CAE.
- Destination: an on-prem IP address.
- Run the test and review Effective Routes.
- Ensure the on-prem IP range routes to the Virtual Network Gateway.
- If not, associate the route table with your CAE subnet under Route tables → Associated subnets → Add.
3. Outbound Test from the Container App:
You can run an outbound test directly:
az containerapp exec --name <app-name> --resource-group <rg> --command "/bin/sh"
curl <on-prem-ip>:<port>
(Use ping if ICMP is allowed.) If it fails, check Log Stream in the portal under Container App → Monitoring → Log Stream for outbound errors.
4. NSG / UDR Review:
- NSG: Ensure outbound traffic from your CAE subnet to the on-prem range is allowed (both TCP and UDP if needed).
- UDR: Confirm no default route (0.0.0.0/0) is overriding the VPN route.
Once the above checks are in place, your Container App should be able to reach on-prem resources over the VPN while still being publicly accessible for external users.
Kindly let us know if the above helps or you need further assistance on this issue.