Microsoft Defender for Cloud

Download 0
Last updated Oct 5, 2026

defender-cloud-resources

Lists the asset inventory collected from Microsoft Defender for Cloud, one row per resource, with its finding counts and the Defender plan that covers it.

defender-cloud-resources [profile=VALUE] [subscription=VALUE] [resource-type=VALUE] [resource-group=VALUE] [environment=VALUE] [unhealthy=VALUE] [exposed=VALUE] [keyword=VALUE]
profile=VALUE
Optional. Profile identifier. Omit to read every registered tenant. e.g. mdc
subscription=VALUE
Optional. Azure subscription ID. e.g. 00000000-0000-0000-0000-000000000000
resource-type=VALUE
Optional. e.g. microsoft.compute/virtualmachines
resource-group=VALUE
Optional. e.g. prod-rg
environment=VALUE
Optional. Cloud the resource belongs to: Azure, AWS or GCP. e.g. Azure
unhealthy=VALUE
Optional. t to return only resources with at least one unhealthy finding. e.g. t
exposed=VALUE
Optional. t to return only internet-reachable resources. e.g. t
keyword=VALUE
Optional. Substring of the resource name, type or id. e.g. vm-app-01

Output fields

FieldTypeNameDescription
profileStringProfilee.g. mdc
cloud_accountStringSubscription IDe.g. 00000000-0000-0000-0000-000000000000
cloud_account_nameStringSubscriptione.g. Production
cloud_resource_nameStringResource namee.g. vm-app-01
cloud_resource_typeStringResource typee.g. microsoft.compute/virtualmachines
cloud_resource_groupStringResource groupe.g. prod-rg
environmentStringEnvironmente.g. Azure
locationStringLocatione.g. koreacentral
resource_kindStringKindResource subtype where Azure publishes one. e.g. functionapp
defender_planStringDefender planPlan that covers this resource type. e.g. VirtualMachines
defender_plan_tierStringPlan tiere.g. Standard - Free means the resource is listed but not protected
unhealthy_countIntegerUnhealthy findingse.g. 7
healthy_countIntegerHealthy findingse.g. 12
not_applicable_countIntegerNot applicable findingse.g. 2
assessment_countIntegerTotal findingse.g. 21
cve_countIntegerCVEse.g. 134
max_risk_scoreIntegerHighest risk rankRank of the worst finding on this resource. e.g. 4.0
is_internet_exposedBooleanInternet exposede.g. true
is_productionBooleanProductione.g. true
tagsMapTagsAzure tags as published, in JSON. e.g. {"env":"prod"}
cloud_resourceStringResource IDe.g. /subscriptions/.../providers/Microsoft.Compute/virtualMachines/vm-app-01
row_keyStringRow keySHA-256 of the identity columns, stable across cycles. e.g. a1b2c3d4e5f6...
snapshot_idStringSnapshot IDThe collection cycle that last wrote this row. e.g. 00000000-0000-0000-...
updatedDateCollected ate.g. 2026-10-05 00:34:15