I am unable to delete a machine learning online deployment

Sarath Gangarapu 0 Reputation points
2025-12-05T16:31:27.5066667+00:00

HI,

I am unable to delete a resource which is part of an already deleted resource group. I dont know why it is still appearing part of the 'All resources' list and I feel, somehow, this has become an orphan resource (without a parent resource group). Could you please help to delete this from the list.

When I try to delete the resource, it throws 404 error. Following is a log generated:

{ "shellProps": { "sessionId": "2153cae7086a4becbe5aa34744b6ca06", "extName": "HubsExtension", "contentName": "ResourceMenuBlade", "resourceId": "/subscriptions/ed63d5b8-c157-49db-b829-fedaefec7833/resourceGroups/rg-sg-project-0412/providers/Microsoft.MachineLearningServices/workspaces/sg-project-0412/onlineEndpoints/sg-project-0412-oewau/deployments/text-embedding-ada-002-d" }, "error": { "message": "Resource not found", "code": 404, "details": { "htmlTemplate": "The resource was not found, it may have been deleted. If this was launched from a pinned tile on the dashboard, it should be removed.<br /><br />Resource ID: /subscriptions/ed63d5b8-c157-49db-b829-fedaefec7833/resourceGroups/rg-sg-project-0412/providers/Microsoft.MachineLearningServices/workspaces/sg-project-0412/onlineEndpoints/sg-project-0412-oewau/deployments/text-embedding-ada-002-d<br /><br />Status Code: 404<br /><br />Status Message: Resource group 'rg-sg-project-0412' could not be found." } }}

Thanks,

Azure Machine Learning
{count} votes

1 answer

Sort by: Most helpful
  1. Aryan Parashar 3,535 Reputation points Microsoft External Staff Moderator
    2025-12-12T08:07:27.0333333+00:00

    Hi Sarath Gangarapu,

    I understand how frustrating it can be to see a resource persist in the Azure Portal even after its parent resource group has been deleted.

    You’re running into Azure portal artifact issue: sometimes resources remain visible in the “All resources” blade even after their parent resource group has been deleted. These are not truly “live” resources; they’re orphaned entries in the portal view.

    Status Message: Resource group 'rg-sg-project-0412' could not be found*.*

    This suggests the entire resource group (rg-sg-project-0412) has been deleted. Run:

    az resource list --name <resource-name>
    

    If the resource group is gone, this should return nothing.

    If the resource still shows up in CLI: Run:

    az resource delete --ids <resource-id>
    

    If you get the same 404, it confirms the resource is already gone. You don’t need to worry about billing or functionality — if the resource group is deleted, the resources inside are gone too. What you’re seeing is just a UI artifact. The safest way to confirm is with the CLI: if az resource list shows nothing, the resource is truly deleted.

    Please accept this as an answer. User's image Thank you for reaching out to The Microsoft Q&A Portal.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.