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, 2022 in Azure by Edureka
• 12,690 points
834 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, 2022 by Edureka
• 13,620 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, 2022 in Azure by Edureka
• 12,690 points
645 views
0 votes
1 answer

How to run scheduled scripts using Azure WebJobs

You can schedule the trigger to occur ...READ MORE

answered Apr 7, 2022 in Azure by Edureka
• 12,690 points
1,412 views
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, 2022 in Azure by Edureka
• 12,690 points
466 views
0 votes
1 answer

Difference between Azure CLI and PowerShell

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

answered Mar 25, 2022 in Azure by Edureka
• 13,620 points
1,623 views
0 votes
1 answer

Create Azure Resource Group using Bicep

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

answered Mar 25, 2022 in Azure by Edureka
• 13,620 points
1,265 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP