Remotely manage Windows Azure virtual machines using Windows Azure PowerShell

Source: Internet
Author: User

For Windows Azure, if you're still using the Windowsazure.com portal to manage virtual machines, it doesn't look very big. Windows Azure PowerShell is a powerful scripting environment that you can use to control and automate the deployment and management of workloads in Windows Azure.

Installation

Install with Microsoft Web Platform Installer one click.

sign in to your Azure account

Start the installed Windows Azure PowerShell and use the "add-azureaccount" command to sign in to your Windows Azure account, such as:

If you have multiple subscriptions, you can set them through the "select-azuresubscription" command, such as:

Start, stop, and restart Windows Azure virtual machines

The Windows Azure PowerShell Cmdlet supports restarting, stopping, and starting virtual machine operations using the RESTART-AZUREVM, STOP-AZUREVM, and START-AZUREVM commands in the following format:

Restart-azurevm-servicename $cloudSvcName-name $vmname

Stop-azurevm-servicename $cloudSvcName-name $vmname

Start-azurevm-servicename $cloudSvcName-name $vmname

where "-servicename $cloudSvcName" represents the name of the cloud service, "-name $vmname" the name of the virtual machine. For example, use the "stop-azurevm" command to close a virtual machine, such as:

Use the "start-azurevm" command to start a virtual machine, such as:

For additional commands, see the related Help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.