Azure Advisor Recommendations using PowerShell

0 votes
Where-Object $_.ImpactedField -eq "Microsoft.Compute/virtualMachines" Get-AzAdvisorRecommendation -Category Cost

I'm attempting to obtain the Cost Property for Virtual Machines on "Shut down or resize your virtual machine," but I'm not able to do it in the same manner as the data displayed in the portal.

Using PowerShell, automate the adviser suggestions.
Mar 4 in Azure by Edureka
• 9,540 points
126 views

1 answer to this question.

0 votes

The command appears to be correct. I don't have any Azure suggestions, but I can look at it once:

Get-AzAdvisorRecommendation -Category Cost | 
Where-Object {$_.ImpactedField -eq "Microsoft.Network/publicIPAddresses"}

It then offers me the appropriate advice. This seemed to work with:

"Microsoft.Compute/virtualMachines".
answered Mar 4 by Edureka
• 8,060 points

Related Questions In Azure

0 votes
1 answer

How do I use Powershell to create an Azure Web App that runs on Linux?

Try the command below: New-AzureRmResource -ResourceGroupName <ResourceGroupName> -Location ...READ MORE

answered Mar 25 in Azure by Edureka
• 9,540 points
54 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

VM Created from Image with Azure Powershell does not set ComputerName

It might be caused by the image ...READ MORE

answered Apr 1 in Azure by Edureka
• 9,540 points
34 views
0 votes
1 answer

Difference between Azure CLI and PowerShell

The Azure CLI comes with an installer ...READ MORE

answered Mar 25 in Azure by Edureka
• 8,060 points
75 views
0 votes
1 answer

Create Azure Resource Group using Bicep

Add a module to construct the resource ...READ MORE

answered Mar 25 in Azure by Edureka
• 8,060 points
89 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP