Share via

Azure VM Auto restart

Vittal Kasaram 20 Reputation points
2026-04-03T04:33:28.6033333+00:00

I need to set up an auto restart for VMs in Azure. Can some one suggest on this.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Answer accepted by question author
  1. Ankit Yadav 13,050 Reputation points Microsoft External Staff Moderator
    2026-04-03T17:02:31.26+00:00

    Hey @Vittal Kasaram,

    thank you for clarifying your ask.

    For a fixed-time restart of an Azure VM, the most common option is Azure Automation with a scheduled runbook that runs Restart-AzVM on the VM at the time you choose. Microsoft’s Azure VM reboot guidance also notes that reboots can be triggered from the Azure portal, PowerShell, CLI, or REST API, so automation via one of those paths is the right approach for a recurring schedule.

    Best options:

    • Azure Automation runbook: Best if you want a true recurring schedule, such as every day at 2:00 AM. You create a schedule and attach it to a PowerShell runbook that restarts the VM.
    • Logic Apps: Good if you prefer a low-code workflow with a built-in recurrence trigger and an action to restart the VM.
    • Azure Functions + timer trigger: Good if you want code-based control and more custom logic.
    • Azure Monitor action group or alert automation: Better for event-driven actions, not ideal for a fixed daily restart.

    What I’d recommend

    If your goal is simply “restart this VM at the same time every day,” use Azure Automation. It is the cleanest and most standard option for scheduled VM operations.


    If you found this helpful, please don't forget to click on "Accept Answer"


0 additional answers

Sort by: Most 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.