[AKS] az aks create/update: Onboard Container Insights via azureMonitorProfile and deprecate the monitoring addon - #10180
Draft
ChFlick wants to merge 9 commits into
Conversation
added 8 commits
August 4, 2026 17:06
…ontainerInsights; deprecate monitoring addon
…ate (fix no-data on first-time enable)
…guard reads containerInsights, defensive update DCR postprocessing
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
FumingZhang,
yanzhudd and
yonzhan
August 4, 2026 16:13
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
…ngth_too_long linter rule
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
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.
🤖 PR Validation —⚠️ Review suggested
Summary
Container Insights onboarding still went through the legacy
omsagentaddon profile, even whenusing
--enable-azure-monitor-logs. This switches that flag over toazureMonitorProfile.containerInsights, adds controls that only exist on that profile, and startsdeprecating the addon path.
az aks enable-addons -a monitoringkeeps working as before.What changed
--enable-azure-monitor-logs/--disable-azure-monitor-logsnow read and writeazureMonitorProfile.containerInsights. The CLI no longer authors anomsagentaddon entry.--enable/--disable-container-network-logssetcontainerInsights.containerNetworkLogsinstead of the
enableRetinaNetworkFlagsaddon config key.--enable-syslog,--data-collection-settings,--enable-high-log-scale-mode,--ampls-resource-idand--workspace-resource-idbehave as before.--syslog-port,--enable-prometheus-metrics-scraping/--disable-prometheus-metrics-scraping.--enable-msi-auth-for-monitoringis rejected with--enable-azure-monitor-logs(that path ismanaged-identity only), and now prints a deprecation warning on
enable-addons -a monitoring.monitoringaddon prints a notice pointing at--enable-azure-monitor-logs.Testing
Tested end to end on live clusters:
cluster originally onboarded via the addon.
azureMonitorProfile.containerInsightsand an emptyaddonProfiles, and that the agent deploys and logs reach the workspace.enable-addons -a monitoring: same streams,destinations and settings. DCRA created on both, removed on disable.
container network logs,
--syslog-port(verified on the agent) and the scraping toggles.Related command
az aks create/az aks update(--enable/disable-azure-monitor-logs,--syslog-port,--enable/disable-prometheus-metrics-scraping,--enable/disable-container-network-logs),az aks enable-addons -a monitoringGeneral Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.