How to Set a Static IP or Hostname for Azure Container Apps?

0
6
Asked By CuriousCat93 On

Hey everyone! I'm working on deploying a Docker container for my ASP.NET Core WebAPI project, which listens on port 8080. I've successfully created a container app from my Docker image, but it's currently assigned a dynamic hostname. I want to figure out how to assign a static IP or hostname to it, especially since I'll be using a custom domain later on. I tried setting up an application gateway, but that didn't seem to work. Any help would be appreciated!

2 Answers

Answered By DevNinja12 On

You can get a free custom domain with Azure Container Apps! Just make sure to go through the DNS validation to prove you own it. That way, you can link it to your static IP.

CuriousCat93 -

I tried setting up a subdomain like api.mydomain.com, but for validation, it required me to add a CNAME record pointing to a dynamic Azure hostname. That hostname changes with every update of my container app, and that’s throwing me off.

Answered By TechGuru77 On

Have you checked out the Azure documentation on networking for container apps? It has some useful info on how to configure static custom domains after validating your ownership. You can find it [here](https://learn.microsoft.com/en-us/azure/container-apps/networking?tabs=workload-profiles-env%2Cazure-cli).

CuriousCat93 -

I read that already, but unfortunately, it didn't provide the clarity I needed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.