Automatic start and shutdown cloud hosted VM

 Most of the time our development VM running without use and that cause additional cost.

We can save the cost when VM is not in use we can shutdown and when we want to use we can turn on.
We have many ways to start and stop VM to save cost.

One of the way I will share in this topic. using this we can schedule automatically start and stop of VM using task.

A. Automatically start the VM

    1.       Login https://portal.azure.com/
    
    2.       Go to Automation --> Tasks(Preview) --> Add task 

    3.       Click on Start virtual machine
No alt text provided for this image
      4.        Authenticate the Azure VM and outlook(to receive the VM start/stop
related notification on your outlook)
No alt text provided for this image
     5.        Click on configure and create the task name, VM start time, time zone etc.

                If you want outlook notification related to VM start, mark yes to Notify me option.
No alt text provided for this image
    6.       We have configured and finally click on review + create 
No alt text provided for this image
B. Scheduling VM to automatically stop

    1.  Go to Operations --> Auto-shoutdown --> configure the VM stop time and email for VM stop notification
         
No alt text provided for this image


Note: Before shutdown VM, we will receive email notification and from there if we want to extend or skip
      VM timing we can do that. 
No alt text provided for this image

Comments

Popular posts from this blog

Execute D365 F&O SSRS report with parameter and upload report output on Azure blob storage using X++

Microsoft D365 F&O: Remove custom models from deployable package

Generate Text/CSV/DAT file using X++ and upload on Azure blob storage