Share via

Start or stop automatically based on CPU utilization

김경림 106 Reputation points
2022-07-31T15:21:15.213+00:00

Hello.
Is there a way to automatically shut down a virtual machine when CPU usage is below a certain level? I wonder if GPO has this policy.
Also, I'm currently configuring it with Automation, but it's not working well, so I have relevant configuration data

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.


1 answer

Sort by: Most helpful
  1. Andrew Blumhardt 10,071 Reputation points Microsoft Employee
    2022-07-31T17:28:35.25+00:00

    Azure Monitor tracks VM utilization. Azure Monitor can call an action group. One action group activity option is a logic app. So you could trigger a logic app using an Azure Monitor alert that would shut down an underutilized VM. I recommend querying for resource utilization over time rather than a flat threshold.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

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