このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Submit a command to run against the Managed Cluster. AKS will create a pod to run the command. For more information see AKS Run Command. Currently supports imperative kubectl commands (e.g., kubectl scale, kubectl restart) that directly alter state. Declarative commands like kubectl apply -f <filename>, which rely on YAML file inputs to define desired states, are not yet supported.

Inputs

フィールド

種類

説明

clusterName [required]

string

Name of the cluster for which you would like to retrieve details

subscriptionId [required]

string

The unique identifier of your Azure subscription. This ID is used to specify under which Azure subscription the specified web app is located and managed. You can find your Subscription ID in the Azure portal under 'Subscriptions'.

resourceGroup [required]

string

The name of the resource group. The name is case-insensitive.

command [required]

string

The command to run. Currently you can only run imperative kubectl commands (e.g., kubectl scale, kubectl restart) that directly alter state. Declarative commands like kubectl apply -f <filename>, which rely on YAML file inputs to define desired states, are not yet supported.

clusterToken

string

AuthToken issued for AKS AAD Server App.

Outputs

フィールド

種類

説明

id

string

The command id. NOTE: This property will not be serialized. It can only be populated by the server.

provisioningState

string

provisioning State NOTE: This property will not be serialized. It can only be populated by the server.

exitCode

number

The exit code of the command NOTE: This property will not be serialized. It can only be populated by the server.

startedAt

date-time

The time when the command started. NOTE: This property will not be serialized. It can only be populated by the server.

finishedAt

date-time

The time when the command finished. NOTE: This property will not be serialized. It can only be populated by the server.

logs

string

The command output. NOTE: This property will not be serialized. It can only be populated by the server.

reason

string

An explanation of why provisioningState is set to failed (if so). NOTE: This property will not be serialized. It can only be populated by the server.