Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- An Azure subscription. If you don't have one yet, you can activate your MSDN subscriber benefits or sign up for a free account.
- A VM configured in the specified region.
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:
Sign in to the Azure portal, and go to Virtual machines.
Select the VM for which you want to enable Change Tracking.
In the search bar, enter Change tracking. Select Change tracking to view the Change Tracking and Inventory pane.
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.
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:
Sign in to the Azure portal. Search for Machines-Azure Arc.
Select the Azure Arc machine for which you want to enable Change Tracking.
Under Operations, select Change tracking to view the Change Tracking and Inventory pane.
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.
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:
Sign in to the Azure portal, and go to Virtual machines.
Select the VMs to which you intend to enable Change Tracking, and select Services > Change Tracking.
Note
You can enable Change Tracking and Inventory on up to 250 VMs at a time.
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.
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:
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.
Sign in to the Azure portal, and go to Monitor. Under Settings, select Data Collection Rules.
Select the DCR from the listing pane.
On the Data Collection Rules pane, under Configuration, select Resources, and then select + Add.
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.
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-upgradeWindows:
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
Related content
- To create a DCR, see Create data collection rules.
- To track changes on both Windows and Linux, see Support matrix and regions.