Azure Container Instance in VNET how to get a FQDN

Viewed 496

When deploying a Container Instance which ISNT in a VNET we can specify a label "x" to get a FQDN i.e http://x.uksouth.azurecontainer.io/

If you deploy the container into a subnet it appears that you can no longer specify a label.

I'm using Terraform https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_group

Specifically "network_profile_id": conflicts with dns_name_label

In this case I assume you supposed to manage DNS yourself.

It doesnt appear you specify the private IP of the container?

2 Answers

I'm pretty sure, it's impossible to set a static private IP address if you deploy the ACI in the VNet. You can expose the ACI in the VNet to the outside through the Application gateway, but when the IP address of the ACI changes, it can't work anymore. And you have no control over the ACI IP address.

According to the Azure docs:

Public IP or DNS label - Container groups deployed to a virtual network don't currently support exposing containers directly to the internet with a public IP address or a fully qualified domain name

Related