FQDN not shown for Azure Container Instance

Michael Bear 65 Reputation points
2024-09-28T21:36:10.9766667+00:00

Hello,

I am trying to access an Azure Container Instance.

While the Azure Container Instance deployment was successful, no FQDN is shown (even though I provided a host name). Nor is the IP address shown.

SKU : Standard
OS type : Linux
IP address : ---
FQDN : ---
Container count : 1

What is going wrong that I am not provided with an FQDN?

Thank you!

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

Accepted answer
  1. Nikhil Duserla 3,065 Reputation points Microsoft Vendor
    2024-10-01T12:22:29.7033333+00:00

    Hi @Michael Bear,

    Thank you for letting us know.

    As an original poster cannot accept their own answer, I am reposting it so that you can accept it an answer. Accepted answer will help other community members navigate to the appropriate solutions. 

    Issue: FQDN not shown for Azure Container Instance

    Solution: While the Azure Portal (webui) would not show the FQDN for my Azure Container Instance (ACI) ... the following link [0] provided a workaround suggestion to use the Azure CLI. Though I needed more complex commands, so I chose to fill out this post with my solution.

    I chose to use the Azure Cloud Shell within the Azure Portal to run the commands.

    # Already created a Resource Group via webui and had uploaded a Container Image 
    az container create --resource-group RESOURCE_GROUP --name CONTAINER_NAME \ --image IMAGE --registry-login-server SERVER --registry-username REGISTRY \ --registry-password PASS --ip-address Public --dns-name-label SOMENAME \ --ports 80 
    az container list --resource-group RESOURCE_GROUP 
    az container delete --name CONTAINER_NAME --resource-group RESOURCE_GROUP 
    az group list 
    az group delete --name RESOURCE_GROUP
    

    User's image


1 additional answer

Sort by: Most helpful
  1. Michael Bear 65 Reputation points
    2024-09-28T21:58:38.4533333+00:00

    While the Azure Portal (webui) would not show the FQDN for my Azure Container Instance (ACI) ... the following link [0] provided a workaround suggestion to use the Azure CLI. Though I needed more complex commands so I chose to fill out this post with my solution.

    I chose to use the Azure Cloud Shell within the Azure Portal (several icons to the left of your username in the top right corner) to run the commands [1]. I hope this is helpful to others!

    The following command excludes some of the defaults that were what I already needed (ex: --restart-policy defaults to Always).

    # already created a Resource Group via webui and had uploaded a Container Image
    
    az container create --resource-group RESOURCE_GROUP --name CONTAINER_NAME \
    --image IMAGE --registry-login-server SERVER --registry-username REGISTRY \
    --registry-password PASS --ip-address Public --dns-name-label SOMENAME \
    --ports 80
    
    az container list --resource-group RESOURCE_GROUP
    
    az container delete --name CONTAINER_NAME --resource-group RESOURCE_GROUP
    
    az group list
    
    az group delete --name RESOURCE_GROUP
    

    [0] https://learn.microsoft.com/en-us/answers/questions/2078125/issue-with-missing-ip-address-fqdn-when-provisioni

    [1] https://learn.microsoft.com/en-us/cli/azure/container?view=azure-cli-latest#az-container-create-required-parameters

    1 person found this answer helpful.

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.