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
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.
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).
I read that already, but unfortunately, it didn't provide the clarity I needed.
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.