Skip to content

Subnet

Represents subnets within virtual networks (not an ARM resource itself).

Labels: :Subnet

Properties:

  • id - Subnet ID (primary key)
  • name - Subnet name
  • addressPrefix - Address prefix for the subnet
  • privateEndpointNetworkPolicies - Private endpoint network policies setting
  • privateLinkServiceNetworkPolicies - Private link service network policies setting

Relationships

Incoming

  • VirtualNetworkCONTAINSSubnet - Parent virtual network

Outgoing

  • SubnetCONTAINSIPConfiguration - IP configurations in this subnet
  • SubnetHAS_CONFIGRouteTable - Associated route table
  • SubnetHAS_NSGNetworkSecurityGroup - Associated network security group

Examples

// Find subnets and their address prefixes
MATCH (vnet:VirtualNetwork)-[:CONTAINS]->(subnet:Subnet)
RETURN vnet.name, subnet.name, subnet.addressPrefix
// Find subnets with route tables
MATCH (subnet:Subnet)-[:HAS_CONFIG]->(rt:RouteTable)
RETURN subnet.name, rt.name