Unable to setup public access to container instance

Pallavi Gadepalli 0 Reputation points
2024-08-12T23:24:35.3733333+00:00

Created a new container instance for deploying chromadb. Previously I used the Azure Portal UI to create a container instance but that UI didn't allow for ways to set a persistent file storage for the container. So I reverted to using a AZ CLI to create a new container instance. Here is the CLI command I used:

az container create \

  --resource-group EnterpriseChai-Dev \

  --name chroma-v2 \

  --image enterprisechai.azurecr.io/chromadb/chroma:latest \

  --ports 8000 \   

  --azure-file-volume-account-name stchroma \

  --azure-file-volume-account-key $STORAGE_KEY \

  --azure-file-volume-share-name stchromacishare \

  --azure-file-volume-mount-path /chromadb \

  --location eastus

The container was created, the file storage was mounted and chroma image was pulled. But the port configuration was NOT applied. I wanted to have a public access IP and Port 8000, but UI doesn't show what is the public IP and the port is also not shown.

So if I use the CLI, the storage is mounted (which is not possibly via the Azure portal UI) but then I run into this issue where the public IP and port is not being set.

Can someone help with this?

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

1 answer

Sort by: Most helpful
  1. TP 90,151 Reputation points
    2024-08-12T23:44:38.47+00:00

    Hi,

    Please add --ip-address public to the end of your az container create command, as shown below:

    az container create --resource-group EnterpriseChai-Dev --name chroma-v2 --image enterprisechai.azurecr.io/chromadb/chroma:latest --ports 8000 --azure-file-volume-account-name stchroma --azure-file-volume-account-key $STORAGE_KEY --azure-file-volume-share-name stchromacishare --azure-file-volume-mount-path /chromadb --location eastus --ip-address public
    
    

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


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.