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.
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.
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://docs.microsoft.com/en-us/powershell/module/az.monitor/get-azmetric?view=azps-6.3.0
Hope this helps you!
Hi,
When im trying to use the provided cmdlet along with my resourceId. Im able to see the name of the metrics but not the values.
@GoudKanthiAniketh-4694 Apologies for the delay in response. Can you help me understand what is the current permission you have on the subscription or resource group or VM which you are trying to retrieve information for?
Thanks
@GoudKanthiAniketh-4694 Can you please provide the information as per the ask so we can help you better.
Thanks
22 people are following this question.