How to delete a VM from Log Analytics

WR 121 Reputation points
2020-10-15T14:55:43.41+00:00

I have an on-premise Windows VM that crashed and was delete before removing the Microsoft Monitoring Agent from it so now it is still listed in Log Analytics, How can delete it from there?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,460 questions
{count} vote

6 answers

Sort by: Most helpful
  1. WR 121 Reputation points
    2020-11-02T20:58:38.937+00:00

    20 days after the problem the machine is still listed there, it needs manual deletion. No idea how to do it. The tool doesn't have a way to handle this.

    36962-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. AnnaG 161 Reputation points
    2021-07-01T09:41:14.437+00:00

    This is one reason why you need to be very careful with Log Analytics. The data and you will end up paying for it. The steps to purge are not entirely clear for good reason. You asked a perfectly valid question and got no response. I am focusing on this area now in a big way which is why I am here and I can see the question was posed back in 2020. Microsoft should have responded to ne honest. It was not a complicated question.

    1 person found this answer helpful.
    0 comments No comments

  3. bharathn-msft 5,101 Reputation points Microsoft Employee
    2020-10-28T05:34:02.727+00:00

    Thank you @WR for your query.

    Sharing the information for broader community usage.

    The view in the Log Analytics Workspace --> Agents Management --> Machines , gets refreshed every 24 Hrs so the counter changes and the number of machines represents accordingly.

    35652-la.png

    Hope this information helps, please feel free to revert back if you have any further queries. Thank you.

    0 comments No comments

  4. Volker Kühn 6 Reputation points
    2022-03-08T08:41:53.847+00:00

    Having the same issue here. A Connections Section with a disconnect buttom would be greatly appreciated

    0 comments No comments

  5. Mash 0 Reputation points
    2023-02-02T09:31:04.8566667+00:00

    The question which does not seem to have been answered unless I misread it once you have uninstalled the Monitoring Agent, the VM is still listed in workspace showing disconnected.

    How can this disconnected VM be deleted from workspace?

    The reason I need to do this is running script for hybrid worker on this VM and it fails saying it's registered to workspace which it's now disconnected. The script is trying register it with another workspace in same subscription and failing because it's registered with other workspace.


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.