AzureMonitorAgent: support Azure Linux 4 - #2197
Merged
Merged
Conversation
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
hestolz
reviewed
Jul 15, 2026
hestolz
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Azure Linux 4 (x86_64 + aarch64) support:
Validated end-to-end on a real Azure Linux 4.0 VM (AMA 1.42.0)