Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Summary
This article explains how to resolve the AKSOperationPreempted or AKSOperationPreemptedByDelete error in Azure Kubernetes Service (AKS). The error occurs when another operation preempts your new operation on a cluster. Learn how to check or abort the blocking operation so that you can retry successfully.
Symptoms
When you try to perform a new operation on an AKS cluster, you receive one of the following error messages:
-
Code: "AKSOperationPreempted"
Message: "This operation has been preempted by another operation with ID <operation ID>"
This message indicates that another operation preempted the operation. The error message gives the GUID for the new operation.
-
Code: "AKSOperationPreemptedByDelete"
Message: "This operation has been preempted by Deleting operation."
This message indicates that a delete operation preempted the operation.
Cause
This error usually occurs when a subsequent operation interrupts an in-progress operation. The error indicates the subsequent operation, which can be a delete operation or any other operation.
Solution
To resolve this issue, use one of the following methods. When no operations are running, try your operation again.
Wait for the previous operation to complete. Check the status of the operation by using the ID in the error message with the following command.
az aks operation show \ --resource-group myResourceGroup \ --name myCluster \ --operation-id "<operation-id>"Run an
abortcommand to stop the previous operation. For more information about how to abort an operation, see Terminate a long running operation on an Azure Kubernetes Service (AKS) cluster.