Azure VM Powershell Comands

Goud Kanthi, Aniketh 1 Reputation point
2021-09-02T16:50:04.337+00:00

Hi,

I'm new to powershell. Can anyone help me to retrive the Azure VM metrics (CPU Utlization, RAM Utilization, Logical diskspace used) using powershell for a time period of one month.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,157 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,381 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,371 Reputation points
    2021-09-03T10:05:54.387+00:00

    Hello Aniketh,

    Depending on what you want to achieve it might have different versions, but I think all that you need is here, using the Get-AzMetric cmdlet:

    https://learn.microsoft.com/en-us/powershell/module/az.monitor/get-azmetric?view=azps-6.3.0

    Hope this helps you!