← Back to Pull requests

feat(acns): add retinaNetworkFlowLogs to azure cli #8645

Closed
unknown closed this pull request without merging on May 06, 2025 08:11 UTC
View on GitHub
unknown unknown commented on Apr 09, 2025 13:45 UTC
Author

---
Adds commands to enable PFL/retina flow logs to commands: aks cluster create/update. These commands have some requirements:
1. Monitoring Addon enabled (--enable-addons -a monitoring)
2. Monitoring Addon high log scale mode (--enable-high-log-scale-mode)
3. ACNS enabled (--enable-acns)

One scenario to consider is that if a cluster already has monitoring addon enabled, and they want to enable PFL, they would have to disable monitoring addon and re-enable monitoring addon with --enable-high-log-scale-mode because that will create the DCR with streams that include Microsoft-RetinaNetworkFlowLogs stream. This stream is required to ingest flow logs

Related command


az aks cluster create --enable-retina-flow-logs --enable-acns --enable-addons -a monitoring --enable-high-log-scale-mode
az aks cluster update --enable-retina-flow-logs --enable-acns --enable-addons -a monitoring --enable-high-log-scale-mode
az aks cluster update --disable-retina-flow-logs

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)

  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)

  • My extension version conforms to the Extension version schema
  • For new extensions:

  • My extension description/summary conforms to the Extension Summary Guidelines.
  • 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.json automatically.
    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.

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: vakalapa Review duration: 38546m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 247 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8645"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%