Unable to delete HDInsight cluster and resource group.

Abhinandan Gupta 0 Reputation points
2025-04-17T20:44:02.2033333+00:00

Unable to delete HDInsight cluster and resource group. I am getting and error and the deletion process keeps running indefinitely.

User's image

Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
224 questions
{count} votes

1 answer

Sort by: Most helpful
  1. J N S S Kasyap 1,625 Reputation points Microsoft External Staff
    2025-04-18T00:14:05.8566667+00:00

    Hi @Abhinandan Gupta
    Based on the error message FailedToDeletePerClusterContainerErrorCode and the associated CLI output, it appears that the deletion process for your HDInsight cluster is encountering issues due to problems with the per-cluster default storage container. The issue arises when the cluster's associated storage container cannot be deleted automatically, causing the deletion process to fail.

    To resolve HDInsight cluster deletion issues, navigate to the associated Azure Storage account used as the cluster's default storage. Identify and manually delete the container, which is often named after the. If deletion fails, check your IAM permissions to ensure that you or the system-assigned managed identity has the "Storage Blob Data Contributor" role. Additionally, verify if there are any resource locks applied to the storage account, and ensure that soft delete or immutability policies are not preventing deletion. Disable these settings temporarily if needed to allow the container to be removed.

    After removing the storage container try to delete HDInsight cluster in AZURE portal

    Please refer the below Microsoft threads and Documentation for to delete HDInsight cluster

    https://learn.microsoft.com/en-us/azure/hdinsight/hdinsight-delete-cluster
    https://learn.microsoft.com/en-us/answers/questions/2238862/i-want-to-delete-my-hdinsight-cluster
    https://learn.microsoft.com/en-us/answers/questions/2200436/azure-hdinsight-cluster-not-getting-deleted

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.