|
1 | 1 | ---
|
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. |
4 | 4 | services: automation
|
5 | 5 | ms.subservice: change-inventory-management
|
6 | 6 | ms.topic: conceptual
|
7 |
| -ms.date: 05/26/2021 |
| 7 | +ms.date: 10/20/2021 |
8 | 8 | ---
|
9 | 9 |
|
10 |
| -# Remove VMs from Change Tracking and Inventory |
| 10 | +# Remove machines from Change Tracking and Inventory |
11 | 11 |
|
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. |
13 | 13 |
|
14 | 14 | ## Sign into the Azure portal
|
15 | 15 |
|
16 | 16 | Sign in to the [Azure portal](https://portal.azure.com).
|
17 | 17 |
|
18 |
| -## To remove your VMs |
| 18 | +## To remove your machines |
19 | 19 |
|
20 | 20 | 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).
|
21 | 21 |
|
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. |
23 | 23 |
|
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 | + --- |
27 | 40 |
|
28 | 41 | 3. In the Azure portal, navigate to **Log Analytics workspaces**. Select your workspace from the list.
|
29 | 42 |
|
|
0 commit comments