Azure Performance Metrics Portal monitor value is different when using Get-AzMetric Powershell script output

Jessah Mae Alogon 21 Reputation points
2022-11-17T07:32:44.763+00:00

Hi, does anyone can explain why there is a discrepancy in the Output of the Powershell script when I used Get-AzMetric command in obtaining the data from the Azure Performance Metrics Portal?

Azure Portal:
261341-azure-portal.jpg

261287-powershell.jpg

Internet Information Services
Azure AI Metrics Advisor
Azure AI Metrics Advisor
An Azure artificial intelligence analytics service that proactively monitors metrics and diagnoses issues.
82 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,522 questions
0 comments No comments
{count} votes

Accepted answer
  1. JasonPan - MSFT 5,466 Reputation points Microsoft Vendor
    2022-11-18T07:22:53.617+00:00

    Hi @Jessah Mae Alogon

    I think the reason these two results are different is because the time granularity is different. If you change the -TimeGrain, you can get different values. I am not sure the default values of time granularity in azure vm service. You can try 24hours for testing.

    Offical doc: Azure Monitor Metrics aggregation and display explained


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Jason


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.