@Anonymous , Thank you for your question.
If you try to upgrade the AKS cluster when an earlier scale operation (initiated by the cluster autoscaler) is already in progress you can expect to see an error message like the following.
{
"statusCode": "Conflict",
"serviceRequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"statusMessage": "{\"code\":\"OperationNotAllowed\",\"message\":\"Operation is not allowed: Another operation <some operation> is in progress, please wait for it to finish before starting a new operation. See https://aka.ms/aks-pending-operation for more details\"}",
"eventCategory": "Administrative"
}
Cluster operations are limited when a previous operation is still in progress. To retrieve a detailed status of your cluster, use the az aks show -g myResourceGroup -n myAKSCluster -o table
command. Use your own resource group and AKS cluster name as needed.
Based on the output of the cluster status:
- If the cluster is in any provisioning state other than Succeeded or Failed, wait until the operation (Upgrading / Updating / Creating / Scaling / Deleting / Migrating) finishes. When the previous operation has completed, retry your latest cluster operation.
- If the cluster has a failed upgrade, follow the steps outlined I'm receiving errors that my cluster is in failed state and upgrading or scaling will not work until it is fixed.
Fore more information please refer to this article.
----------
Hope this helps.
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.