I am trying to delete a resource Group, that holds Azure AI Studio and no other resource. But I am unable to do it, have tried different ways

Ramanathan AR 0 Reputation points
2024-11-13T16:10:08.4133333+00:00

This is a wired scenario i am stuck in, I am unable to delete a resource group because the AI Studio in it is not deleting. It say it has

Failed to delete resource group new-poc: Deletion of resource group 'new-poc' failed as resources with identifiers 'Microsoft.MachineLearningServices/workspaces/azpoctest' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '2ba0xxxx-xxxx-xxxx-xxxx-xxxxxaxxxcf1'. Please check audit logs for more details. (Code: ResourceGroupDeletionBlocked) AI hub still has associated AI projects: /subscriptions/c70xxxx-xxxx-xxxx-xxxx-xxxxxx541307/resourceGroups/new-poc/providers/Microsoft.MachineLearningServices/workspaces/newtestpoc in Active state. Please hard delete it first (Code: ValidationError, Target: /subscriptions/c70xxxx-xxxx-xxxx-xxxx-xxxxxx541307/resourceGroups/new-poc/providers/Microsoft.MachineLearnin

There is nothing more to delete I almost deleted everything associated with , I even tried Resource explorer

User's image

User's image

User's image

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
866 questions
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,024 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,217 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,988 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
244 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 13,376 Reputation points
    2024-11-13T17:40:27.5833333+00:00

    Hello Ramanathan AR,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would want to delete a resource Group, that holds Azure AI Studio and no other resource.

    • Regarding your explanations, you will have to delete everything inside the resource group before deleting it, almost is not enough. Below is the step-by-step to meet your need:
    • Make sure that all resources within the resource group are deleted. Sometimes, resources might still be in a “Deleting” state, which can block the deletion of the resource group.
    • Since the error mentions AI projects, you need to manually delete any associated AI projects. You can do this through the Azure portal or using Azure CLI/PowerShell. Sometimes, using the Azure CLI or PowerShell can help force the deletion of stubborn resources. For example, these are the command you can try: az ml workspace delete --name <workspace-name> --resource-group <resource-group-name> --yes --no-wait replace <workspace-name> and <resource-group-name> with your actual workspace and resource group names. To list all resources in the resource group: az resource list --resource-group <resource-group-name> To delete a specific resource: az resource delete --ids <resource-id>To remove resource locks: az lock delete --name <lock-name> --resource-group <resource-group-name>
    • Make sure there are no dependencies or locks on the resources. You can check for resource locks in the Azure portal under the “Locks” section of the resource group.
    • Permission can affect, you but from your explanation it looks like you still have some object running in the resource group.
    • If you’ve tried all the above steps and still can’t delete the resource group, it might be best to contact Azure Support via your Azure Portal for assistance.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    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.