Hello @KrystianKrasucki-6994 ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you are trying to setup a private Azure Container App behind an Application Gateway so that it is only accessible via the Application gateway and not accessible directly.
I see you've mentioned that you followed the below tutorial but without creating DNS zone:
https://learn.microsoft.com/en-us/azure/container-apps/waf-app-gateway?tabs=default-domain
As per Networking requirement, when using an internal Container Apps environment, you must create a private DNS zone that resolves the Container Apps environment's default domain to the static IP address of the Container Apps environment, or you can use your own DNS server.
Without a private DNS zone or your own DNS server, the application gateway will not be able to resolve the FQDN of the internal Container Apps configured in its backend to the static IP address. Without this DNS binding, the Container Apps will not be accessible.
Refer: https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=azure-cli#dns
So, to resolve this issue, you need to either create a private DNS zone or use your own DNS server.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.