How we can get the Subscriptions details that have defender plan enabled

Prateek Rana 60 Reputation points
2023-05-10T13:50:13.5533333+00:00

I looking for the option that I can fetch the subscriptions details that defender plan enabled.

Please shared the workaround if available.

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,328 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrew Blumhardt 9,776 Reputation points Microsoft Employee
    2023-05-10T23:20:06.77+00:00

    I don't have a specific query but you could call the Azure Resource Graph. There is a graphical explorer in the portal. This is where most accessible config settings are stored.

    https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-powershell

    0 comments No comments