Skip to content

fix: recognize zone-aligned AKS node pools - #866

Draft
Behzad Motaghi (Motaghi) wants to merge 1 commit into
Azure:mainfrom
Motaghi:fix/aprl-698
Draft

Behzad Motaghi (Motaghi) wants to merge 1 commit into
Azure:mainfrom
Motaghi:fix/aprl-698

Conversation

@Motaghi

Copy link
Copy Markdown

Overview/Summary

Recommendation 4f63619f-5001-439c-bacb-8de891287727 reports every node pool pinned to a single zone, so a zone-aligned cluster (for example three system and three user pools, each pinned to a different zone) gets six findings even though its pools cover three zones between them. This change collects the distinct zones of all pools of the same mode in each cluster before deciding. A pool is still reported when it has no zones, or when every pool of its mode sits in the same single zone.

The grouping is by mode only, so two user pools that run different workloads in different single zones are no longer reported. I went with mode because the issue describes aligned system and user pools. If you'd rather have a stricter check, grouping by VM size as well is a one-line change.

The KQL comment check and YAML validation pass locally. I haven't run this in Azure Resource Graph yet, so the screenshot is still missing and the PR stays in draft until it's added. If you or the issue reporter can run it against a zone-aligned cluster, that would settle it.

Related Issues/Work Items

Fixes #698

Breaking Changes

  1. None. Result columns and node pool resource IDs are unchanged.

As part of this pull request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Performed testing and provided evidence (e.g. screenshot of output) for any changes associated to ARG queries
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

I used gpt-6.1-sol via Codex, run from T3 Code, to write the patch, and Claude Opus 5.5 reviewed the change independently. I've read and verified the diff myself.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Bug 🐞 Something isn't working label Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug 🐞 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🪲 Bug Report - AKS APRL query generating false positives

1 participant