Skip to content

Commit

Permalink
Improve queries for Azure (#111)
Browse files Browse the repository at this point in the history
- Return better data in the query pack
- Use more consistent language in the counts pack
- Remove a duplicate AWS query in the counts pack

Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 authored Nov 4, 2023
1 parent 9225fc8 commit f024e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/mondoo-azure-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packs:
docs:
desc: |
This query retrieves data for Microsoft Defender for Cloud
mql: azure.subscription.cloudDefender
mql: azure.subscription.cloudDefender { defenderForServers defenderForContainers securityContacts { name alertNotifications } }
- uid: mondoo-asset-inventory-azure-storageAccounts
title: Azure Storage accounts
docs:
Expand Down Expand Up @@ -196,7 +196,7 @@ packs:
docs:
desc: |
This query retrieves data for all network interfaces
mql: azure.subscription.network.interfaces
mql: azure.subscription.network.interfaces{ name location properties['nicType'] properties['nicType'] properties['macAddress'] properties['virtualMachine']['id'] }
- uid: mondoo-asset-inventory-azure-resourcegroups
title: Azure subscription resource groups
docs:
Expand Down
8 changes: 2 additions & 6 deletions extra/mondoo-asset-count.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ packs:
vsphere.datacenters { vms.length }
- uid: mondoo-asset-count-on-azure
title: Retrieve all VMs from Azure
title: Azure virtual machine count
query: |
azure.subscription.compute.vms.length
- uid: mondoo-count-users-in-azure
title: Retrieve all users from Azure
title: Azure user count
query: |
microsoft.users.length
Expand All @@ -121,10 +121,6 @@ packs:
title: AWS ACM Certificates
mql: aws.acm.certificates.length

- uid: mondoo-asset-count-aws-acm-certificates
title: AWS ACM Certificates
mql: aws.acm.certificates.length

- uid: mondoo-asset-count-aws-api-gateways
title: AWS API Gateways
mql: aws.apigateway.restApis.length
Expand Down

0 comments on commit f024e58

Please sign in to comment.