Change Tracking & Inventory Management On Linux VMs

Hamid Sadeghpour Saleh 0 Reputation points
2024-10-24T14:27:20.9233333+00:00

Hey everyone,

Change Tracking & Inventory Management through AMA agent works very well with Windows - However, on Linux machines (For instance in this case Ubuntu Server), once the extension enabled, it does not collect anything for Changes or Inventory of installed applications - Any solutions or workaround around that?

Btw, the Heartbeat works very well from AMA agent in Linux machine - But the only thing is it is not getting any Change Tracking or Inventory logs.

Thanks all,

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,645 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 6,180 Reputation points Microsoft External Staff Moderator
    2024-11-08T21:53:44.9133333+00:00

    Hi Hamid Sadeghpour Saleh

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Check that the Azure Monitor Agent is installed on your Linux VM. In the Azure portal, go to Extensions + applications for your VM and make sure it says "Provisioning succeeded" for AzureMonitorLinuxAgent.

    Ensure you're using version 2.20 or higher of the Change Tracking extension for Linux. Upgrade it with this command:

    az vm extension set -n {ExtensionName} --publisher Microsoft.Azure.ChangeTrackingAndInventory --ids {VirtualMachineResourceId}

    Make sure you have a Data Collection Rule (DCR) for Change Tracking and Inventory, and that it is applied to your VM to collect data.

    Create a User-Assigned Managed Identity with Contributor permissions on your VMs. This lets the AMA send data to the Log Analytics Workspace.

    Assign this identity to your VM either manually or through a policy to give it the required permissions.

    Make sure your VM can connect to Azure services. You can check this by running network tests or pinging Azure endpoints.

    For reference, please review this documentation: -
    https://learn.microsoft.com/en-us/azure/automation/change-tracking/overview-monitoring-agent?tabs=win-az-vm
    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-troubleshoot-linux-vm
    https://learn.microsoft.com/en-us/azure/automation/change-tracking/manage-change-tracking-monitoring-agent?tabs=windows%2Csa-mi#code-try-0

    If you have any further queries, do let us know.


    If the answer is helpful, please click "Accept Answer" and "Upvote it".

    0 comments No comments

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.