Get the configuration of Microsoft Defender Plans Cloud Workload Protection using Automation Account Runbook PowerShell

Lintag, Carlo Alfonso 0 Reputation points
2024-03-11T04:36:11.0533333+00:00

I am trying to get the configuration of the Microsoft Defender for Cloud in all of our subscriptions. Specifically, I want to get the Cloud Workload Protection Details. All I am able to get are the pricing details of the plans and not specific details such as the resource quantity, monitoring coverage, and the status of the plan.

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,281 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,329 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrew Blumhardt 9,776 Reputation points Microsoft Employee
    2024-03-12T12:12:59.4033333+00:00

    MDC stores much of the config in the Azure Resource Graph. Many of the MDC portal screens have an Open Query button that provides a sample graph query. I assume there are PS options for running a graph query. https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-powershell

    User's image

    0 comments No comments