How to extract azure advisor recommendation using powershell

Brass Contributor

Hi All,

 

How to extract azure advisor recommendation using powershell or cli ?

 

1 Reply

Hello @Sagar_Lad,

You can use MSGraph to accomplish this.

Azure Advisor API documentation contains Reccomendations Operation Category which will give you ability to programmatically get Azure Advisor Reccomendations.

There is also an official Microsoft.Graph module available on the PowerShell Gallery.

Hope that helps.