Azure / Azure/azure-cli

Cannot create a Container Instance with multiple containers using YAML or Resource Manager template

Open
#27,860 1 comment 0 reactions 0 assignees View on GitHub
act-identity-squad act-observability-squad ARM Auto-Assign Container Instances customer-reported question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

I cannot create a container instance with two docker containers using YAML or Resource Manager template described in microsoft documentation. The containers are inside an azure container registry.

When creating the container instance using ARM Template or YAML file i receive: The image 'myimage' in container group 'mygroup' is not accessible. Please check the image and azure registry credential.

Even when I use the registry username and registry password parameters in az container create command defined in my container registry Access keys I get the same error message.

The same command works if I define one image directly in command with the same username and password.

### Related command

az container create --resource-group --name --image /: --cpu 1 --memory 1 --os-type Linux --ip-address public --registry-username --registry-password

az container create --resource-group myResourceGroup --file deploy-aci.yaml --registry-username --registry-password

az deployment group create --resource-group myResourceGroup --template-file azuredeploy.json

### Errors

InaccessibleImage: The image 'myimage' in container group 'myinstance' is not accessible. Please check the image and registry credential.

### Issue script & Debug output

InaccessibleImage: The image 'myimage' in container group 'myinstance' is not accessible. Please check the image and registry credential.

### Expected behavior

The expected behavior should be the creation of a new container instance with two container that were defined inside YAML file or Resource Manager template file.

### Environment Summary

azure-cli 2.54.0

core 2.54.0
telemetry 1.1.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.