Azure / Azure/azure-linux-extensions

Azure Monitor Agent does not support Ubuntu 24.04

Open
#1,935 18 comments 15 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

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`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the installation on a vanilla Ubuntu 24.04 image and inspect shim.sh and agent.py, including the reported Python import failure and operating-system check. Done means the Azure Monitor Agent installs successfully on Ubuntu 24.04 without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, linux, python, ubuntu
Domain
cloud, devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.