az aks command

See detail usage in 'az aks command invoke', 'az aks command result'.

Commands

Name Description Type Status
az aks command invoke

Run a shell command (with kubectl, helm) on your aks cluster, support attaching files as well.

Core GA
az aks command result

Fetch result from previously triggered 'aks command invoke'.

Core GA

az aks command invoke

Run a shell command (with kubectl, helm) on your aks cluster, support attaching files as well.

az aks command invoke --name
                      --resource-group
                      [--command]
                      [--file]
                      [--no-wait]

Required Parameters

--name -n

Name of the managed cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--command -c

Command or shell script you want to run.

--file -f

Files to be used by the command, use '.' to attach the current folder.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az aks command result

Fetch result from previously triggered 'aks command invoke'.

az aks command result --name
                      --resource-group
                      [--command-id]

Required Parameters

--name -n

Name of the managed cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--command-id -i

CommandId returned from 'aks command invoke'.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.