Feature request: rtk wrapper for az network (PE connections, app-gateway show)
#1.593 geöffnet am 29. Apr. 2026
Repository-Metriken
- Stars
- (48.085 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)
Beschreibung
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: collapsehttpListeners[]/requestRoutingRules[]/redirectConfigurations[]to one-line summaries; dropetagandprovisioningState: 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: collapseprivateEndpointConnections[]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.