Azure / Azure/azure-cli

`az container exec` has no way to pass arguments

Open
#10,039 28 comments 16 reactions 0 assignees View on GitHub
act-observability-squad Container Instances customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

There is no way to specify arguments in `az container exec`. For example:

az container exec -g ... -n ... --exec-command "ls /"

will just complain about not finding the `ls /` executable. There should really be some way to pass arguments instead of using a shell for doing anything.

(As it is right now, the comment "The most common use case is to open an interactive bash shell" is really misleading, since running a shell is just about the only useful thing you can do when you cannot pass arguments.)

(This bug is a superset of #8687)

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.