The scenario is that I want to set up multiple internal container apps under the same container apps environment. All these apps are in the same VNET.
I understand that to access them, I need to create a private DNS zone to map domains like:
https://test1.apple-1234.northeurope.azurecontainerapps.io/
https://test2.bigapple-5678.northeurope.azurecontainerapps.io/
...to their internal IP addresses.
My question is: how can I set up internal domains for the above apps? For example, I would like to access these two apps using:
http://test1.xyz.abc
http://test2.xyz.abc
P.S. These domains are only used internally and will only be accessed within the VNET.
How to add custom domain to multiple internal container apps
There is no validation required for your custom domain when adding or attaching a domain in Container Apps
. Follow the MS Doc for more details
xyz.abc
, as shown below EX: my app name is theja-container-app
Custom domain is : theja-container-app.xyz.abc
Custom domain configuration
Note: Make sure to restart the container app after adding the custom domain.
Container apps environment static IP
10.0.0.159 demo-container-app.mangosea-d4264213.eastus.azurecontainerapps.io
10.0.0.159 theja-container-app.mangosea-d4264213.eastus.azurecontainerapps.io
Local host entry
Result from my VM which has same Vnet as container app