Automate daily checks for Azure VMs

Yu-Jeong Seo 110 Reputation points
2024-10-31T06:59:26.9133333+00:00

Hello, I would like to check the CPU percentage, Disk IOPS, and Memory availability values of Azure VMs daily in an Excel file.

I am considering using Azure Automation for this. Is there a script that I can refer to for automating the process of retrieving these values for multiple VMs every morning, creating an Excel file, and uploading it to Blob Storage?

Alternatively, I would appreciate any recommendations for affordable Azure resources that can help me check these values daily.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,261 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,606 questions
{count} votes

Accepted answer
  1. Ryan Hill 28,716 Reputation points Microsoft Employee
    2024-11-02T03:39:25.39+00:00

    Hello @Yu-Jeong Seo

    Following the Chart performance with VM insights - Azure Monitor | Microsoft Learn guide would certainly be easier. It charts everything for you, but you do have to pay for the Log Analytics storage. Even that's something you really want to avoid; I think getting by with Get-AzMetric is certainly doable. To get 5-minute intervals, use PT5M for -TimeGrain.

    0 comments No comments

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.