Windows Azure turns off virtual machines through PowerShell

Source: Internet
Author: User

the previous blog post introduced Windows Azure 's login management approach with web portals and PowerShell management, and today we'll cover how to use PowerShell To control the opening and closing of virtual machines

First, install Microsoft Azure SDK and connect to Azure, as described before, here is not detailed

Open PowerShell

Enter GET-AZUREVM to view the current virtual machine information

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/3C/wKiom1cXQOWwrYfBAAAltt5bSxo416.png "title=" 1.png " alt= "Wkiom1cxqowwryfbaaaltt5bsxo416.png"/>

Enter get-azurevm–servicename "Testcloud" –name "testvm01" view testcloud cloud service testvm01 Virtual machine details, we see the current virtual machine is in the boot state

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7F/3C/wKiom1cXQO-T7KfzAABP2z1eyYE905.png "title=" 2.png " alt= "Wkiom1cxqo-t7kfzaabp2z1eyye905.png"/>

We shut down the TESTVM01 virtual machine by command STOP-AZUREVM command.

-servicename: Cloud service Name

-name: Virtual machine name

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/3C/wKiom1cXQPnB7U4GAAAME7szVRM542.png "title=" 3.png " alt= "Wkiom1cxqpnb7u4gaaame7szvrm542.png"/>

Complete the virtual machine closed

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/3A/wKioL1cXQcDSo2s7AAAY21gHt8M478.png "title=" 4.png " alt= "Wkiol1cxqcdso2s7aaay21ght8m478.png"/>

View Virtual machine Status

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/3C/wKiom1cXQQbzjWX3AAA-8iu9EzQ846.png "title=" 5.png " alt= "Wkiom1cxqqbzjwx3aaa-8iu9ezq846.png"/>

Turn on virtual machines via START-AZUREVM

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/3A/wKioL1cXQdHAsfamAAALcADPRY0759.png "title=" 6.png " alt= "Wkiol1cxqdhasfamaaalcadpry0759.png"/>

Completing the Virtual machine boot

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/3A/wKioL1cXQdrhjC40AAAZqJ4lyrU967.png "title=" 7.png " alt= "Wkiol1cxqdrhjc40aaazqj4lyru967.png"/>

To view the virtual state, the virtual machine has completed booting

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/3A/wKioL1cXQeOyWnJkAABEGBEOoJM296.png "title=" 8.png " alt= "Wkiol1cxqeoywnjkaabegbeoojm296.png"/>

Restart virtual machine command:RESTART-AZUREVM, using the same method as start and close, not in the detailed description


This article is from the "Stit" blog, make sure to keep this source http://yourcloud.blog.51cto.com/1382814/1765864

Windows Azure turns off virtual machines through PowerShell

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.