How to Download Regulatory Compliance Standard using Microsoft API ?

Jan Koudela Jr 0 Reputation points
2024-07-25T09:29:29.5866667+00:00

Hi, im sending regulatory compliance standards as a pdf to my clients and coworkers. but it is pretty tedious to do so by hand in the azure portal. I am looking for a way to download them as a pdf using the microsoft API. Has anyone done it or is it even possible ? I tried looking into it but havent really found much related to the matter. What i want to achieve is periodic sending of the pdfs to my coworkers using a script. I stumbled upon a similiar question but it didnt really help me: https://learn.microsoft.com/en-us/answers/questions/1292168/how-can-i-download-regulatory-compliance-standard

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,284 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,496 Reputation points Microsoft Employee
    2024-07-29T21:05:31.19+00:00

    Hi @Jan Koudela Jr ,

    The security standards in Defender for Cloud are based on Azure Policy initiatives or on the Defender for Cloud native platform. I don't think there's an out-of-the-box way to query the Regulatory Compliance Report from Defender, but you can query data for a particular policy or resource using Azure Powershell.

    To get the data for a particular policy:

    # get the policy compliance status
     Get-AzPolicyState -PolicyDefinitionName <the policy definitionName>
    
    # get the policy evaluation result
    Get-AzPolicyEvent -PolicyDefinitionName <the policy definitionName>
    

    To get the data for a particular resource:

    # get the policy compliance status
     Get-AzPolicyState -ResourceId <>
    
    # get the policy evaluation result
    Get-AzPolicyEvent -ResourceId <>
    

    There are more examples of this online like this one, but I have also reached out to a colleague on the Microsoft Defender for Cloud team to confirm whether there are more official guides they can share. I will update this thread as I hear/find more information.

    If the information helped you, please Accept the answer. This will help us and improve searchability for others in the community who may be researching similar questions.

    0 comments No comments