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.