rtk-ai/rtk

Feature request: rtk wrapper for az network (PE connections, app-gateway show)

Open

#1,593 opened on Apr 29, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clieffort-mediumenhancementhelp wantedpriority:medium

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (Avg merge 11d 1h) (45 merged PRs in 30d)

Description

Real-world numbers from 30 days of Claude Code transcripts (686 sessions scanned, paired Bash tool_use → tool_result by tool_use_id):

Subcommand Calls Est. tokens Avg/call
az network application-gateway 33 11,158 338
az network private-endpoint-connection 67 4,449 66
az network private-link-service 29 1,794 61
az network watcher 32 1,785 55
(other az network) 87 6,913 79
Total az network 248 26,099 105

Top bloat: az network application-gateway show. AGW JSON includes the full frontendPorts[], httpListeners[], requestRoutingRules[], urlPathMaps[], redirectConfigurations[] — for an AGW with 30+ listeners (typical multi-tenant setups), ~5K+ tokens per call.

Lower-hanging: az network private-endpoint-connection list/show — only 66 tokens/call but 67 calls, frequently used in CI debugging loops. Most of the output is connection-state metadata; the only fields that ever matter for diagnostic loops are name, privateLinkServiceConnectionState.status, privateEndpoint.id.

Suggested wrapper behavior:

  • For az network application-gateway show: collapse httpListeners[] / requestRoutingRules[] / redirectConfigurations[] to one-line summaries; drop etag and provisioningState: Succeeded
  • For az network private-endpoint-connection: emit a compact 3-column form (name | status | privateEndpointId) by default
  • For az network private-link-service show: collapse privateEndpointConnections[] similarly

A generic ARM JSON pruner (filed separately as #1590) would cover ~30% of these savings as a fallback. Happy to defer this issue until that lands.

Methodology note: numbers come from scanning ~/.claude/projects/**/*.jsonl transcripts, pairing Bash tool_use blocks with their tool_result by tool_use_id, stripping any rtk prefix to count like-for-like, and estimating tokens at 4 chars/token.

Contributor guide