az container create with file input and cli arguments
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Describe the bug**
When using an input file to create a multi-container container group, I can't specify the registry credentials via CLI arguments.
```
az container create --resource-group $RG --file deploy.yaml \
--registry-login-server $REGISTRY \
--registry-username $NAME \
--registry-password $PASSWORD
Multiple error occurred: 'BadRequest':'InaccessibleImage':'The image '$REGISTRY/app:latest' in container group '$RG' is not accessible.
```
**To Reproduce**
Run the command above without creds in the input yaml file.
**Expected behavior**
I expected to use an input file with creds on the cli as the file will be git which shouldn't have those secrets. Idea here to to automate this with e.g Jenkins and use environment variables for the ACR creds.
**Environment summary**
azure-cli (2.0.47) installed on Fedora via dnf.
**Additional context**
N/A
Contributor guide
Assessment
This issue has not been assessed yet.