Automate the azure cloud defender recommendation report

Chen, Nero 0 Reputation points
2023-08-14T04:32:01.99+00:00

Hi All,

I need to generate the azure cloud defender recommendation report monthly. Now I want to use the python SDK to automate it and export to a cvs file.There are 2 blocker I am facing:

  1. the data output from azure python SDK (https://learn.microsoft.com/en-us/python/api/azure-mgmt-resourcegraph/azure.mgmt.resourcegraph.resourcegraphclient?view=azure-python)can not be consume by python build-in json lib . Is there any python lib can achieve this?
    json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
  2. The limitation for the result output is 1000, actually,there are more 17000 records in the recommendation report. Is there sample to extract the full result?
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,233 questions
0 comments No comments
{count} votes