All scripts
cloud
Expert
3–12 min
Azure VNET Peering Orchestrator
Azure SDK: VNET peering lifecycle, NSG rule audit (shadow/overpermissive), ExpressRoute circuit health, BGP route table pull and UDR consistency checks across a subscription.
Azure (SDK)
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- azure-mgmt SDK
- VNET peering lifecycle
- NSG shadow/overpermissive audit
- ExpressRoute circuit health
- BGP route table pull
- UDR consistency check
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Subscription id subscription_id | string | — | — |
Resource group resource_group | string | net-rg | — |
Flag any/any NSG flag_any_any | bool | true | — |
Sample inventory schema
Authoritative shape of the device/policy data this script consumes.
No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.
Expected output
Reference terminal output the script should produce — used as a stylistic and structural target.
terminal
[2026-06-12] INFO Azure: enumerating VNETs in subscription... PEERING STATE NSG-ISSUE STATUS hub↔spoke-prod Connected - OK hub↔spoke-dev Disconnected - PEER-DOWN ← nsg-web any/any allow inbound OVERPERMISSIVE ← ExpressRoute er-mum: provisioned · BGP 2 peers up Summary: 1 peer down · 1 NSG issue