AKS now supports aborting a long running operation. The abort operation supports the following scenarios:
- If a long running operation is stuck or suspected to be in a bad state or failing, the operation can be aborted provided it’s the last running operation on the Managed Cluster or agent pool.
- If a long running operation is stuck or failing, that operation can be aborted.
- An operation that was triggered in error can be aborted as long as the operation doesn’t reach a terminal state first.
The following example terminates an operation on a node pool on a specified cluster:
az aks nodepool operation-abort --resource-group myResourceGroup --cluster-name myAKSCluster --name myNodePool
The following example terminates an operation on a specified cluster:
az aks operation-abort --name myAKSCluster --resource-group myResourceGroup