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.
225 questions
{count} votes

2 answers

Sort by: Most helpful
  1. J N S S Kasyap 2,445 Reputation points Microsoft External Staff Moderator
    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.


  2. Dileep Raj Narayan Thumula 20 Reputation points Microsoft External Staff Moderator
    2025-05-01T11:15:49.28+00:00

    Hello Abhinandan Gupta, good to hear that your issue got resolved.
    Based on my research I have found that Azure Resource Explorer portal, as there might be underlying dependencies preventing the deletion. could aslo ressolve the issue. and it could help you in future if you again face such kind of ERROR.

    Here's how you can do it:

    Open the Resource Explorer portal.

    Navigate to your Subscription.

    Expand the Resource groups section.

    Select the specific Resource Group you want to delete.

    From there, manually attempt to delete the individual resources.

    If you find this info useful Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    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.