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 helps you troubleshoot the InUseRouteTableCannotBeDeleted error that occurs when you delete an Azure Kubernetes Service (AKS) cluster. Remove the route table association from the subnet to complete the deletion.
Symptoms
When you try to delete an AKS cluster, you receive the following error message.
Error Code: "InUseRouteTableCannotBeDeleted"
{
"Route table aks-agentpool-routetable is in use and cannot be deleted. ...../providers/Microsoft.Network/routeTables/aks-agentpool-test-routetable"
}
Cause
You tried to delete the AKS cluster while its associated route table was still in use.
Solution
Remove the associated route table from the subnet. For more information (including instructions), see Dissociate a route table from a subnet. Then, try again to delete the AKS cluster.