Create a virtual machine in Microsoft Azure using PowerShell

Source: Internet
Author: User
Tags documentation

Get Virtual machine image

PS c:\windows\system32> Get-azurevmimage

Get virtual machine name only

PS c:\windows\system32> (get-azurevmimage). Imagename0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20131018-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20131018-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140115-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140115-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140213-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140213-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140306-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140306-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140327-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140327-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140618-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140618-zhcn0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140715-enus0c5c79005aae478e8883bf950a861ce0__windows-server-2012-essentials-20140715-Zhcn250d269906be4694a10aee49a3385f2d__suse-linux-enterprise-server-11-sp3-sap-cal-V103250d269906be4694a10aee49a3385f2d__suse-linux-enterprise-server-11-sp3-sap-cal-V108250d269906be4694a10aee49a3385f2d__suse-linux-enterprise-server-11-sp3-V203250d269906be4694a10aee49a3385f2d__suse-linux-enterprise-server-11-sp3-V206250d269906be4694a10aee49a3385f2d__opensuse-13.1-V102250d269906be4694a10aee49a3385f2d__opensuse-13.1-V10555BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201408.01-en.us-127GB.VHD55BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201408.01-zh.cn-127GB.VHD55BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201409.01-en.us-127GB.VHD55BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201409.01-zh.cn-127GB.VHD55BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201410.01-en.us-127GB.VHD55BC2B193643443BB879A78BDA516FC8__WIN2K8R2SP1-datacenter-201410.01-zh.cn-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201408.01-en.us-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201408.01-zh.cn-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201409.01-en.us-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201409.01-zh.cn-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201410.01-en.us-127gb.vhd55bc2b193643443bb879a78bda516fc8__windows-server-2012-datacenter-201410.01-zh.cn-127gb.vhd .... 

Requires 0.8.7 version of the Microsoft Azure PowerShell module, please refer to http://www.cnblogs.com/SignalTips/p/4106248.html for installation

Managing images using Windows PowerShell

Http://msdn.microsoft.com/zh-cn/library/azure/dn790330.aspx

Required pre-bound storage account, reference

Microsoft Azurestorageaccount for Powershell

Password to meet your own complexity

Create a single virtual machine

PS c:\windows\system32> new-azurevmconfig-name ' WinSerEss-1 '-instancesize ' Extrasmall '-imagename ( Get-azurevmimage) [12]. ImageName ' | Add-azureprovisioningconfig-windows-adminusername ' Anderson '-password ' | NEW-AZUREVM--Location' China East ' operationdescription                    operationid                             operationstatus---- ----------------                    -----------                             ---------------New-azurevm                             57c11fda-7545-4d0c-b3e2-67d461f23d3f    Succeeded

PowerShell see Create succeeded, in fact, virtual machine is not completely created, you can go to the portal to view

New-azurevmconfig

Http://msdn.microsoft.com/en-us/library/azure/dn495159.aspx

Azure Virtual Machine FAQ Update Time: September 2014

Http://msdn.microsoft.com/zh-cn/library/azure/dn683781.aspx

How to Configure a availability Set for Virtual machines

http://azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-how-to-configure-availability/

Manage the availability of virtual machines understand planned versus unplanned maintenance

http://azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-manage-availability/

Create a virtual machine in Microsoft Azure using 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.