AKS cannot be deleted from the Azure UI due to an error.

Jijo Varghese-FT 46 Reputation points
2022-08-19T06:46:09.607+00:00

When attempting to delete the AKS using the Azure portal UI, the error message "This Cluster is in failed state" appears, and a notification is received when trying to stop AKS.
"failed to terminate the 'akspoc' Kubernetes service. Error: Since deletion was issued on "akspoc," "Stopping" operation on "akspoc" could not be completed. Once deletion has begun, the only operation that is permitted is deletion". I had to wait two days to know how the deletion was going, but there was no progress.

How then can I delete an Azure Kubernetes service the most efficient manner possible?
![232696-screenshot-2022-08-19-121322.png][1]

![232723-screenshot-2022-08-19-121459.png][1]

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,210 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
78 questions
No comments
{count} votes

Accepted answer
  1. Nadav Ben Haim 496 Reputation points Microsoft Employee
    2022-08-30T08:20:46.48+00:00

    Hello
    Please try to reconcile the cluster, then delete it.

    Try this via Azure CLI -

    az extension add -n aks-preview
    az aks update -n clustername -g clusterresourcegroup
    az aks delete -n clustername -g resourcegroup --debug

    if you still cant delete please paste your debug log.


2 additional answers

Sort by: Most helpful
  1. Andriy Bilous 8,381 Reputation points
    2022-08-19T08:34:59.6+00:00
    1 person found this answer helpful.
    No comments

  2. Jijo Varghese-FT 46 Reputation points
    2022-09-02T10:13:38.963+00:00

    It was discovered that a some of my existing nsgs belonged to the default aks resource group, blocking deletion. My problem was fixed by removing those from the RG and running the delete command from the Azure cli. thank you all.

    1 person found this answer helpful.
    No comments