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