Cloud asset inventory - Microsoft Defender for Cloud (original) (raw)

The asset inventory page of Microsoft Defender for Cloud shows the security posture of your connected resources. It gives you one view of cloud infrastructure across Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). It groups assets by workload, criticality, and coverage status. It also combines health data, device actions, and risk signals in one place.

Defender for Cloud periodically analyzes the security state of connected resources. When resources have active security recommendations or security alerts, they appear in the inventory.

Access asset inventory in the Azure portal

In the Azure portal, navigate to Microsoft Defender for Cloud > Inventory.

The Inventory page provides information about:

The Inventory uses Azure Resource Graph (ARG) to query and retrieve data at scale. For deep custom insights, you can use KQL to query the inventory.

Review the inventory

  1. In Defender for Cloud in the Azure portal, select Inventory. By default the resources are sorted by the number of active security recommendations.
  2. Review the available settings:
    • In Search, you can use a free text search to find resources.
    • Total resources displays the number of resources connected to Defender for Cloud.
    • Unhealthy resources displays the number of resources with active security recommendations and alerts.
    • Resource count by environment: Total of Azure, AWS, and GCP resources.
  3. Select a resource to drill down for details.
  4. On the Resource Health page for the resource, review information about the resource.
    • The Recommendations tab shows any active security recommendations, in order of risk. You can drill down into each recommendation for more details and remediation options.
    • The Alerts tab shows any relevant security alerts.

Review software inventory

Screenshot that shows the main features of the asset inventory page in Microsoft Defender for Cloud.

To review software inventory details:

  1. Select Installed application.
  2. In Value, select the apps to filter on.
    • Total resources: The total number of resources connected to Defender for Cloud.
    • Unhealthy resources: Resources with active security recommendations that you can implement. For remediation guidance, see Review security recommendations.
    • Resource count by environment: The number of resources in each environment.
    • Unregistered subscriptions: Any subscription in the selected scope that hasn't yet been connected to Microsoft Defender for Cloud.
  3. Resources connected to Defender for Cloud that run those apps are displayed. Blank options show machines where Defender for Servers or Defender for Endpoint isn't available.

Filter the inventory

As soon as you apply filters, the summary values are updated to relate to the query results.

Export tools

Download CSV report - Export the results of your selected filter options to a CSV file.

Open query - Export the query itself to Azure Resource Graph (ARG) to further refine, save, or modify the Kusto Query Language (KQL) query.

How does asset inventory work?

In addition to the predefined filters, you can explore the software inventory data from Resource Graph Explorer.

ARG is designed to provide efficient resource exploration with the ability to query at scale.

You can use Kusto Query Language (KQL) in the asset inventory to quickly produce deep insights by cross-referencing Defender for Cloud data with other resource properties.

How to use asset inventory

To work with filters and query options in asset inventory:

  1. From Defender for Cloud's sidebar, select Inventory.
  2. Use the Filter by name box to display a specific resource, or use the filters to focus on specific resources.
    By default, the resources are sorted by the number of active security recommendations.
    Important
    The options in each filter are specific to the resources in the currently selected subscriptions and your selections in the other filters.
    For example, if you've selected only one subscription, and the subscription has no resources with outstanding security recommendations to remediate (0 unhealthy resources), the Recommendations filter will have no options.
  3. To use the Security findings filter, enter free text from the ID, security check, or CVE name of a vulnerability finding to filter to the affected resources:
    Screenshot showing how to set the security findings filter.
    Tip
    The Security findings and Tags filters only accept a single value. To filter by more than one, use Add filters.
  4. To view the current selected filter options as a query in Resource Graph Explorer, select Open query.
    Screenshot of Azure Resource Graph Explorer showing the generated inventory query from selected Defender for Cloud inventory filters.
  5. If you defined some filters and left the page open, Defender for Cloud doesn't update the results automatically. Any changes to resources won't affect the displayed results unless you manually reload the page or select Refresh.

Export the inventory

To export filtered inventory data:

  1. To save filtered inventory in CSV form, select Download CSV report.
  2. To save a query in Resource Graph Explorer, select Open a query. When you're ready to save a query, select Save as. In Save query, specify a query name, description, and whether the query is private or shared.
    Screenshot of Azure Resource Graph Explorer showing the generated inventory query from selected Defender for Cloud inventory filters.

Changes made to resources won't affect the displayed results unless you manually reload the page or select Refresh.

Access a software inventory

To access the software inventory, you need one of the following plans:

Examples using Azure Resource Graph Explorer to access and explore software inventory data

To query software inventory data in Azure Resource Graph Explorer:

  1. Open Azure Resource Graph Explorer.
    Screenshot of the Azure portal showing how to open Azure Resource Graph Explorer from search results.
  2. Select the following subscription scope: securityresources/softwareinventories
  3. Enter any of the following queries (or customize them or write your own!) and select Run query.

Query examples

To generate a basic list of installed software:

securityresources
| where type == "microsoft.security/softwareinventories"
| project id, Vendor=properties.vendor, Software=properties.softwareName, Version=properties.version

To filter by version numbers:

securityresources
| where type == "microsoft.security/softwareinventories"
| project id, Vendor=properties.vendor, Software=properties.softwareName, Version=tostring(properties.    version)
| where Software=="windows_server_2019" and parse_version(Version)<=parse_version("10.0.17763.1999")

To find machines with a combination of software products:

securityresources
| where type == "microsoft.security/softwareinventories"
| extend vmId = properties.azureVmId
| where properties.softwareName == "apache_http_server" or properties.softwareName == "mysql"
| summarize count() by tostring(vmId)
| where count_ > 1

To combine a software product with another security recommendation:

(In this example: machines that have MySQL installed and exposed management ports.)

securityresources
| where type == "microsoft.security/softwareinventories"
| extend vmId = tolower(properties.azureVmId)
| where properties.softwareName == "mysql"
| join (
    securityresources
| where type == "microsoft.security/assessments"
| where properties.displayName == "Management ports should be closed on your virtual machines" and properties.status.code == "Unhealthy"
| extend vmId = tolower(properties.resourceDetails.Id)
) on vmId

Next steps

This article describes how to use the unified cloud asset inventory in Microsoft Defender for Cloud within the Microsoft Defender XDR portal to manage and monitor your multicloud infrastructure.

Overview

The cloud asset inventory gives you one view of cloud infrastructure across Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). It groups assets by workload, criticality, and coverage status. It also combines health data, device actions, and risk signals in one interface.

Screenshot of cloud asset inventory in the Defender portal.

Key capabilities

Unified multicloud visibility

Workload-specific insights

The inventory is organized by workload types, each providing tailored visibility and data:

Advanced filtering and scoping

Asset criticality classification

Assets are automatically classified based on:

Coverage status indicators

Each asset displays coverage information:

Health and risk signals

Integrated risk indicators provide comprehensive asset context:

Accessing the cloud inventory

To open the cloud inventory in the Microsoft Defender portal:

  1. Navigate to the Microsoft Defender portal
  2. Select Assets > Cloud from the main navigation
  3. Use workload-specific tabs for focused views:
    • All Assets: Comprehensive view across all workload types
    • VMs: Virtual machine-specific inventory and insights
    • Data: Data resources including databases and storage
    • Containers: Container and Kubernetes resources
    • AI: Artificial intelligence and machine learning services
    • API: APIs and integration services
    • DevOps: Development and deployment pipeline resources
    • Identity: Identity and access management components
    • Serverless: Function and event-driven compute resources

Using filters effectively

Search and discovery

Asset details and insights

Comprehensive asset information

Each asset provides detailed information including:

Security recommendations integration

Assets link directly to relevant security recommendations:

Incident response workflows

The inventory supports security operations through:

Integration with Exposure Management

Attack path visualization

Assets in the inventory integrate with attack path analysis:

Critical asset management

The inventory supports critical asset workflows:

Vulnerability management integration

Cloud assets connect seamlessly with vulnerability management:

Reporting and analytics

Built-in reporting

Custom analytics

Limitations and considerations

Current limitations

Performance considerations

Scoping limitations

Some assets may appear outside defined cloud scopes:

Best practices

Inventory management

Security operations

Review the inventory

  1. In the Microsoft Defender portal, navigate to Assets > Cloud.
  2. Review the unified cloud assets overview:
    • Total resources across all connected cloud environments
    • Security posture summary showing healthy vs. unhealthy resources
    • Coverage metrics indicating Defender for Cloud protection status
    • Risk distribution showing assets by risk level
  3. Use workload-specific tabs to focus on particular asset types:
    • Select VMs for virtual machines and compute instances
    • Select Data for databases and storage resources
    • Select Containers for Kubernetes and container-related assets
    • Select AI for AI and machine learning workloads
    • Select API for API management and endpoints
    • Select DevOps for development pipeline resources
    • Select Identity for identity and access management assets
    • Select Serverless for functions and serverless compute
  4. Apply the global scope filter to focus on specific cloud scopes or organizational boundaries
  5. Select an asset to view detailed information:
    • Security recommendations prioritized by risk level
    • Security alerts with threat detection insights
    • Attack path involvement showing participation in potential attack scenarios
    • Compliance status against security standards
    • Risk factors including internet exposure and lateral movement potential

Next steps