Cannot delete a resource after deletion of a dependency

Enrico Stauss 20 Reputation points
2024-07-08T15:25:23.65+00:00

Hi,

I tried to delete an AI studio that I created for a playground scenario. Unfortunately it seems as if there is an order of deletion that I should have followed but didn't. Now I cannot delete the studio itself as it still has an active deployment, but when I navigate to the deployments page, the deployment does not show up for deletion.

How can I delete the deployment that I cannot see?

Thanks and kind regards!

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,976 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,914 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 26,656 Reputation points
    2024-07-08T19:42:03.2233333+00:00

    Try with the Azure CLI to list all resources in the resource group to identify the hidden deployment.

    
    az resource list --resource-group <your-resource-group-name>
    
    

    Once you identify the hidden deployment, you can attempt to delete it using the Azure CLI:

    
    az ml online-deployment delete --name <deployment-name> --resource-group <your-resource-group-name> --workspace-name <your-workspace-name>
    
    

    Or you can use Azure Resource Graph Explorer to query for the deployment:

    
    resources
    
    | where type == "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments"
    
    | where resourceGroup == "<your-resource-group-name>"
    
    
    

    If the above steps do not work, consider opening a support ticket with Azure. They can assist in resolving resource deletion issues.

    More links :

    https://learn.microsoft.com/en-us/answers/questions/1791720/unable-to-delete-the-resource-group-and-recovery-s

    https://learn.microsoft.com/en-us/answers/questions/1529205/delete-resource-group

    https://stackoverflow.com/questions/39607066/remove-azurermresourcegroup-powershell-cmdlet-appears-stuck

    https://learn.microsoft.com/en-us/answers/questions/1521878/cannot-remove-resource-group

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.