Cloud resource inventory: discover assets across accounts
Compare AWS Config, Azure Resource Graph, and Google Cloud Asset Inventory, and learn how to verify scope and freshness before acting on results.
Cloud resource inventory: discover assets across accounts
A cloud resource inventory is a searchable view of assets such as virtual machines, databases, networks, and storage, together with selected properties. It helps answer where resources are, what they are configured like, and which team may own them. It is a collected view whose completeness and freshness depend on scope, permissions, supported types, and collection timing—not a guaranteed real-time list of everything.
A missing result does not prove that a resource does not exist. Some subscriptions or accounts may be outside your permissions, some resource types may not be collected, and indexing may lag. Check scope and update time before making a decision.
What does an inventory show?
Depending on the service, an inventory can filter or group resource IDs, types, locations, accounts, tags, configuration properties, relationships, change history, and compliance findings. It is different from monitoring, which collects time-series metrics and health signals. A CMDB may add business ownership and service relationships. Cloud inventory alone does not tell you what processes run inside a VM or whether an application is business-critical.
How do provider tools differ?
| Service | Useful view | Important boundary |
|---|---|---|
| AWS Config | Records configurations, relationships, changes, and rule evaluations for selected AWS resource types. An aggregator can collect Config data across accounts and Regions. | Only supported types that are configured for recording are discovered. History begins when recording starts. |
| Azure Resource Graph | Queries Resource Manager properties across a selected set of subscriptions using a KQL-based language. Use the portal, CLI, PowerShell, or REST. | Results are not strongly consistent and have indexing latency. The query sees only resources the identity can read; insufficient scope can look like an empty result. |
| Google Cloud Asset Inventory | Searches, exports, monitors, and analyzes asset metadata and supported change history. | It is not designed for real-time queries. Synchronization is eventually consistent; history is retained up to 35 days. |
Compare supported types, permissions, organizational scope, API versions, and freshness for your use case. Cross-check representative resources against their service API.
Example: investigate exposed resources
Suppose a security team wants to locate internet-exposed virtual machines across accounts and subscriptions. This is a hypothetical scenario. First define the organization, accounts, subscriptions, and Regions in scope. Check query permissions and collection settings. Filter for the relevant resource types and exposure properties, then verify sample results against the resource management API. Record the owner, observation time, and remediation status so a stale result is not mistaken for current state.
For Azure Resource Graph, a starting query is:
Resources
| where type =~ 'Microsoft.Compute/virtualMachines'
| project name, subscriptionId, resourceGroup, location, tags
| sort by name ascIt only queries subscriptions available to the signed-in identity. AWS Config can list discovered identifiers by resource type and provide configuration history. Google Cloud Asset Inventory can search or export metadata at a project, folder, or organization scope. Check current vendor instructions for actual commands, versions, and permissions.
Why might results be empty or stale?
Check, in order: (1) scope—account, Region, subscription, folder, project, and active login context; (2) read permissions, since inaccessible scopes may not appear; (3) collection configuration and support for the resource type; (4) indexing/update timestamps; and (5) the live service API for decisions that require current state. If the problem remains, check query-supported properties and paging or result limits. Do not use a delayed inventory as the sole real-time security control.
Operating principles
Document data source, scope, collection or refresh schedule, retention, permissions, and owner. For security investigations, preserve observation time and source verification. For cost reviews, align inventory with the billing period. Use a central query tool for discovery and audits; use resource APIs or live signals where a stale snapshot could cause an unsafe action.
Official documentation
[AWS Config overview](https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html)
[Look up resources discovered by AWS Config](https://docs.aws.amazon.com/config/latest/developerguide/looking-up-discovered-resources.html)
[Azure Resource Graph overview](https://learn.microsoft.com/en-us/azure/governance/resource-graph/overview)
[Azure Resource Graph starter queries](https://learn.microsoft.com/en-us/azure/governance/resource-graph/samples/starter)
[Google Cloud Asset Inventory overview](https://docs.cloud.google.com/asset-inventory/docs/asset-inventory-overview)