az webapp exec
Open an interactive shell session or run a command in a Linux web app container. Azure CLI reference
9 options Its page in the Azure CLI reference
Options
--command[Execute mode] A command to run directly in the container, without a shell.--instance, -iWebapp instance(s) to target.--modeExecution mode.--name, -nName of the web app.--shell-command[Execute mode] A command line to run through a shell, so shell operators (|, &&, >, etc.) work (e.g. --shell-command "echo hi > /home/LogFiles/out.txt").--shellAbsolute path of the shell to use (e.g. /bin/sh); defaults to /bin/bash.--slot, -sName of the web app slot.--targetContainer to connect to in 'shell' mode.--working-directory, --cwd[Execute mode] Absolute working directory for command execution.