azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Cannot list aks maintenanceconfiguration without a cluster name

Open SimonHarrisonSH opened this issue 2 years ago • 2 comments

  • When a cluster is deleted, any maintenanceconfiguration associated with it is not.
  • az aks maintenanceconfiguration list requires a cluster name.
  • listing maintenance configurations on the UI does not list configurations for any clusters

This means that is is easily possible to delete a cluster, and leave an orphaned maintenanceconfiguration, which cannot be deleted (or even seen) unless you happen to know the cluster name.

The --cluster-name argument for az aks maintenanceconfiguration list should be optional, so that configurations which no longer have an associated aks cluster can still be found (and deleted)


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SimonHarrisonSH avatar Jan 20 '23 07:01 SimonHarrisonSH

@SimonHarrisonSH We are looking into it and get back to you for any additional information.

SaurabhSharma-MSFT avatar Jan 20 '23 08:01 SaurabhSharma-MSFT

route to CXP team

yonzhan avatar Jan 20 '23 14:01 yonzhan

@SimonHarrisonSH How are you creating the maintenance configuration. If you are using az aks maintenanceconfiguration add to create a maintenance configuration, then it will be deleted when you delete the AKS cluster. Can you please share more details how are you validating the maintenance configuration if it's deleted or not?

SaurabhSharma-MSFT avatar Feb 07 '23 00:02 SaurabhSharma-MSFT

@SaurabhSharma-MSFT Hmm. I was sure I'd observed the behaviour where they persisted after deletion of the cluster.

However, I cannot replicate this, so either I was mistaken or something has changed.

My apologies for the confusion

SimonHarrisonSH avatar Feb 07 '23 14:02 SimonHarrisonSH