You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/networking/fundamentals/resource-graph-samples.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,16 @@ ms.author: allensu
8
8
ms.service: virtual-network
9
9
ms.custom: subject-resourcegraph-sample
10
10
---
11
+
11
12
# Azure Resource Graph sample queries for Azure networking
12
13
13
-
This page is a collection of [Azure Resource Graph](../../governance/resource-graph/overview.md) sample queries for Azure networking. For a complete list of Azure Resource Graph samples, see [Resource Graph samples by Category](../../governance/resource-graph/samples/samples-by-category.md) and [Resource Graph samples by Table](../../governance/resource-graph/samples/samples-by-table.md).
14
+
This page is a collection of [Azure Resource Graph](../../governance/resource-graph/overview.md) sample queries for Azure networking.
Copy file name to clipboardExpand all lines: articles/networking/includes/networking.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
---
2
-
author: davidsmatlak
3
-
ms.service: resource-graph
2
+
ms.service: virtual-network
4
3
ms.topic: include
5
4
ms.date: 07/07/2022
6
-
ms.author: davidsmatlak
7
-
ms.custom: generated
5
+
author: asudbring
6
+
ms.author: allensu
8
7
---
9
8
10
9
### Count resources that have IP addresses configured by subscription
11
10
12
-
Using the 'List all public IP addresses' example query and adding `summarize` and `count()`, we can get a list by subscription of resources with configured IP addresses.
11
+
Using the _List all public IP addresses_ example query and adding `summarize` and `count()`, we can get a list by subscription of resources with configured IP addresses.
13
12
14
13
```kusto
15
14
Resources
@@ -31,8 +30,6 @@ Search-AzGraph -Query "Resources | where type contains 'publicIPAddresses' and i
- Azure Government portal: <ahref="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20contains%20%27publicIPAddresses%27%20and%20isnotempty(properties.ipAddress)%0a%7c%20summarize%20count%20()%20by%20subscriptionId"target="_blank">portal.azure.us</a>
38
35
- Microsoft Azure operated by 21Vianet portal: <ahref="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20contains%20%27publicIPAddresses%27%20and%20isnotempty(properties.ipAddress)%0a%7c%20summarize%20count%20()%20by%20subscriptionId"target="_blank">portal.azure.cn</a>
@@ -67,8 +64,6 @@ Search-AzGraph -Query "Resources | where type =~ 'microsoft.network/networkinter
- Azure Government portal: <ahref="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20%3d%7e%20%27microsoft.network%2fnetworkinterfaces%27%0a%7c%20project%20id%2c%20ipConfigurations%20%3d%20properties.ipConfigurations%0a%7c%20mvexpand%20ipConfigurations%0a%7c%20project%20id%2c%20subnetId%20%3d%20tostring(ipConfigurations.properties.subnet.id)%0a%7c%20parse%20kind%3dregex%20subnetId%20with%20%27%2fvirtualNetworks%2f%27%20virtualNetwork%20%27%2fsubnets%2f%27%20subnet%0a%7c%20project%20id%2c%20virtualNetwork%2c%20subnet"target="_blank">portal.azure.us</a>
74
69
- Azure operated by 21Vianet portal: <ahref="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20%3d%7e%20%27microsoft.network%2fnetworkinterfaces%27%0a%7c%20project%20id%2c%20ipConfigurations%20%3d%20properties.ipConfigurations%0a%7c%20mvexpand%20ipConfigurations%0a%7c%20project%20id%2c%20subnetId%20%3d%20tostring(ipConfigurations.properties.subnet.id)%0a%7c%20parse%20kind%3dregex%20subnetId%20with%20%27%2fvirtualNetworks%2f%27%20virtualNetwork%20%27%2fsubnets%2f%27%20subnet%0a%7c%20project%20id%2c%20virtualNetwork%2c%20subnet"target="_blank">portal.azure.cn</a>
@@ -77,7 +72,7 @@ Search-AzGraph -Query "Resources | where type =~ 'microsoft.network/networkinter
77
72
78
73
### List all public IP addresses
79
74
80
-
Similar to the 'Show resources that contain storage' query, find everything that is a type with the word **publicIPAddresses**. This query expands on that pattern to only include results where **properties.ipAddress**`isnotempty`, to only return the **properties.ipAddress**, and to `limit` the results by the top 100. You may need to escape the quotes depending on your chosen shell.
75
+
Similar to the 'Show resources that contain storage' query, find everything that is a type with the word `publicIPAddresses`. This query expands on that pattern to only include results where `properties.ipAddress``isnotempty`, to only return the `properties.ipAddress`, and to `limit` the results by the top 100. You might need to escape the quotes depending on your chosen shell.
81
76
82
77
```kusto
83
78
Resources
@@ -100,8 +95,6 @@ Search-AzGraph -Query "Resources | where type contains 'publicIPAddresses' and i
- Azure Government portal: <ahref="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20contains%20%27publicIPAddresses%27%20and%20isnotempty(properties.ipAddress)%0a%7c%20project%20properties.ipAddress%0a%7c%20limit%20100"target="_blank">portal.azure.us</a>
107
100
- Azure operated by 21Vianet portal: <ahref="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20contains%20%27publicIPAddresses%27%20and%20isnotempty(properties.ipAddress)%0a%7c%20project%20properties.ipAddress%0a%7c%20limit%20100"target="_blank">portal.azure.cn</a>
@@ -133,8 +126,6 @@ Search-AzGraph -Query "Resources | where type =~ 'microsoft.network/networksecur
- Azure Government portal: <ahref="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20%3d%7e%20%27microsoft.network%2fnetworksecuritygroups%27%20and%20isnull(properties.networkInterfaces)%20and%20isnull(properties.subnets)%0a%7c%20project%20name%2c%20resourceGroup%0a%7c%20sort%20by%20name%20asc"target="_blank">portal.azure.us</a>
140
131
- Azure operated by 21Vianet portal: <ahref="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/Resources%0a%7c%20where%20type%20%3d%7e%20%27microsoft.network%2fnetworksecuritygroups%27%20and%20isnull(properties.networkInterfaces)%20and%20isnull(properties.subnets)%0a%7c%20project%20name%2c%20resourceGroup%0a%7c%20sort%20by%20name%20asc"target="_blank">portal.azure.cn</a>
0 commit comments