1

I am able to retrieve Security Alerts using:

https://graph.microsoft.com/beta/security/alerts?$top=1 

Now I would like to retrieve the "recommendations" from an Azure tenant

We can see these recommendations in Azure portal -> Security Center -> Recommendations. We can see Recommendations blade under "RESOURCE SECURITY HYGIENE" tab.

Is it possible to retrieve Recommendations using Microsoft Graph? If so, can someone help me with correct URI to fetch them?

Marc LaFleur
  • 31,987
  • 4
  • 37
  • 63
Avinash
  • 2,053
  • 2
  • 14
  • 32
  • You use correct URL. You can test it on Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer?request=security/alerts&method=GET&version=beta&GraphUrl=https://graph.microsoft.com . Could you please clarify what is the problem with calling it? – Roman Patutin Jul 26 '18 at 08:44
  • Hi Patutin Thanks for the quick reply. URL which i mentioned above is retrieving the Security Alerts in Azure portal -> Security Center ->Security alerts. But I want similar API which will retrieve the recommendations in Azure portal -> Security Center -> Recommendations. – Avinash Jul 26 '18 at 23:28

1 Answers1

1

I did some further digging into the Azure api docs. You can’t use the Graph API as said but by the looks of things you can use the Resource Manager API to list the recommendations as Tasks from the security center. Let me know if that works for you?

Pete Philters
  • 869
  • 5
  • 12
  • Sorry for the late reply. The resource manager API is returning lot of Tasks but it is not returning the recommendation under Azure portal -> Security Center -> Recommendations – Avinash Aug 02 '18 at 20:23
  • Ok that’s good to know. Thanks for letting me know they weren’t the same. They looked like they were. I’m not sure of a way to help then. Sorry – Pete Philters Aug 02 '18 at 20:46
  • 1
    May be i checked this API rush at that time. Using this API i am able to retrieve the Security recommendations. That is why i am marking this as Answer. Thanks for the help Phil – Avinash Sep 05 '18 at 19:36