Skip to content

Commit 1ba7724

Browse files
authored
Merge pull request #305563 from seligj95/argsample
add arg sample for app service
2 parents b5b0ec4 + c9901f8 commit 1ba7724

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
ms.service: resource-graph
3+
ms.topic: include
4+
ms.date: 09/15/2025
5+
author: seligj95
6+
ms.author: jordanselig
7+
---
8+
9+
### List all Azure App Service resources
10+
11+
List all Azure App Service resources.
12+
13+
```kusto
14+
Resources
15+
| where type in ('microsoft.web/sites', 'microsoft.web/sites/slotes', 'microsoft.web/serverfarms', 'microsoft.web/environment', 'microsoft.web/hostingenvironment')
16+
| project name, type, kind, location, resourceGroup, sku , properties
17+
```
18+
19+
# [Azure CLI](#tab/azure-cli)
20+
21+
```azurecli-interactive
22+
az graph query -q "Resources | where type in ('microsoft.web/sites', 'microsoft.web/sites/slotes', 'microsoft.web/serverfarms', 'microsoft.web/environment', 'microsoft.web/hostingenvironment') | project name, type, kind, location, resourceGroup, sku , properties"
23+
```
24+
25+
# [Azure PowerShell](#tab/azure-powershell)
26+
27+
```azurepowershell-interactive
28+
Search-AzGraph -Query "Resources | where type in ('microsoft.web/sites', 'microsoft.web/sites/slotes', 'microsoft.web/serverfarms', 'microsoft.web/environment', 'microsoft.web/hostingenvironment') | project name, type, kind, location, resourceGroup, sku , properties"
29+
```
30+
31+
# [Portal](#tab/azure-portal)
32+
33+
- Azure portal: <a href="https://portal.azure.com/#blade/HubsExtension/ArgQueryBlade/query/Resources%0D%0A%7C%20where%20type%20in%20('microsoft.web%2Fsites'%2C%20'microsoft.web%2Fsites%2Fslotes'%2C%20'microsoft.web%2Fserverfarms'%2C%20'microsoft.web%2Fenvironment'%2C%20'microsoft.web%2Fhostingenvironment')%0D%0A%7C%20project%20name%2C%20type%2C%20kind%2C%20location%2C%20resourceGroup%2C%20sku%20%2C%20properties" target="_blank">portal.azure.com</a>
34+
- Azure Government portal: <a href="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/Resources%0D%0A%7C%20where%20type%20in%20('microsoft.web%2Fsites'%2C%20'microsoft.web%2Fsites%2Fslotes'%2C%20'microsoft.web%2Fserverfarms'%2C%20'microsoft.web%2Fenvironment'%2C%20'microsoft.web%2Fhostingenvironment')%0D%0A%7C%20project%20name%2C%20type%2C%20kind%2C%20location%2C%20resourceGroup%2C%20sku%20%2C%20properties" target="_blank">portal.azure.us</a>
35+
- Microsoft Azure operated by 21Vianet portal: <a href="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/Resources%0D%0A%7C%20where%20type%20in%20('microsoft.web%2Fsites'%2C%20'microsoft.web%2Fsites%2Fslotes'%2C%20'microsoft.web%2Fserverfarms'%2C%20'microsoft.web%2Fenvironment'%2C%20'microsoft.web%2Fhostingenvironment')%0D%0A%7C%20project%20name%2C%20type%2C%20kind%2C%20location%2C%20resourceGroup%2C%20sku%20%2C%20properties" target="_blank">portal.azure.cn</a>
36+
37+
---

articles/governance/resource-graph/samples/samples-by-category.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Otherwise, use <kbd>Ctrl</kbd>-<kbd>F</kbd> to use your browser's search feature
1919

2020
## Azure App Service
2121

22+
[!INCLUDE [app-service-resources-list-resources](../includes/samples-by-category/query/app-service-resources-list-resources.md)]
23+
2224
[!INCLUDE [app-service-resources-tls-version](../includes/samples-by-category/query/app-service-resources-tls-version.md)]
2325

2426
## Azure Arc

0 commit comments

Comments
 (0)