Windows Azure Virtual Machine (16)

Source: Internet
Author: User
Tags visual studio

Use Azure PowerShell to create Azure Virtual Machine

Note: The content of this chapter is similar to the previous [New portal]windows Azure Virtual Machine (12) where the operating system VHD is produced locally and uploaded to Azure (2), suggesting that the reader preview the relevant content first.

I've been giving you a lot of information about Windows Azure, which is basically created through the Windows Azure Management portal. This is a straightforward way to create, but if IT administrators need to create 1000 azure services at the same time, the cost of the work is enormous.

In fact, we can manage Windows Azure through the Windows Azure PowerShell through a command-line approach. This makes it easy to do operations such as bulk-Create azure Virtual machine. Let's start with this chapter.

1. First please install Windows Azure PowerShell, the address is http://go.microsoft.com/?linkid=9811175&clcid=0x409, after downloading completes installs through the Web installer.

2. After installation, run Azure PowerShell as an administrator. The following figure:

3. If you are running Azure PowerShell for the first time. We want to create a certificate file locally. For the local computer and Azure to establish a reliable secure connection. Please enter the following command in Azure PowerShell:

Get-azurepublishsettingsfile

4. The computer will pop up a new IE window and navigate to Windows Azure. And asked us to enter the username and password landing Azure and login.

5. After the landing, the system will ask us to save the file extension publishsettings, we save to the local computer on the disk. The following figure:

6. Then we go back to the Azure PowerShell window and continue to enter the following command:

Import-azurepublishsettingsfile <PathToFile>

PathToFile is where we save the file location (file path + filename) with the extension publishsettings in step 5, for example, if I save the file to the D-Packing directory, we enter the following command:

Import-azurepublishsettingsfile ' D:\Windows Azure msdn-visual Studio ultimate-7-2-2013-credentials.publishsettings '

The above command actually uploads the local publishsettings file to Azure's management certificates. We can open the Azure Management Portal. Click the settings and select Management certificates to view the uploaded publishsettings file. The following figure:

Related Article

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.