Skip to content

Commit

Permalink
Create AzureResourceCount.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert-JanP committed Mar 22, 2024
1 parent 279a615 commit ea80aa8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Azure Resource Graph/Functions/AzureResourceCount.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Function: ResourcesCount()

## Query Information

#### Description
Count the number of Azure Resources for each subscription.

#### References
- https://learn.microsoft.com/en-us/azure/governance/resource-graph/overview
- https://learn.microsoft.com/en-us/azure/governance/resource-graph/samples/starter?tabs=azure-portal

## Log Analytics (Sentinel)
```
let ResourcesCount = () {
arg("").Resources
| summarize TotalResources = count() by subscriptionId
};
ResourcesCount()
```


0 comments on commit ea80aa8

Please sign in to comment.