web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Cloud Hosted DEV Environment Auto-shutdown & Auto-restart

(0) ShareShare
ReportReport
Posted on by 1,214

Hi,

we deployed the new cloud hosted DEV environment. Now that the environment usage is priced hourly, we need to control the environment operating time.

Seems like we can auto-shutdown the VM from azure portal, but is it possible to set auto-restart as well? How to set this up?

For example, we want to start the environment only during working hours from 9.30AM to 8.30PM from Monday to Friday. While we set auto-shutdown on 8.30PM, we want to auto-restart the environment the next morning on 9.30AM.

Thank you.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can do it using Azure Automation Account. It requires some work to set up initially, but after that you can easily add new startup schedules for new VMs.

    Here's one blog about it: sharegate.com/.../how-to-start-stop-virtual-machines-with-azure-automation

    Another option is the new "Tasks (Preview)" functionality in the VM settings. You can use it to auto-startup, but to me it seems that there's no option to run it only on weekdays.

  • WillWU Profile Picture
    22,361 on at

    Hi HAIRUL,

    For the Start and Stop operation, Azure has built in solution that you need to add and configure.

    See document:docs.microsoft.com/.../automation-solution-vm-management-config

    To add the solution, you need to create an Automation Account, then from the Automation Account menu click on Start/Stop VM.

    pastedimage1607412401341v1.pngpastedimage1607412460785v2.png

    Hope this helps.

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Hairul,

    Also, you can use DevOps pipelines to start\stop VMs

    marketplace.visualstudio.com/items

  • HAIRUL HAZRI Profile Picture
    1,214 on at

    Thank you Sergei,

    this seems like the easiest option. Also, it's free.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans