Open
Description
Description
When Get-AzAdvisorRecommendation cmdlet returns cost recommendations for Microsoft.Compute/virtualMachines, the data doesn't include the savings amount which is available in the Azure Portal. However, the savingsAmount, savingsPercentage and annualSavingsAmount is available for Microsoft.ReservedInstances/reservedInstances recommendations.
Had a look at the api 2017-04-19 and it seems that the savings information for Microsoft.Compute/virtualMachines recommendations is not available there too?
Steps to reproduce
$recom = Get-AzAdvisorRecommendation -Category Cost
$costRecomVm = $recom | Where-Object {$_.ImpactedField -eq "Microsoft.Compute/virtualMachines"}
$costRecomRi = $recom | Where-Object {$_.ImpactedField -eq "Microsoft.ReservedInstances/reservedInstances"}
$costRecomVm[0].ExtendedProperties
$costRecomRi[0].ExtendedProperties
Module versions
Az.Advisor 1.1.1