Not able to delete kubernetes cluster

sathish@rafay.co 0 Reputation points
2023-09-15T06:08:54.1833333+00:00

This cluster is in a failed state. If you didn't do an operation, AKS may resolve the provisioning status automatically if your cluster applications continue to run. Learn more 

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,462 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2023-09-17T07:01:21.33+00:00

    Hello @******@rafay.co

    I would recommend you to reconcile the cluster and then try to 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.

    Please also check if there no existing NSGs belong to the default aks resource group or other related resources.

    https://learn.microsoft.com/en-us/answers/questions/973618/aks-cannot-be-deleted-from-the-azure-ui-due-to-an
    https://learn.microsoft.com/en-us/answers/questions/893384/azure-aks-cluster-is-in-failed-state

    1 person found this answer helpful.
    0 comments No comments

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.