azure-linux-extensions: Azure Monitor Agent does not support Ubuntu 24.04

When installed on a vanilla Ubuntu 24.04 image, the deployment fails with the below error:

[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./shim.sh -install [stdout] Python 3.12.3 Importing utils failed with error: No module named 'imp' Unable to initialize waagent log because of exception name 'waagent' is not defined Info: Azure Monitoring Agent for Linux started to handle. Error: Unsupported operating system: ubuntu 24.04 Error: Unsupported operating system: ubuntu 24.04 [stderr] /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 import crypt

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 14
  • Comments: 15

Most upvoted comments

With the nearing Log Analytics Agent deprecation, more than never making AMA support stable versions of Linux should be priority. Ubuntu 24.04 LTS was officially released almost 4 months ago. Can we get a date here?

Just to move the conversation forward, looks like the September release of the AMA for Linux (1.33.1) added support for Ubuntu 24.04 LTS.

Hi Team, any update on this issue, azure supports creating VMs with the Ubuntu 24.04 image but has not way of installing the monitoring agent, I would be nice if we could get at least a temporary fix for this issue quickly

I’ve added a pull request to fix this. https://github.com/Azure/azure-linux-extensions/pull/1964 The python changes caused all the problems.