agent pool is in a non-terminal state, stopping cannot be performed.

Manoj Bukka 0 Reputation points
2025-08-05T10:39:46.43+00:00

I've created an aks cluster with one user nodepool apart from the system nodepool, where mincount and maxcount is 1. (the purpose of this nodepool is to host the database servers)
Note: also using the managed ssd's attached to the pods running on them....
After some sort of time i've stopped the cluster....
And when i try to start again it started, and again i try to stop after 3 days, and i can't able to stop it....
and getting the below :agent pool is in a non terminal state, stopping cannot be performed
below is the cli output:
az aks stop --name <cluster-name> --resource-group <rg-name>
(OperationNotAllowed) Cannot stop managed cluster when deletion for agent pool databasepool has started. Either wait for deletion to finish or retry deleting that agent pool again

Code: OperationNotAllowed

Message: Cannot stop managed cluster when deletion for agent pool databasepool has started. Either wait for deletion to finish or retry deleting that agent pool again

so, looking at the state of the nodepool gave me the below output
az aks nodepool delete \

--resource-group <your-resource-group> \

--cluster-name <your-cluster-name> \

--name <nodepool-name>

output:

"Failed"

please help how can i fix this?

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.