Share via

Azure Defender Coverage

Surendra Pratap Singh 21 Reputation points
2021-07-29T13:19:27.113+00:00

How to list all resources covered/not covered by Azure Defender using REST API ?

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
0 comments No comments

Answer accepted by question author

JamesTran-MSFT 37,256 Reputation points Microsoft Employee Moderator
2021-07-30T21:36:40.857+00:00

@Surendra Pratap Singh
Thank you for you post!

You can leverage the Pricings - List REST API to list the resources covered/not covered by Azure Defender. To do this you can review the JSON response, specifically the "pricingTier", since this will directly correlate to the pricing tier value of Azure Security Center - Free and Standard (Defender), which you can use to differentiate which resources are covered.

Pricings - REST API Overview

{  
  "value": [  
    {  
      "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/VirtualMachines",  
      "name": "VirtualMachines",  
      "type": "Microsoft.Security/pricings",  
      "properties": {  
        "pricingTier": "Standard"  
      }  
    },  
    {  
      "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/SqlServers",  
      "name": "SqlServers",  
      "type": "Microsoft.Security/pricings",  
      "properties": {  
        "pricingTier": "Standard"  
      }  
    },  
    {  
      "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/AppServices",  
      "name": "AppServices",  
      "type": "Microsoft.Security/pricings",  
      "properties": {  
        "pricingTier": "Free"  
      }  
    },  
    {  
      "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/StorageAccounts",  
      "name": "StorageAccounts",  
      "type": "Microsoft.Security/pricings",  
      "properties": {  
        "pricingTier": "Standard"  
      }  
    }  
  ]  
}  

If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

----------

Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.