VirtualNetwork
Represents Azure virtual networks.
Labels: :ArmResource:VirtualNetwork
Properties:
id- VNet resource ID (primary key)resourceGuid- Resource GUIDprovisioningState- Provisioning stateenableDdosProtection- Whether DDoS protection is enabledenableVmProtection- Whether VM protection is enabledaddressSpace- Array of address prefixes for the VNet
Relationships
Outgoing
- VirtualNetwork →
CONTAINS→ Subnet - Subnets within the virtual network - VirtualNetwork →
HAS_PEERING→ NetworkPeering - Network peering connections
Examples
// Find all virtual networks with DDoS protection
MATCH (vnet:VirtualNetwork)
WHERE vnet.enableDdosProtection = true
RETURN vnet.name, vnet.addressSpace
// Find virtual networks and their subnets
MATCH (vnet:VirtualNetwork)-[:CONTAINS]->(subnet:Subnet)
RETURN vnet.name, collect(subnet.name) AS subnets
// Find virtual network peering relationships
MATCH (vnet:VirtualNetwork)-[:HAS_PEERING]->(peering:NetworkPeering)-[:PEERS_WITH]->(remote:ArmResource)
RETURN vnet.name, remote.name, peering.peeringState