Skip to content

AzureMonitorAgent: support Azure Linux 4 - #2197

Merged
thperapp merged 1 commit into
masterfrom
users/thperapp/ama-azl4-support-and-rsyslog
Jul 15, 2026
Merged

AzureMonitorAgent: support Azure Linux 4#2197
thperapp merged 1 commit into
masterfrom
users/thperapp/ama-azl4-support-and-rsyslog

Conversation

@thperapp

Copy link
Copy Markdown
Contributor

Adds Azure Linux 4 (x86_64 + aarch64) support:

  • supported_distros.py: add '4' to the 'azurelinux' key in supported_dists_x86_64 and supported_dists_aarch64 so the extension no longer rejects Azure Linux 4 with 'Unsupported operating system'.
  • agent.py install(): Azure Linux 4 ships journald-only with no rsyslog pre-installed, so AMA's Syslog collection produces no data until rsyslog is present. Mirror the existing Debian 12/13 and Amazon Linux 2023 handling by installing rsyslog via dnf when missing.

Validated end-to-end on a real Azure Linux 4.0 VM (AMA 1.42.0)

Adds Azure Linux 4 (x86_64 + aarch64) support:
- supported_distros.py: add '4' to the 'azurelinux' key in
  supported_dists_x86_64 and supported_dists_aarch64 so the extension no
  longer rejects Azure Linux 4 with 'Unsupported operating system'.
- agent.py install(): Azure Linux 4 ships journald-only with no rsyslog
  pre-installed, so AMA's Syslog collection produces no data until rsyslog
  is present. Mirror the existing Debian 12/13 and Amazon Linux 2023
  handling by installing rsyslog via dnf when missing.

Validated end-to-end on a real Azure Linux 4.0 VM (AMA 1.42.0): uninstall
AMA + rsyslog, then reinstall -> rsyslog is auto-installed by install() and
Heartbeat/Syslog/Perf/InsightsMetrics/*_CL all flow to the LAW.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dc6e1b08-7800-4f61-826c-89e0a7b928d9
@thperapp
thperapp requested a review from a team as a code owner July 15, 2026 19:16
Comment thread AzureMonitorAgent/agent.py
@thperapp
thperapp merged commit 4b57f69 into master Jul 15, 2026
5 checks passed
@thperapp
thperapp deleted the users/thperapp/ama-azl4-support-and-rsyslog branch July 15, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants