Skip to content

Get-AzAdvisorRecommendation does not return savings for Microsoft.Compute/virtualMachines #13133

Open
@mehowq

Description

@mehowq

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

Metadata

Metadata

Assignees

Labels

AdvisorService AttentionThis issue is responsible by Azure service team.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions