Skip to content

Commit fc7568d

Browse files
author
Jill Grant
authored
Merge pull request #277928 from davidsmatlak/ds-arg-move-azurenetworking
Moves Azure Networking include file for ARG sample
2 parents 3684f7c + 9cd9bee commit fc7568d

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

articles/networking/fundamentals/resource-graph-samples.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@ ms.author: allensu
88
ms.service: virtual-network
99
ms.custom: subject-resourcegraph-sample
1010
---
11+
1112
# Azure Resource Graph sample queries for Azure networking
1213

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.
1415

1516
## Sample queries
1617

17-
[!INCLUDE [azure-resource-graph-samples-cat-networking](../../../includes/resource-graph/samples/bycat/networking.md)]
18+
[!INCLUDE [azure-resource-graph-samples-cat-networking](../includes/networking.md)]
1819

1920
## Next steps
2021

2122
- Learn more about the [query language](../../governance/resource-graph/concepts/query-language.md).
22-
2323
- Learn more about how to [explore resources](../../governance/resource-graph/concepts/explore-resources.md).
24-
25-
- See samples of [Starter language queries](../../governance/resource-graph/samples/starter.md).
26-
27-
- See samples of [Advanced language queries](../../governance/resource-graph/samples/advanced.md).

includes/resource-graph/samples/bycat/networking.md renamed to articles/networking/includes/networking.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
2-
author: davidsmatlak
3-
ms.service: resource-graph
2+
ms.service: virtual-network
43
ms.topic: include
54
ms.date: 07/07/2022
6-
ms.author: davidsmatlak
7-
ms.custom: generated
5+
author: asudbring
6+
ms.author: allensu
87
---
98

109
### Count resources that have IP addresses configured by subscription
1110

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.
1312

1413
```kusto
1514
Resources
@@ -31,8 +30,6 @@ Search-AzGraph -Query "Resources | where type contains 'publicIPAddresses' and i
3130

3231
# [Portal](#tab/azure-portal)
3332

34-
35-
3633
- Azure portal: <a href="https://portal.azure.com/#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.com</a>
3734
- Azure Government portal: <a href="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>
3835
- Microsoft Azure operated by 21Vianet portal: <a href="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
6764

6865
# [Portal](#tab/azure-portal)
6966

70-
71-
7267
- Azure portal: <a href="https://portal.azure.com/#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.com</a>
7368
- Azure Government portal: <a href="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>
7469
- Azure operated by 21Vianet portal: <a href="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
7772

7873
### List all public IP addresses
7974

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.
8176

8277
```kusto
8378
Resources
@@ -100,8 +95,6 @@ Search-AzGraph -Query "Resources | where type contains 'publicIPAddresses' and i
10095

10196
# [Portal](#tab/azure-portal)
10297

103-
104-
10598
- Azure portal: <a href="https://portal.azure.com/#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.com</a>
10699
- Azure Government portal: <a href="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>
107100
- Azure operated by 21Vianet portal: <a href="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
133126

134127
# [Portal](#tab/azure-portal)
135128

136-
137-
138129
- Azure portal: <a href="https://portal.azure.com/#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.com</a>
139130
- Azure Government portal: <a href="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>
140131
- Azure operated by 21Vianet portal: <a href="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

Comments
 (0)