Skip to content

Commit 8fd6d21

Browse files
committed
App Service plans with no hosted applications
1 parent a35e139 commit 8fd6d21

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/_docs/best-practices/compute/compute.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Discover essential FinOps best practices to optimize cost efficiency and governa
2020

2121
- [Advisor](#advisor)
2222
- [Virtual machines](#virtual-machines)
23+
- [App Service plans](#app-service-plans)
2324
- [Azure Kubernetes Service](#azure-kubernetes-service)
2425
- [🙋‍♀️ Looking for more?](#️-looking-for-more)
2526
- [🧰 Related tools](#-related-tools)
@@ -195,6 +196,28 @@ resources
195196

196197
<br>
197198

199+
## App Service plans
200+
201+
### Query: App Service plans with no hosted applications
202+
203+
This Resource Graph query identifies all App Service plans in your Azure environment that do not have any hosted applications. It helps you pinpoint unused resources, enabling you to optimize costs and improve resource management.
204+
205+
<h4>Category</h4>
206+
207+
Waste management
208+
209+
<h4>Query</h4>
210+
211+
```kql
212+
resources
213+
| where type =~ "microsoft.web/serverfarms"
214+
| where properties.numberOfSites == 0
215+
| extend Details = pack_all()
216+
| project Resource=id, resourceGroup, location, subscriptionId, Sku=sku.name, Tier=sku.tier, tags ,Details
217+
```
218+
219+
<br>
220+
198221
## Azure Kubernetes Service
199222

200223
### Query: AKS Cluster

0 commit comments

Comments
 (0)