can i get the fqdn in the private connection in azure container isntances

37296779 0 Reputation points
2023-09-15T11:51:47.2966667+00:00

How to access the private aci connection how i can access the fqdn in private connection in azure container instances

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
690 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 6,621 Reputation points
    2023-09-15T21:36:47.5433333+00:00

    Hello,

    Creating Azure container intance with private networking thats meaning that the container are accesible by the private IP address in this vnet. You can find the ip on overview page or by CLI:

    User's image

    You can add your own name resolution with a private dns zone.

    User's image

    If you want to test if your image is working you can create another container (or Vm if you already have one in the Vnet) and try to connect to the private ip:

    CONTAINER_GROUP_IP=$(az container show --resource-group your-resource-group \
      --name your-aci-application-01 \
      --query ipAddress.ip --output tsv)
    
    az container create \
      --resource-group your-resource-group \
      --name commchecker \
      --image alpine:3.5 \
      --command-line "wget $CONTAINER_GROUP_IP" \
      --restart-policy never \
      --vnet vnet-aci \
      --subnet snet-aci
    
    

    You will have something like this, (in the example 10.0.3.4 is the container group ip): https://video2.skills-academy.com/en-us/azure/container-instances/container-instances-vnet

    User's image

    Regards,

    Luis Arias


    If the information helped address your question, please Accept the answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.