AKS (Azure Kubernetes Services) stucks in Creating or Deleting State

A few months ago, we have introduced AKS (Azure Kubernetes Service) in Cloudockit : you can now fully document your AKS Clusters and also create Visio diagrams for those cluster.

 

While doing our tests, we encountered a few issues and we though we should start sharing the roadblocks that we faced. So here we go!

 

One of the issue we had was AKS cluster sometimes staying in a ‘Creating’ or ‘Deleting’ state. It happens from time to time and is very annoying as once you get into one of this state, the UI gets greyed out and you cannot act on the cluster anymore.

Here is an example of AKS Cluster stuck in the Creating state :

Here is an example of AKS Cluster stuck in Deleting state:

To fix that, you need to use Az tool (or Powershell).

The easiest way to use that if you don’t have it installed on your workstation is to use the Online Az Tool located on the top right corner of your screen:

Once you do that, if this is the first time, it will ask you to create a storage account and then, you can simply type the following line:

az aks delete –resource-group THERGNAME –name THECLUSTERNAME –verbose –subscription THESUBSCRIPTIONID

If you want to know more about what causes the issue, you can click on Deployments in the Resource Groups and you will see all the actions done to the resource groups. In those deployments, you should probably see some that failed :

If you click of one of this failed deployed, you will be able to diagnose what happened like in our case bellow it was a time-out issue.

 

Thanks for reading and remember that if you have undocumented AKS cluster you will probably be interested in getting your always up-to-date documentation and diagrams by visiting https://www.cloudockit.com

 

Leave a comment

Your email address will not be published.