Windows Azure Platform Family of articles Catalog
This article describes the domestic Azure China service by century connected operation.
In some cases, we do not need to switch all virtual machines.
The script described in this article will show you how to use Azure Automation to switch machines according to the machine name of the virtual machine .
Script to boot on the machine name of the virtual machine: Http://files.cnblogs.com/files/threestone/StartVMByName.rar
Script that shuts down according to the machine name of the virtual machine: Http://files.cnblogs.com/files/threestone/StopVMByName.rar
Note that before importing the Runbook, modify the appropriate parameters as follows:
#set org ID[Parameter (mandatory=$true)] [String]$AzureOrgId="[Yourorgid]", #set the password for the org ID[Parameter (Mandatory =$true)] [String]$Password="[YourPassword]", #Set subscription name[Parameter (Mandatory =$true)] [String]$AzureSubscriptionName="[Yoursubscriptionname]", #set the virtual machine name, separated by semicolons. Virtual opportunity to start in sequence[Parameter (Mandatory =$true)] [String]$VMNamesArray="Aaa;sghazuios01;sghazuios02;sghazuios03", #set the time interval for each start, which must be numeric, in seconds[Parameter (Mandatory =$true)] [Int]$IntervalSeconds=50
Bo-Three Stone Blog (hereinafter referred to as Benbow), at the end of this blog article at the bottom of the right is not noted reproduced, source, provenance of the works (content) are the original, the site for the original content of the copyright reserved, do not arbitrarily reproduced, if the need for a friend can send mail contact me; reproduced original works (content ) must also follow the Creative Commons agreement "attribution-non-commercial use-consistent", be sure to indicate or retain the original source of the article and the information of the blogger (Lei Zhang) in the form of a text link, and be sure to keep in mind that the photograph works on this blog (www.cnblog.com/ Threestone) and other relevant watermark copyright information, otherwise deemed to infringe the original Copyright Act; Benbow declined commercial website reprint. All rights reserved, prohibit illegal and malicious plagiarism which violates the copyright protection Law of the People's Republic of China and related laws and Benbow (legal) statement.
Azure Automation (4) Set up the switch machine according to the name of the Azure virtual machine