FQDN not shown for Azure Container Instance

Michael Bear 20 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.
698 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,041 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Bear 20 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 had a RG created via webui and Container Image uploaded
    
    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

    0 comments No comments

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.