{"id":463,"date":"2018-08-08T11:13:43","date_gmt":"2018-08-08T09:13:43","guid":{"rendered":"http:\/\/daxvisionerp.com\/?p=463"},"modified":"2025-10-27T08:25:24","modified_gmt":"2025-10-27T08:25:24","slug":"easy-automatic-shutdown-vm","status":"publish","type":"post","link":"https:\/\/daxvisionerp.com\/home\/easy-automatic-shutdown-vm\/","title":{"rendered":"Automatic shutdown of VM is easy"},"content":{"rendered":"<p>I was looking for a way to write a runbook for scheduled, automatic shutdown and deallocation of my Dynamics 365 for Finance and Operations (D365FO\/AX8) DEV VM. There are many posts about how to set it up with Azure\u00a0runbooks. I found that it is much easier than that. Thanks to the free <a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/devtest-lab\/\" target=\"_blank\" rel=\"noopener\">DevTest Labs<\/a> service there is an easy way for setting it up and it takes just a minute.\u00a0There is an auto-shutdown function already prepared for this:<\/p>\n<p><a href=\"http:\/\/daxvisionerp.com\/wp-content\/uploads\/2018\/08\/auto-shutdwon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-464 size-full\" src=\"http:\/\/daxvisionerp.com\/wp-content\/uploads\/2018\/08\/auto-shutdwon.png\" alt=\"Automatic shutdown of VM\" width=\"964\" height=\"639\" srcset=\"https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon.png 964w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon-300x199.png 300w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon-768x509.png 768w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon-480x318.png 480w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/a><\/p>\n<p>It is deallocating too:<\/p>\n<p><a href=\"http:\/\/daxvisionerp.com\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-465 size-full\" src=\"http:\/\/daxvisionerp.com\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating.png\" alt=\"Auto-shutdown is deallocating the VM\" width=\"990\" height=\"304\" srcset=\"https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating.png 990w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating-300x92.png 300w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating-768x236.png 768w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating-980x301.png 980w, https:\/\/daxvisionerp.com\/home\/wp-content\/uploads\/2018\/08\/auto-shutdwon_deallocating-480x147.png 480w\" sizes=\"(max-width: 990px) 100vw, 990px\" \/><\/a><\/p>\n<p>No need to work with automation accounts and workbooks. LCS, unfortunately, does not know that the VM is down. It still shows running, but it recognizes after the first\u00a0try of start or stop.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for a way to write a runbook for scheduled, automatic shutdown and deallocation of my Dynamics 365 for Finance and Operations (D365FO\/AX8) DEV VM. There are many posts about how to set it up with Azure\u00a0runbooks. I found that it is much easier than that. Thanks to the free DevTest Labs service [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"1080","footnotes":""},"categories":[19],"tags":[25],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-dynamics-365fo","tag-msdyn365fo"],"_links":{"self":[{"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":1,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":1403,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/posts\/463\/revisions\/1403"}],"wp:attachment":[{"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daxvisionerp.com\/home\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}