how to configure auto shutdown/power on during specific weekdays and time for 1 x particular VM?

Kan Kok Keong 1 Reputation point

I got 1 x VM which we need to auto power off (Mon-Fri) @ 6pm and power on (Mon-Fri) @ 9am, weekend remain power off.

what is the best solution and steps for this?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,144 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 12,121 Reputation points

    @Kan Kok Keong - Welcome to Microsoft Q&A and thanks for reaching out.

    You must have certain permissions to enable VMs for the Start/Stop VMs during off-hours feature. The permissions are different depending on whether the feature uses a pre-created Automation account and Log Analytics workspace or creates a new account and workspace.

    You don't need to configure permissions if you're a Contributor on the subscription and a Global Administrator in your Azure Active Directory (AD) tenant. If you don't have these rights or need to configure a custom role.

    Once you have the role added, create a scaling plan with Name, location and TimeZone.

    Then Select Add Schedule and provide the details for Repeat Mode meaning which days you would that like to repeat.

    For more information on this, please refer to the below document: automation-solution-vm-management

    Hope this helps.


    If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

    0 comments No comments