Table of Contents
Azure Resource Graph VNet Query
User: Resources
project subscriptionId, resourceGroup,
vnetName = name,
vnetAddressSpace = tostring(vnetAddressPrefixes),
location
|
— need only for vnet1, vnet2 the ip address spaces
Assistant: You can filter the results to only the VNets `vnet1` and `vnet2` by adding a `where` clause for the VNet names:
```kusto Resources
project vnetName = name,vnetAddressSpace = tostring(vnetAddressPrefixes) |
View ExpressRoute Connections and Routing
User: need to view all my express routes connection, and rotuing configuration on the gateway
Assistant: To view ExpressRoute resources and routing config:
ExpressRoute Gateways
kusto Copy code Resources
kusto Copy code Resources
kusto Copy code Resources
User: is it possible to see also the routes
Assistant: Short answer: No — full routing tables (effective routes) cannot be queried via Azure Resource Graph.
But you can see routes via CLI / PowerShell:
Learned Routes (ExpressRoute Gateway)
bash Copy code az network vnet-gateway list-learned-routes \
- -name <GatewayName> \
- -resource-group <RGName>
Advertised Routes to On-Prem
bash Copy code az network vnet-gateway list-advertised-routes \
- -name <GatewayName> \
- -resource-group <RGName> \
- -peer <PeerIP>
Effective Routes for VM NIC
bash Copy code az network nic show-effective-route-table \
- -name <NICName> \
- -resource-group <RGName>
Azure Portal also shows effective routes.
User Request
User: give me the wholy communication in a dokuwiki format ready for copy and paste
Assistant: (Provided the full DokuWiki formatted content)
