azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az container create with file input and cli arguments

Open sire45 opened this issue 5 years ago • 12 comments

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

sire45 avatar Oct 17 '18 14:10 sire45

Making a note as I haven't tested this yet, ideally environment variables would behave the same. Some specified in the yaml and others via the CLI.

sire45 avatar Oct 17 '18 17:10 sire45

You ever get this figured out?

somanysteves avatar Apr 02 '19 22:04 somanysteves

I have that error too

mhilmiasyrofi avatar Apr 07 '19 04:04 mhilmiasyrofi

Hello everybody, any update about this issue?

I cannot use the "az container create" cli command and use both --file and registry params credentials (--registry-login-server, --registry-password and --registry-username) I need file to setup livenessProbe parameters, and I need credentials via cli instead saving them in the file for the pipeline security.

Best. Francesco.

fzoccara avatar Feb 14 '20 10:02 fzoccara

container

yonzhan avatar May 02 '20 13:05 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur.

ghost avatar Jun 16 '20 06:06 ghost

Any news by chance? @dkkapur it seems you're not working at Microsoft anymore?

Piedone avatar Aug 01 '21 17:08 Piedone

@Piedone that is correct. Hoping @macolso or @peterpogorski can weigh in!

dkkapur avatar Aug 03 '21 02:08 dkkapur

👋 we have this on our backlog! We will circle back with an update on ETA end of August.

macolso avatar Aug 03 '21 17:08 macolso

Great, thank you!

Piedone avatar Aug 03 '21 17:08 Piedone

might have just ran into this one and it took quite some time to find it out. any news on this one?

haraldsteinlechner avatar May 23 '22 16:05 haraldsteinlechner

4 years and there is no solution?

provVladBurlik avatar Aug 10 '22 22:08 provVladBurlik