Forum Discussion

BlogMI's avatar
BlogMI
Copper Contributor
Oct 24, 2024

Microsoft Defender for Cloud compute recommendations

Is there a current offline copy in Excel format of all compute recommendations  in Microsoft Defender for Cloud such as https://github.com/MicrosoftDocs/SecurityBenchmarks?
https://learn.microsoft.com/en-us/azure/defender-for-cloud/recommendations-reference-compute

3 Replies

  • BlogMI Hi, I hope this can help you: this script logs in to your Azure account, retrieves the security recommendations and exports them to a CSV file, which you can open with Excel

     

    Connect-AzAccount

    $recommendations = Get-AzSecurityRecommendation

    $recommendations | Export-Csv -Path "DefenderForCloudRecommendations.csv" -NoTypeInformation