[appnet-preview] Auto-detect --member-location from member cluster on member join #10152
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 233 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10152"
general
weight: 0.35
jack4it
<!-- act-bot:pr-validation:start -->
🤖 PR Validation — ️✔️ All clear
| Breaking Changes |
| :--: |
| ️✔️ None |
<!-- act-bot:section title="Azure CLI Extensions Breaking Change Test" category="breaking_change" label="Breaking Changes" status="Succeeded" summary="None" -->
<!-- act-bot:section-end -->
<!-- act-bot:pr-validation:end -->
Summary
Make
--member-locationoptional onaz appnet member join. When omitted, it now defaults to the location of the member cluster referenced by--member-resource-id, removing a redundant region input that had to be kept in sync with the cluster by hand. An explicit--member-locationis still honored; a warning is logged if it differs from the cluster's region.Changes
custom.py–MemberJoinoverrides_build_arguments_schemato make--member-locationoptional and strip the resource-group location auto-fill (so an omitted value reaches the detection logic instead of silently defaulting to the RG location).pre_operationsresolves the location from the cluster via a generic ARM GET on--member-resource-id.pre_operationsis preserved.tests/latest/test_member_location.py) covering default / explicit-mismatch-warning / missing-both-raises / invalid-resource-id paths. No live ARM calls.1.0.0b2->1.0.0b3andHISTORY.rstentry.Notes
_join.pyis intentionally not edited; the behavior change is applied through theMemberJoincommand subclass incustom.py.--member-resource-idremains optional at the CLI layer, but if both--member-locationand a resolvable--member-resource-idare absent, the command now fails fast withRequiredArgumentMissingErrorrather than silently using the resource group's location.Drafted with GitHub Copilot CLI.