Introduction
As we know, Azure offers an Auto Shutdown feature under Operations to reduce costs by automatically stopping virtual machines. However, if a VM shuts down earlier than scheduled, there has been no built-in mechanism to start it again automatically. Recently, Microsoft announced that VMs can now be automatically started using an Automation Task.
In this article, we will explore how to configure an Automation Task to enable Auto Start for an Azure VM.
Step 1: In the Azure portal, select the VM you want to start automatically and navigate to Tasks under Automation.
![1]()
Step 2: Click + Add a task.
![2]()
Step 3: Choose the Start Virtual Machine template and click Authenticate.
![3]()
Step 4: For authentication, use your email address to authenticate the VM. If you want to receive email alerts, you can also authenticate Office 365. Then click Create.
![4]()
Step 5: Select Sign in.
![5]()
Step 6: Click Authorize.
![6]()
Step 7: Select your Azure portal email address.
![7]()
Step 8: After authentication, the status will show as Connected. Click Next to proceed to configuration.
![8]()
Step 9: In the configuration settings, select the required Start time, choose the appropriate Time zone, and set the Interval to 1 if the task needs to run daily. Set Frequency to Day. If needed, enable Notify me. Then click Review + Create.
![9]()
Step 10: After reviewing, click Create.
![11]()
Step 11: The scheduled task will now run every day. To view details, click View.
![12]()
Summary
In this article, we learned how to automatically start Azure VMs using an Automation Task. The underlying automation is handled by Logic Apps. If you need further clarification, feel free to leave a comment below the article.