Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Container Instance in VNET how to get a FQDN

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?

like image 391
iasksillyquestions Avatar asked Sep 19 '25 00:09

iasksillyquestions


1 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.

like image 125
Charles Xu Avatar answered Sep 22 '25 08:09

Charles Xu