Azure Pipeline issue with AzureCLI Task failing when accessing Container Group
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Describe the bug**
During the Azure Pipeline process which contains an AzureCLI task to create a container based on a .yaml file, the tasks fails producing the following error.
`ERROR: (InaccessibleImage) The image 'XXXX' in container group 'XXXXX' is not accessible. Please check the image and registry credential`
**To Reproduce**
**Expected behavior**
**Environment summary**
azure-cli 2.24.2
azure-devops 0.18.0
**Additional context**
This is the inline shell script used for the Azure CLI Task.
`sed -Ei "s|empty|$(password)|g" ./data-aci.yaml
sed -i '12s/latest/$(Build.BuildId).0.0/g' ./data-aci.yaml
az container create --resource-group XXXXXXX --file data-aci.yaml --restart-policy OnFailure`
This is happening to all pipelines for multiple repositories connected to the same Container Registry which were all working fine this morning as we had deployed to these containers then.
Contributor guide
Assessment
This issue has not been assessed yet.