Edit

Share via


Quickstart: Enable Azure Change Tracking and Inventory by using the Azure portal

Applies to: ✔️ Windows VMs ✔️ Linux VMs ✔️ Windows Registry ✔️ Windows Files ✔️ Linux Files ✔️ Windows Software ✔️ File Content Changes

This article describes how you can enable Azure Change Tracking and Inventory for single and multiple Azure virtual machines (VMs) from the Azure portal.

Prerequisites

Enable Change Tracking and Inventory for single and multiple Azure VMs and Azure Arc-enabled VMs from the Azure portal

The following sections show how you can enable Change Tracking and Inventory on single and multiple Azure VMs and Azure Arc-enabled VMs from the Azure portal.

Enable Change Tracking and Inventory for single Azure VMs and Azure Arc-enabled VMs from the Azure portal

The next section provides detailed procedures on how you can enable Change Tracking on a single Azure VM and a single Azure Arc-enabled VM.

Enable Change Tracking and Inventory for a single Azure VM by using the portal

To enable Change Tracking and Inventory for a single Azure VM by using the portal, follow these steps:

  1. Sign in to the Azure portal, and go to Virtual machines.

    Screenshot that shows how to select a VM from the portal.

    Select the VM for which you want to enable Change Tracking.

  2. In the search bar, enter Change tracking. Select Change tracking to view the Change Tracking and Inventory pane.

    Screenshot that shows how to select the Change tracking option for a single VM from the portal.

  3. In the Stay up-to-date with all changes pane, select the Enable change tracking and inventory feature with AMA option, and select Enable.

    Deployment of Change Tracking and Inventory gets initiated with a notification in the upper-right corner of the pane.

    Screenshot that shows the notification of deployment.

Note

It usually takes up to two to three minutes to successfully onboard and enable the VMs. After you enable a VM for Change Tracking, you can make changes to the files, registries, or software for the specific VM.

Enable Change Tracking and Inventory for a single Azure Arc-enabled VM by using the portal

To enable Change Tracking and Inventory for a single Azure Arc-enabled VM by using the portal, follow these steps:

  1. Sign in to the Azure portal. Search for Machines-Azure Arc.

    Screenshot that shows how to select Azure Arc machines from the portal.

  2. Select the Azure Arc machine for which you want to enable Change Tracking.

  3. Under Operations, select Change tracking to view the Change Tracking and Inventory pane.

  4. In the Stay up-to-date with all changes pane, select the Enable change tracking and inventory feature with AMA option, and select Enable.

    Screenshot that shows how to select the Change Tracking option for a single Azure Arc VM from the portal.

    Deployment of Change Tracking and Inventory gets initiated with a notification in the upper-right corner of the pane.

Enable Change Tracking and Inventory for multiple VMs by using the Azure portal and the Azure CLI

This section provides detailed procedures on how you can enable Change Tracking and Inventory on multiple Azure VMs and Azure Arc-enabled VMs.

Enable Change Tracking and Inventory for multiple Azure VMs by using the portal

To enable Change Tracking and Inventory for multiple Azure VMs by using the portal, follow these steps:

  1. Sign in to the Azure portal, and go to Virtual machines.

    Screenshot that shows how to select a VM from the portal.

  2. Select the VMs to which you intend to enable Change Tracking, and select Services > Change Tracking.

    Screenshot that shows how to select multiple VMs from the portal.

    Note

    You can enable Change Tracking and Inventory on up to 250 VMs at a time.

  3. In the Enable Change Tracking pane, you can view the list of VMs that are enabled, the VMs that are ready to be enabled, and the VMs that you can't enable. You can use the filters to select the subscription, location, and resource groups. You can select a maximum of three resource groups.

    Screenshot that shows the status of multiple VMs.

  4. Select Enable to initiate the deployment. This step initiates the setup because, during enablement, the customer assigns a data collection rule (DCR). The DCR defines the logging rules that are required to begin data collection.

A notification appears in the upper-right corner of the pane that indicates the status of the Change Tracking and Inventory deployment.

Enable Change Tracking and Inventory for multiple Azure Arc-enabled VMs by using the CLI

To enable Change Tracking and Inventory on Azure Arc-enabled servers, ensure that the custom Change Tracking DCR is associated to the Azure Arc-enabled VMs.

To associate the DCR to the Azure Arc-enabled VMs, follow these steps:

  1. Create a Change Tracking DCR. You can also use an existing DCR that collects data for Change Tracking and Inventory. These rules are part of Azure Monitor, which helps you manage and monitor your systems.

  2. Sign in to the Azure portal, and go to Monitor. Under Settings, select Data Collection Rules.

    Screenshot that shows the menu option to access data collection rules from Azure Monitor.

  3. Select the DCR from the listing pane.

  4. On the Data Collection Rules pane, under Configuration, select Resources, and then select + Add.

    Screenshot that shows the menu option to select resources from the data collection rule pane.

    On the Select a scope pane, from Resource types, select Machines-Azure Arc, which is connected to the subscription. Then select Apply to associate the Change Tracking DCR to the Azure Arc-enabled machine.

    Screenshot that shows the selection of Azure Arc-enabled machines from the scope.

  5. Install the Change Tracking extension based on the operating system type for the Azure Arc-enabled VM by running the following commands:

    • Linux:

      To enable Change Tracking on a Linux machine by using the Azure Connected Machine extension, use Azure CLI syntax for the following command:

      az connectedmachine extension create  --name ChangeTracking-Linux  --publisher Microsoft.Azure.ChangeTrackingAndInventory --type-handler-version 2.20  --type ChangeTracking-Linux  --machine-name XYZ --resource-group XYZ-RG  --location X --enable-auto-upgrade
      
    • Windows:

      To enable Change Tracking on a Windows machine by using the Azure Connected Machine extension, use Azure CLI syntax for the following command:

      az connectedmachine extension create  --name ChangeTracking-Windows  --publisher Microsoft.Azure.ChangeTrackingAndInventory --type-handler-version 2.20  --type ChangeTracking-Windows  --machine-name XYZ --resource-group XYZ-RG  --location X --enable-auto-upgrade