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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With