Skip to content

Commit 78c96ed

Browse files
committed
Updated Change Tracking remove VM article
1 parent fcb37d5 commit 78c96ed

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

articles/automation/change-tracking/remove-vms-from-change-tracking.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
11
---
2-
title: Remove VMs from Azure Automation Change Tracking and Inventory
3-
description: This article tells how to remove VMs from Change Tracking and Inventory.
2+
title: Remove machines from Azure Automation Change Tracking and Inventory
3+
description: This article tells how to remove Azure and non-Azure machines from Change Tracking and Inventory.
44
services: automation
55
ms.subservice: change-inventory-management
66
ms.topic: conceptual
7-
ms.date: 05/26/2021
7+
ms.date: 10/20/2021
88
---
99

10-
# Remove VMs from Change Tracking and Inventory
10+
# Remove machines from Change Tracking and Inventory
1111

12-
When you're finished tracking changes on the VMs in your environment, you can stop managing them with the [Change Tracking and Inventory](overview.md) feature. To stop managing them, you will edit the saved search query `MicrosoftDefaultComputerGroup` in your Log Analytics workspace that is linked to your Automation account.
12+
When you're finished tracking changes on your Azure or non-Azure machines in your environment, you can stop managing them with the [Change Tracking and Inventory](overview.md) feature. To stop managing them, you will edit the saved search query `MicrosoftDefaultComputerGroup` in your Log Analytics workspace that is linked to your Automation account.
1313

1414
## Sign into the Azure portal
1515

1616
Sign in to the [Azure portal](https://portal.azure.com).
1717

18-
## To remove your VMs
18+
## To remove your machines
1919

2020
1. In the Azure portal, launch **Cloud Shell** from the top navigation of the Azure portal. If you are unfamiliar with Azure Cloud Shell, see [Overview of Azure Cloud Shell](../../cloud-shell/overview.md).
2121

22-
2. Use the following command to identify the UUID of a machine that you want to remove from management.
22+
2. Use the following method to identify the UUID of an Azure virtual machine or non-Azure machine that you want to remove from management.
2323

24-
```azurecli
25-
az vm show -g MyResourceGroup -n MyVm -d
26-
```
24+
# [Azure VM](#tab/azure-vm)
25+
26+
```azurecli
27+
az vm show -g MyResourceGroup -n MyVm -d
28+
```
29+
30+
# [Non-Azure machine](#tab/non-azure-machine)
31+
32+
```kusto
33+
Heartbeat
34+
| where TimeGenerated > ago(30d)
35+
| where ResourceType == "machines" and (ComputerEnvironment == "Non-Azure")
36+
| summarize by Computer, VMUUID
37+
```
38+
39+
---
2740

2841
3. In the Azure portal, navigate to **Log Analytics workspaces**. Select your workspace from the list.
2942

0 commit comments

Comments
 (0)