Azure VM Reboot Schedule

Martin Leather 6 Reputation points
2023-01-05T21:55:12.907+00:00

Is it possible to schedule an Azure VM to reboot on a specific day of the month that is recurring based on which day of the week it is? Or do they have to be scheduled

Example:

I'd like my server to reboot on the 3rd Tuesday of each month, regardless to what date that falls on.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,240 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. mohamed hussien rabea 21 Reputation points
    2023-09-19T08:31:01.7133333+00:00

    It can be applied using the runbook and automation account. You can verify this by checking my article below, which has been tested and is functioning perfectly.

    https://www.linkedin.com/pulse/scheduling-reboot-azure-virtual-machines-using-automation-rabea/

    2 people found this answer helpful.
    0 comments No comments

  2. Luke Murray 11,086 Reputation points MVP
    2023-01-05T22:06:40.523+00:00

    Not using the default auto-shutdown, but you can create a Stop-AzureVM runbook, using Azure Automation and PowerShell and use the Azure Automation schedules to do that.

    https://learn.microsoft.com/azure/automation/overview?WT.mc_id=AZ-MVP-5004796
    https://luke.geek.nz/azure/deallocate-stopped-virtual-machines-using-azure-automation/

    0 comments No comments

  3. tbgangav-MSFT 10,416 Reputation points
    2023-01-10T04:03:28.483+00:00

    Hi @Martin Leather ,

    In addition to @Luke Murray 's response, you may also try Start/Stop VMs V2 feature to reboot Azure VMs which provides a decentralized low-cost automation option for customers who want to optimize their VM costs. For more information with regards to it, you may refer this Azure document.

    0 comments No comments

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.