Created
March 29, 2023 09:17
-
-
Save johnybradshaw/a87cb10e429fa6559af2523ffa1e7b7e to your computer and use it in GitHub Desktop.
Discovers, per tenant, workloads that create a licensing impact for Service Now ITOM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources | |
| where type in ('microsoft.sql/servers', 'microsoft.dbformysql/servers', 'microsoft.dbforpostgresql/servers', 'microsoft.documentdb/databaseaccounts', 'microsoft.cache/redis', 'microsoft.web/sites', 'microsoft.compute/virtualmachines', 'microsoft.containerinstance/containergroups' ) | |
| extend resourceType = case( | |
type == 'microsoft.compute/virtualmachines', 'Virtual Machines', | |
type == 'microsoft.containerinstance/containergroups', 'Containers', | |
type in ('microsoft.sql/servers', 'microsoft.dbformysql/servers', 'microsoft.dbforpostgresql/servers', 'microsoft.documentdb/databaseaccounts', | |
'microsoft.cache/redis', 'microsoft.web/sites', 'Unknown' ), 'PaaS', | |
'Unknown' | |
) | |
| summarize count() by resourceType |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment