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
Name of the cluster for which you would like to retrieve details
subscriptionId [required]
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'.
The name of the resource group. The name is case-insensitive.
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.
AuthToken issued for AKS AAD Server App.
Outputs
The command id. NOTE: This property will not be serialized. It can only be populated by the server.
provisioning State NOTE: This property will not be serialized. It can only be populated by the server.
The exit code of the command NOTE: This property will not be serialized. It can only be populated by the server.
The time when the command started. NOTE: This property will not be serialized. It can only be populated by the server.
The time when the command finished. NOTE: This property will not be serialized. It can only be populated by the server.
The command output. NOTE: This property will not be serialized. It can only be populated by the server.
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.