{"id":26245251,"url":"https://github.com/jksprattler/azure-networking","last_synced_at":"2026-04-13T07:12:01.215Z","repository":{"id":96107809,"uuid":"379104378","full_name":"jksprattler/azure-networking","owner":"jksprattler","description":"A collection of Azure Resource Graph queries related to capturing subscription, VNet, subnets, route tables, etc types of data","archived":false,"fork":false,"pushed_at":"2022-12-23T17:48:59.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T02:37:33.166Z","etag":null,"topics":["azure","azure-cli","vnet"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jksprattler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-22T01:10:24.000Z","updated_at":"2023-03-05T07:57:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c125ac8-0798-41bb-9f0e-8af57be5cb5e","html_url":"https://github.com/jksprattler/azure-networking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jksprattler/azure-networking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksprattler%2Fazure-networking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksprattler%2Fazure-networking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksprattler%2Fazure-networking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksprattler%2Fazure-networking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jksprattler","download_url":"https://codeload.github.com/jksprattler/azure-networking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksprattler%2Fazure-networking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31743194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-cli","vnet"],"created_at":"2025-03-13T12:33:03.042Z","updated_at":"2026-04-13T07:12:01.204Z","avatar_url":"https://github.com/jksprattler.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Resource Graph Collection\r\nA collection of Azure Resource Graph queries related to capturing subscription, VNet, subnets, route tables, etc types of data\r\n\r\n## Get all subnets sorted by subscription and location\r\n```\r\nResources \r\n| where type == \"microsoft.network/virtualnetworks\"\r\n| mv-expand addressSpaces = properties.addressSpace.addressPrefixes\r\n| mv-expand subnets=properties.subnets\r\n| join kind=leftouter(\r\nResourcecontainers\r\n| where type == 'microsoft.resources/subscriptions'\r\n| project subscriptionId, subscriptionName = name) on subscriptionId\r\n| project subscriptionName, subscriptionId, location, VNetName = name, subnet_name = subnets.name, subnet_prefixes = subnets.properties.addressPrefix\r\n| order by subscriptionName asc, location asc\r\n```\r\n\r\n## Get all VNet's sorted by subscription and location\r\n```\r\nResources \r\n| where type == \"microsoft.network/virtualnetworks\"\r\n| mv-expand addressSpaces = properties.addressSpace.addressPrefixes\r\n| join kind=leftouter(\r\nResourcecontainers\r\n| where type == 'microsoft.resources/subscriptions'\r\n| project subscriptionId, subscriptionName = name) on subscriptionId\r\n| project subscriptionName, subscriptionId, resourceGroup, name, location, addressSpaces\r\n| order by subscriptionName asc, location asc\r\n```\r\n\r\n## Get all route tables associated with subnets containing \"backend\" in the name\r\n```\r\nResources\r\n| join kind=leftouter (\r\n    ResourceContainers \r\n    | where type=='microsoft.resources/subscriptions' \r\n    | project SubName=name, subscriptionId) \r\non subscriptionId\r\n| where type=='microsoft.network/routetables' and split(properties['subnets'][0]['id'], \"/\", 10) contains '-backend'\r\n| project SubName, subscriptionId, VNetName=split(properties['subnets'][0]['id'], \"/\", 8), SubnetName=split(properties['subnets'][0]['id'], \"/\", 10), RouteTable=name, resourceGroup, location\r\n| mv-expand SubnetName,VNetName to typeof(string) \r\n| order by SubName asc\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjksprattler%2Fazure-networking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjksprattler%2Fazure-networking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjksprattler%2Fazure-networking/lists"}