When I tried with the following learning path, an error occurred.
I contacted you from the feedback of the learning pass, but there is no response.
Please tell me how to resolve the error.
https://learn.microsoft.com/en-us/learn/modules/run-docker-with-azure-container-instances/4-use-environment-variables
〇Applicable part of the learning pass
Deploy a container that works with your database
Here you'll create an Azure container instance that can read from and write records to your Azure Cosmos DB instance.
The two environment variables you created in the last part, COSMOS_DB_ENDPOINT and COSMOS_DB_MASTERKEY, hold the values you need to connect to the Azure Cosmos DB instance.
Run the following az container create command to create the container.
Azure CLI
Copy
az container create \
--resource-group learn-deploy-aci-rg \
--name aci-demo \
--image mcr.microsoft.com/azuredocs/azure-vote-front:cosmosdb \
--ip-address Public \
--location eastus \
--environment-variables \
COSMOS_DB_ENDPOINT=$COSMOS_DB_ENDPOINT \
COSMOS_DB_MASTERKEY=$COSMOS_DB_MASTERKEY
〇Error details
beautenoble1290@Azure:~$ az container create \
--resource-group learn-deploy-aci-rg \
--name aci-demo \
--image microsoft/azure-vote-front:cosmosdb \
--ip-address Public \
--location eastus \
--environment-variables \
COSMOS_DB_ENDPOINT=$COSMOS_DB_ENDPOINT \
COSMOS_DB_MASTERKEY=$COSMOS_DB_MASTERKEY
The image 'microsoft/azure-vote-front:cosmosdb' in container group 'aci-demo' is not accessible. Please check the image and registry credential.