devops-network-calculator-for-azure
БесплатноЗапускает вложенные скриптыНе проверенAzure network planning, CIDR calculation, subnet sizing, and best-practices tool. Use this skill whenever the user asks about subnet sizing, CIDR planning…
от julianobarbosa★ 18 звёзд на GitHubОб этом скилле
Azure Network Calculator
Offline Azure network planning tool. Calculates CIDRs, detects overlaps, analyzes VNet utilization, plans AKS networking, and generates Terraform-ready output. Zero external dependencies — uses Python stdlib only.
Quick Start
# What CIDR do I need for 500 hosts?
python3 scripts/network-calc.py calculate --from-hosts 500
# Analyze current VNet
python3 scripts/network-calc.py analyze --from-tfvars terraform/terraform.tfvars
# Validate for overlaps (pre-commit compatible)
python3 scripts/network-calc.py validate --from-tfvars terraform/terraform.tfvars
# Find where to place a new subnet
python3 scripts/network-calc.py first-fit --vnet 10.50.0.0/20 \
--subnets "10.50.0.0/22,10.50.4.0/22,10.50.8.0/26,10.50.9.0/24" --hosts 500
Commands
| Command | Purpose | Reference |
|---|---|---|
calculate |
CIDR info, host sizing, subnet splitting | CIDR Guide |
analyze |
VNet utilization, gap analysis | CIDR Guide |
validate |
Overlap detection, Azure constraint checks | Azure Constraints |
first-fit |
Find optimal placement for new subnet | CIDR Guide |
plan-multi |
Multi-environment VNet allocation | Segmentation |
Project Context
The reference VNet: 10.50.0.0/20 (4,096 IPs, 57.8% utilized)
| Subnet | CIDR | Usable |
|---|---|---|
| GatewaySubnet | 10.50.0.0/22 | 1,019 |
| PublicSubnet | 10.50.4.0/22 | 1,019 |
| AzureBastionSubnet | 10.50.8.0/26 | 59 |
| PrivateSubnet | 10.50.9.0/24 | 251 |
| Available gaps | 1,708 |
Key files: terraform/terraform.tfvars, terraform/networking.tf, terraform/nsg.tf
Azure Quick Reference
- 5 reserved IPs per subnet (.0, .1, .2, .3, broadcast)
- Bastion: min /26 | Gateway: min /27 | Firewall: min /26
- Max subnets/VNet: 3,000 | Max NSG rules: 1,000
- Full reference: Azure Constraints
Reference Guides
| Guide | When to Read |
|---|---|
| CIDR Calculation Guide | Subnet sizing, gap analysis, overlap detection |
| AKS Networking Guide | CNI comparison, pod/service CIDR, node sizing |
| Segmentation Patterns | Design patterns, anti-patterns, decision matrices |
| Azure Constraints | Hard limits, naming rules, reserved addresses |
Templates
| Template | Purpose |
|---|---|
| VNet Layout | Terraform variable blocks for VNet config |
| AKS NSG Rules | NSG rules for AKS workloads |
| Multi-Env Plan | Multi-environment planning output |
Execution
Follow the instructions in ./workflow.md.
Gotchas
- Azure reserves 5 IPs per subnet, not 2: A standard /29 gives you 3 usable IPs, not 6. Sizing AKS node pools with /29 starves scaling and surfaces as
InsufficientFreeAddressesInSubnetmid-scale. - GatewaySubnet name is literal: Azure refuses VPN Gateway attach unless the subnet is named exactly
GatewaySubnet. Same forAzureBastionSubnetandAzureFirewallSubnet. Typo breaks at apply, not plan. - AKS Azure CNI eats one subnet IP per pod: A 30-node cluster at 30 pods/node needs 900+ subnet IPs, not 30. Plan
--max-podsfirst; switching CNI later requires cluster rebuild. - first-fit picks lowest gap, not smartest: Places a /24 in a /22 gap and leaves fragmented unusable /25 leftovers. For long-lived VNets, use
plan-multiand reserve growth gaps explicitly. - CIDR overlap with on-prem fails silently until peering: A 10.0.0.0/16 VNet looks fine alone, but ExpressRoute peering black-holes routes overlapping corporate ranges. Validate against full corporate IPAM.
- NSG rule limit is 1,000 total, not per-direction: Inbound + outbound + default + Azure-auto rules share the budget. Leave headroom or hit a hard wall during scale.
Установить devops-network-calculator-for-azure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл devops-network-calculator-for-azure?
Azure network planning, CIDR calculation, subnet sizing, and best-practices tool. Use this skill whenever the user asks about subnet sizing, CIDR planning, AKS networking, NSG rules, network segmentation, IP address management, VNet planning, address space analysis, overlap detection, or any Azure networking topic. Also trigger when the user mentions network calculator, net-calc, calculate hosts, plan subnets, or asks about Azure network best practices, even if they don't explicitly say 'network calculator'.
Как установить скилл devops-network-calculator-for-azure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-network-calculator-for-azure запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic