This blog post shows the steps how to easily schedule Start/stop your ARM VMs.
For example on demo/dev environments you can save costs when turning VMs off when you are not using them.
I will show you the easiest way and therefore I will do everything from the portal without needing any scripting knowledge.
We are going to use Graphical Runbooks which are provided by Microsoft. With these Runbooks you are able to schedule start/stop ARM VMs for Azure subscription or resource group or a single named VM.
In this example I have already create Resource Group called Demo and it contains one VM.
And last we need to change temporary password. There are few steps you need to do:
1. Log out of Azure.
2. Log in to Azure as the Azure Active Directory user you just created, using full username (including part after @ symbol) and temporary password.
3. You will now be prompted to change the user’s password.
As we are going to use Microsoft Graphic Runbooks we need to have Automation credential asset called AzureCredential that contains the Azure AD user credential with authorization for this subscription and Automation variable asset called AzureSubscriptionId that contains the GUID for this Azure subscription.
Now repeat following steps for StopAzureRMVM (add custom value to ResourceGroupName and publish Runbook).
That´s it, happy scheduling!