Windows Azure creates a virtual machine and publishes a test site

Source: Internet
Author: User

Many people have just started using Windows Azure and want to test the most basic features: using a virtual machine to publish a test site. Most of the features of an azure virtual machine are similar to local, and some settings require users to do special operations on the management portal. Next, we work together to complete the process from creating a win Server 2012R2 virtual machine to publishing a test site using that virtual machine.


After logging in to the Management portal https://manage.windowsazure.cn, select New > virtual machine > From library

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/4C/wKioL1VFzcaTagMeAAD294n7B78837.jpg "title=" 1.png " alt= "Wkiol1vfzcatagmeaad294n7b78837.jpg"/>


Select the image here, there are many versions of Windows and Linux images for our choice, the version is not described here. We have chosen Windows Server R2 Chinese version.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/50/wKiom1VFzXChFunqAAN_nVsJ2ww122.jpg "title=" 2.png " alt= "Wkiom1vfzxchfunqaan_nvsj2ww122.jpg"/>

Basic configuration of the virtual machine:


(1) Release date: Nothing to say.

(2) Virtual machine name: The user identifies and manages the virtual machine on the Azure management portal and, if necessary, can then rename it by deleting the virtual machine and reserving the disk > recreating the virtual machine using disk.

(3) Layer: The basic layer is relatively inexpensive and functionally impaired, such as the ability to provide load balancing and automatic scaling. Standard layers are generally used. price Comparison reference: Http://www.windowsazure.cn/home/features/virtual-machines/#price

(4) Size: virtual machine size will affect the number of CPU cores, memory, additional disks and other performance indicators. the virtual machine size can be reconfigured later through the management portal, and testing our choice of single core is sufficient. Virtual Machine size Reference: https://msdn.microsoft.com/library/azure/dn197896.aspx

(5) Username and password: the user name and password that will be used by RDP to telnet to the virtual machine. password requirements are complex : lowercase, uppercase, numeric, special characters, at least three kinds. the user name cannot be admin/administrator.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/4C/wKioL1VF0OmhqBpOAALZbrOURO4356.jpg "title=" 3.png " alt= "Wkiol1vf0omhqbpoaalzbrouro4356.jpg"/>


To configure a virtual machine:

(1) Cloud services: equivalent to the public network to provide services to the container, will give your virtual machine to provide DNS name, public IP, etc., and its deployment ID is also the Technical Support department to query the status of the virtual machine important information.


(2) Cloud service DNS name: This domain name can be resolved to Azure to your virtual machine assigned to the public IP address, can not be the same as other user settings , so I was forced to add win behind the webserver, Because webserver.chinacloudapp.cn has already been used by other users. In general, customers will put their own website domain name cname to this domain name, after the mapping, to the visitor service.


(3) Regional/geo-group/virtual network: This involves planning a virtual machine's network environment, taking into account that the difficulty level of this article is beginner, no more in-depth explanation. We have temporarily selected "eastern China" and "northern China", where users can choose a closer data center based on their physical location. If you are interested in Azure's virtual network, you can refer to: https://msdn.microsoft.com/library/azure/jj156007.aspx


(4) Storage account: If you already have a storage account, select one, and if you do not have a storage account, this option prompts "use an automatically generated storage account." Your Windows virtual machine system will be placed in a 127G VHD in the VHDs container under this storage account, and the Linux system disk will be 30G in the same location. Azure Storage Reference: http://www.windowsazure.cn/zh-cn/documentation/services/storage/


(5) Endpoint: that is, port mapping, in fact, the port of the virtual machine is not exposed to the public network, in order to access through the public network, you need to add such an azure intranet to the public network port mapping, Azure by default will add two to your Windows Server: PowerShell and RDP.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/4C/wKioL1VF2i3jQqFEAALA57StZBM834.jpg "title=" 4.png " alt= "Wkiol1vf2i3jqqfeaala57stzbm834.jpg"/>

As a final step, we just test the site and keep the default installation VM agent directly.

(1) VM Agent: Can be used to create, update and reset user information

(2) Configuration extension and security extension are not covered in this article, you can refer to Https://msdn.microsoft.com/zh-cn/library/dn606311.aspx


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/50/wKiom1VF36ezF--oAAKm3vH_oHU101.jpg "title=" 5.png " alt= "Wkiom1vf36ezf--oaakm3vh_ohu101.jpg"/>


When the virtual machine is created, we can see many virtual machine information on the virtual machine's dashboard, such as public IP, intranet IP, virtual machine physical location, deployment ID, subscription ID, location of the virtual machine disk, and so on, the monitor will draw the usage curve with the use of the virtual machine.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/4C/wKioL1VF5P-RFys8AAMLmsb9S1Y413.jpg "title=" 6.png " alt= "Wkiol1vf5p-rfys8aamlmsb9s1y413.jpg"/>

We're going to publish the site, so we need a 80 port mapping to find the endpoint interface

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/4C/wKioL1VF5mmys8jGAAFZKTl8z7k024.jpg "style=" float: none; "title=" 7.png "alt=" Wkiol1vf5mmys8jgaafzktl8z7k024.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/50/wKiom1VF5PzxJzWEAAEPpmygcJQ191.jpg "style=" float: none; "title=" 8.png "alt=" Wkiom1vf5pzxjzweaaeppmygcjq191.jpg "/>


Need to explain is: The server returns is the configuration Sqlalwayson function dedicated, do not choose, otherwise the site will not be accessible.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/4C/wKioL1VF5mrgnmvjAADGKUNKuhM461.jpg "style=" float: none; "title=" 9.png "alt=" Wkiol1vf5mrgnmvjaadgkunkuhm461.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/4C/wKioL1VF6abQqoejAAD_3tOsH6o320.jpg "title=" 10.png "alt=" Wkiol1vf6abqqoejaad_3tosh6o320.jpg "/>


The endpoint is added in two ways, the RDP virtual machine, the same principle.

(1) In the Virtual Machine dashboard interface, click on the connection below, download the RDP file, double-click. The user name and password are then verified, which we created before the virtual machine was created.

(2) Local computer running window > input mstsc> input webserverwin.chinacloudapp.cn:52386> Connection, then verify user name and password. The 52386 here is the RDP public port of the virtual machine, and the colon is necessary.


After you telnet to the virtual machine, use Server Manager to add roles and features:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/4D/wKioL1VF7NmQzcUgAAU46WBluvY066.jpg "title=" 11.png "alt=" Wkiol1vf7nmqzcugaau46wbluvy066.jpg "/>



In addition to selecting the server role, check the Web server IIS, the other is directly the next step by default.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/4D/wKioL1VF7Vqz_4fhAALmcUhfRAY857.jpg "title=" 12.png "alt=" Wkiol1vf7vqz_4fhaalmcuhfray857.jpg "/>


Webiis has a default website that can access the default website directly on the public network:webserverwin.chinacloudapp.cn


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/4D/wKioL1VF8KjxSfcpAAMAHeNdbB4652.jpg "title=" 13.png "alt=" Wkiol1vf8kjxsfcpaamahendbb4652.jpg "/>

Go such a connectivity test process can help unfamiliar with Azure's friends as soon as possible familiar with Azure, Microsoft Cloud as the most powerful public cloud platform in China, the future has unlimited space for development, quickly join the Windows Azure users in the ranks, Don't get out of the cloud industry.





This article is from the "[email protected]" blog, please be sure to keep this source http://winhe.blog.51cto.com/7547741/1641439

Windows Azure creates a virtual machine and publishes a test site

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.