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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sarath Gangarapu 0 Reputation points
    2025-12-05T16:53:21.7033333+00:00

    The provided CLI/Powershell command didnt work as the resource group is already deleted. Following is the error message:

    PS /home/sarath> Remove-AzMLWorkspaceOnlineDeployment -EndpointName sg-project-0412-oewau -Name text-embedding-ada-002-d -ResourceGroupName rg-sg-project-0412 -WorkspaceName sg-project-0412

    Remove-AzMLWorkspaceOnlineDeployment_Delete: Resource group 'rg-sg-project-0412' could not be found.

    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.