Microsoft Azure: Schedule an Auto-Shutdown

Today when I was meddling with my Virtual Machine (VM) in Microsoft Azure, I chanced upon this new feature known as “Auto-shutdown” under the section “Schedules” although this was originally released in November 2016. The piece of news can be found here. With this naming, it tells it all that Microsoft is helping us consumers to save some costs! (Thanks Microsoft!) #MicrosoftIsGreat.

Azure-AutoShutDown-01

Clicking on it further brings me into this simple form.

Azure-AutoShutDown-03

As you can see that this form is rather simple to operate which also means that it is missing some features that I can think off immediately upon seeing this.

Azure-AutoShutDown-04

Microsoft Azure team has built this feature to allow you to shut down at anytime at your convenience which is down right the whole purpose of this. I faced with tons of issues with time zone where I set an alarm at 6pm (GMT +7) and after a flight, it does rang only at the specified time zone even I return to my home land which is in (GMT +8).

One of the immediate limitation of this is, once you scheduled a time to have the resource to be shut down. It will be on run on a daily basis, which means that I will need to manually start the Virtual Machine if I need to. Well, a list of awesome features that I hope to see on this Schedules will be:

1) Auto-StartUp – Automatically start the resource if it is not in the Stopped State at a specified time.

2) Allow more granular control such as:

  • Control by Shutting down on a specified day of the week/month
  • Control by Starting up on a specified day of the week/month

3) What is better is, if I can even start/stop a resource by using my Mobile Device (regardless of Email/Mobile Application)

Cheers,
Milton

Microsoft Azure: Schedule an Auto-Shutdown

Automation: Using Synology Task Scheduler

As part of the continuous series about “Automation”, I took a look at how my Synology DS 412+ could be part of the story. The situation is where every Monday of the week, my lab environment will need to be shut down as my helpers will be cleaning up my desk area therefore based on my past experiences where they meddle with my electrical appliances and causes it to shut down; therefore I always shut down all my equipment on Monday. However, lately I am getting a little lazy of shutting them down via the readily available web-console so I took a look at the Task Scheduler within Synology NAS.

Let’s take a look at what it offers.

Capture_01

It looks amazing with lots to offer with the hefty price to pay for the tip-top performance that I am enjoying!

Capture_02

After navigating to “Hardware & Power”, I take a look at the “Power Schedule”.

Capture_03

I am able to set the schedule freely!

Capture_04

Within a few clicks, I am able to configure the NAS to shut down by itself at 3.15am on a Monday, prior to shutting down the NAS, I would have use some PowerShell scripts to shut down all the Virtual Machine that uses the NAS and the lab server to be shut down too.

It’s amazing to have all these automatically shut down without manual intervention!

Cheers!
Milton Goh

Automation: Using Synology Task Scheduler

It’s all about AUTOMATION!–New Continuous Series

Starting from today, I will be continuously exploring ways that I can automate certain manual process that is revolving around our day-to-day life which we didn’t notice that by spending perhaps an equivalent amount of time; we could then increase in Productivity, Efficiency and most importantly saving lots of time!

There was once I saw an article on LinkedIn where there is an image that really storm through my mind right now. The image depicts two guy trying to move a crane of stuffs without any wheels and another guy who came to offer them a pair of wheels to help lighten their load. The replies from the guys that are working is, “I am busy, I have no time for this.”

This directly portrait the kind of life we are heading, there are people who are working aimlessly everyday trying to get things done which has been assigned to them but we never ever had any time or opportunity to look at how we can improve ourselves.

While there is no one way that we could automate certain process, the following will just be some of the primary tools/methods that I will work with.

  • PowerShell
  • C#
  • SSH
  • Telnet
  • Putty

Cheers! Stay tuned…

Milton Goh

It’s all about AUTOMATION!–New Continuous Series