Unable to access VM Insight due to using Ubuntu 20.04 LTS, are there alternatives to monitoring my VM?

StevieTii 26 Reputation points
2022-01-10T19:21:09.38+00:00

Hello! I am looking to monitor my VM for its health and just overall metrics but unfortunately the VM I am using is Ubuntu 20.04 LTS which is currently not supported yet (I imagine it to be pretty soon since 18.04 LTS is supported so hopefully 20.04 LTS is on the horizon.

When I try to upgrade Azure Monitoring when prompted to at the portal, it always fails with conflict at 'VM-name/GuestHealthLinuxAgent. This is the following Status Message.

{
"status": "Failed",
"error": {
"code": "VMExtensionHandlerNonTransientError",
"message": "The handler for VM extension type 'Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent' has reported terminal failure for VM extension 'GuestHealthLinuxAgent' with error message: '[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent-1.0.54/./scripts/install.py\n[stdout]\n\n\n[stderr]\nRunning scope as unit: install_5b18f9f9-78a7-4ce4-ba6d-e071f503e36f.scope\n/usr/bin/env: ‘python’: No such file or directory\n'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'"
}
}

That being said, are there any alternatives in monitoring my VM other than looking in Overview -> Monitoring? I would love to have more ways to monitor the health of my VM!

I am currently on Linux 5.11.0-1023-azure, Ubuntu 20.04 LTS. Any help would be greatly appreciated! If you require more information, please do let me know.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,812 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 11,801 Reputation points
    2022-01-13T13:57:02.857+00:00

    @StevieTii - Thanks for reaching out.

    I believe 20.04 is supported by Azure Monitor Agent.

    You can also setup Data Collection Rules for Azure Monitor Agent.

    To apply a DCR to a virtual machine, you create an association for the virtual machine. A virtual machine may have an association to multiple DCRs, and a DCR may have multiple virtual machines associated to it. This allows you to define a set of DCRs, each matching a particular requirement, and apply them to only the virtual machines where they apply.

    If you wish to send data to Log Analytics, you must create the data collection rule in the same region where your Log Analytics workspace resides. The rule can be associated to machines in other supported region(s).

    in the Monitor menu in the Azure portal, select Data Collection Rules from the Settings section. Click Create to create a new Data Collection Rule and assignment.

    164775-image.png

    And follow the next steps from this document here - data-collection-rule-azure-monitor-agent

    Hope that helps.

    -------------------------------------------------------------------------------

    If the above response helped, please feel free to "Accept as Answer" and "upvote" the same so it can be beneficial to the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful