Getting a secure score using Azure Resource Graph
Azure Resource Graph is a service in Azure that is capable of querying resources at scale across subscriptions and exploring Azure resources, including the ability to apply complex filtering, grouping, and sorting by resource properties.
In this recipe, you will learn how to use Azure Resource Graph to query resources for the Azure secure score feature.
Getting ready
Open a web browser and navigate to https://portal.azure.com.
How to do it...
To filter, group, and sort security recommendations in Microsoft Defender for Cloud, take the following steps:
- In the Azure portal, open Resource Graph Explorer.
- On the left menu, under the Scope menu, choose a scope for the queries: Tenant, Management Group, or Subscription.
- In the right pane, under the Query 1 tab, type the following Kusto query:
SecurityResources | where type == 'microsoft.security/securescores' | extend current = properties.score...