Port forwarding to Azure Container Apps

Alexander Lapin 60 Reputation points
2024-03-15T08:07:54.0466667+00:00

Hi everyone.

I have one question

I have a couple of Azure Container Instances (ACI1 and ACI2) in Virtual network (for examole 10.0.0.0/24), Azure Loadbalancer, Public Ip address and when I want to connect from internet to ACI1:8080, I'm doing a NAT Inbound rule on the ALB and if I don't pay attention on dynamic internal address for ACI1 then It works.

But

I also have a some count of Azure Container Apps in the network for Container Apps Environment (10.0.1.0/23), and I have ACA1 with next Ingress settings - Ingress traffic is Limited to VNet, Ingress type is TCP, Target port is 8080. How can I connect from internet to ACA1 via 8080 tcp port?

Thanks for any ideas....

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
325 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 15,786 Reputation points Microsoft Employee
    2024-04-02T22:33:15.1733333+00:00

    @Alexander Lapin Hello! To connect to your Azure Container App (ACA1) via port 8080 from the internet, you can use Azure Application Gateway.

    First, you need to create an Azure Application Gateway and configure it to use the same virtual network as your Azure Container Apps. Then, you can create a listener on the Application Gateway for port 8080 and configure a rule to forward traffic to ACA1.

    Here are the high-level steps to achieve this:

    1. Create an Azure Application Gateway in the same virtual network as your Azure Container Apps.
    2. Create a listener on the Application Gateway for port 8080.
    3. Create a backend pool for your Azure Container Apps and add ACA1 to the pool.
    4. Create a rule to forward traffic from the listener to the backend pool.

    Once you have completed these steps, you should be able to connect to ACA1 via port 8080 from the internet.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful