For part of a project, I need to be able to display security center recommendations for a given resource group on a webpage. To be clear, I'm looking to access the data on the Recommendations
blade of Azure Security Center and filter that information by a resource group, only displaying the recommendations relevant to those resources.
I've been looking at two ways to implement this:
- Security Resource API seems to be a good starting place, however I can't find any API endpoint that will allow me to access the recommendations. I've found methods to
GET
security alerts and security tasks, but these are both reactive (i.e. something happened that you should know about), while I'm looking for preventative (i.e. something could happen, take these steps to mitigate the risk of it happening). - PowerBI dashboards also do almost what I want. I'm able to preview the number of recommendations, and one of the pages on the default dashboard even breaks those numbers down per resource group, but I still can't find a way to use this information in the way that I want.
An ideal solution would allow me to retrieve and display all resources recommendations scoped to a monitored resource group, with the following parameters:
- Resource Name
- Description
- State
- Severity
Is there any way to access this information from outside of Azure? Is it possible that I've overlooked something in the API or PowerBI documentation that would allow me to do this? I'm new to PowerBI, and I'm afraid that I'm misunderstanding a basic concept that may be right in front of me.
Thank you for your time!