How many AWS & Azure resources do I have?

Find out how many AWS & Azure resources you have, so you can choose the right Hyperglance licence

In this article, you'll find out how to estimate the number of resources you have in:

AWS

A great way to estimate the number of AWS resources you have is to look at AWS billing data.

We provide an app that analyses your billing data, and uses it to estimate the number of resources Hyperglance will see. The app is available for macOS, Linux, and Windows and is packaged as an all-in-one zip.

How To Run The Billing Analysis App

  1. Download and extract the Hyperglance billing analysis app
  2. Download an AWS billing ZIP or TAR.GZ from S3 to your local machine
  3. Extract the billing ZIP
Run one of the following commands to analyze the extracted CSV file:
  1. Windows: hgbilling-win.exe yourbilling.csv
  2. Linux: ./hgbilling-linux yourbilling.csv
  3. macOS*: ./hgbilling-macos yourbilling.csv

*Initially, macOS will warn you that this app is not from the App Store. To fix this:

  1. Go to Apple menu > System Preferences > Security & Privacy
  2. Permit the Hyperglance billing app to run (opens in new window)
  3. Retry the command

Azure

Thre are three ways you can get an estimate of the number of your Azure resources:

Using the Azure Portal

  1. Log in to your Azure portal
  2. Navigate to your Azure Resource Graph Queries page
  3. Select Open query
  4. Paste in the text below and select Run query
  5. You'll be presented with a list of your subscriptions, and a count of associated resources
Resources
| where type=~ 'Microsoft.Compute/disks'
or type=~ 'microsoft.compute/virtualmachines'
or type=~ 'Microsoft.Network/LoadBalancers'
or type=~ 'Microsoft.Network/routeTables'
or type=~ 'Microsoft.Storage/StorageAccounts'
or type=~ 'microsoft.classicCompute/domainName'
or type=~ 'Microsoft.Sql/servers/databases'
or type=~ 'Microsoft.Sql/servers'
or type=~ 'microsoft.azuredata/postgresinstances'
or type=~ 'Microsoft.DBforMySQL/servers'
or type=~ 'Microsoft.Network/applicationGateways'
or type=~ 'Microsoft.Network/virtualNetworkGateways'
or type=~ 'Microsoft.Network/localnetworkgateways'
or type=~ 'Microsoft.Peering/peerings'
or type=~ 'Microsoft.HybridNetwork/networkFunctions'
or type=~ 'Microsoft.Logic/workflows'
or type=~ 'Microsoft.DocumentDb/databaseAccounts'
or type=~ 'Microsoft.Cache/Redis'
or type=~ 'Microsoft.ApiManagement/service'
or type=~ 'Microsoft.EventGrid/topics'
or type=~ 'Microsoft.Compute/virtualMachineScaleSets'
| summarize count() by subscriptionId

Using the Azure CLI

You can use the Azure CLI to find out how many resources you have. Please ensure you're set up to use the subscriptions before you start.

Here's how to execute the query using the Azure CLI:

az graph query -q "<query>"

az graph query -q "Resources | project name, type | where type=~ 'Microsoft.Compute/disks' | summarize count() by type"

Using Powershell

You can also use Powershell to find out how many Azure resources you have. Please ensure you're set up to use the subscriptions before you start.

Here's how to execute the query using Powershell:

Search-AzGraph -Query "<query>"
// A list of subscriptions and their resource count
Resources
| where type=~ 'Microsoft.Compute/disks'
or type=~ 'microsoft.compute/virtualmachines'
or type=~ 'Microsoft.Network/LoadBalancers'
or type=~ 'Microsoft.Network/routeTables'
or type=~ 'Microsoft.Storage/StorageAccounts'
or type=~ 'microsoft.classicCompute/domainName'
or type=~ 'Microsoft.Sql/servers/databases'
or type=~ 'Microsoft.Sql/servers'
or type=~ 'microsoft.azuredata/postgresinstances'
or type=~ 'Microsoft.DBforMySQL/servers'
or type=~ 'Microsoft.Network/applicationGateways'
or type=~ 'Microsoft.Network/virtualNetworkGateways'
or type=~ 'Microsoft.Network/localnetworkgateways'
or type=~ 'Microsoft.Peering/peerings'
or type=~ 'Microsoft.HybridNetwork/networkFunctions'
or type=~ 'Microsoft.Logic/workflows'
or type=~ 'Microsoft.DocumentDb/databaseAccounts'
or type=~ 'Microsoft.Cache/Redis'
or type=~ 'Microsoft.ApiManagement/service'
or type=~ 'Microsoft.EventGrid/topics'
or type=~ 'Microsoft.Compute/virtualMachineScaleSets'
| summarize count() by subscriptionId