CmdID / az / az batchai / az batchai cluster / az batchai cluster node
az batchai cluster node exec
Executes a command line on a cluster's node with optional ports forwarding. Azure CLI reference
5 options Its page in the Azure CLI reference
Options
--address, -LSpecifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side.--execOptional command line to be executed on the node.--node-id, -nID of the node to forward the ports to.--password, -pOptional password to establish SSH connection.--ssh-private-key, -kOptional SSH private key path to establish SSH connection.