AzureMonitorAgent: add tested Ubuntu 26.04 support - #2201
Open
karmafeast wants to merge 1 commit into
Open
Conversation
Add Ubuntu 26.04 to the x86_64 and aarch64 support gates and cover production detection, installer admission, and troubleshooter admission. Extend CI through Python 3.14 and avoid mutating the shared distro list while formatting unsupported-version guidance. Based on Azure#2199 by @kamilon, which supplied the allowlist change and end-to-end validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0652e405-69e7-4c45-bf9c-e81e5026013b
This was referenced Jul 31, 2026
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
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.
Summary
Closes #2200. Related to the observed installation failure in #2173.
Add Ubuntu 26.04 to the Azure Monitor Agent supported-distribution maps for x86_64 and aarch64, with regression coverage for the production installer gate, troubleshooting gate, distro detection, and Python 3.14 runtime.
Attribution
This change is based on and credits #2199 by @kamilon for the original Ubuntu 26.04 allowlist change and public x86_64/aarch64 end-to-end validation.
This alternative adds repository-level coverage so the support declaration is protected by CI. The test changes can also be reviewed or reused independently if the project prefers #2199 as the merge vehicle.
Changes
26.04tosupported_dists_x86_64andsupported_dists_aarch64.is_vm_supported_for_extensiongate accepts Ubuntu 26.04 on both architectures.check_vm_supportedgate accepts Ubuntu 26.04 on both architectures.VERSION_ID="26.04".format_alternate_versionsfrom mutating the shared support list while formatting an unsupported-version message.Why the mutation fix is included
The new support-map assertion exposed that
format_alternate_versionsusedpop()on the shared list. Running an unsupported-version check therefore removed the newest supported version for the remainder of the process. Formatting now uses a slice and leaves the support declaration unchanged.Validation
The complete 127-test AzureMonitorAgent suite passes locally on:
All six GitHub Actions jobs pass in the public fork for Python 3.9 through 3.14.
The existing #2199 provides real-VM ingestion validation for Ubuntu 26.04 on both x86_64 and aarch64; this PR adds the missing repository regression and runtime coverage.