Microsoft Azure Cloud Computing creates a Windows virtual machine deployment Web site in the portal

Source: Internet
Author: User

Azure virtual Machines (VMS) can be created from the Azure portal. This method provides a browser-based user interface to create VMS and their associated resources. This quickstart shows you how to deploy a virtual machine (VM) running Windows Server 2016 in Azure using the Azure portal. To view a running VM, you can log on to the VM and install the IIS Web server via RDP.

If you don't have an Azure subscription, you can create a free account before you start.


Sign in to Azure

Sign in to the Azure portal via https://portal.azure.com.


Create a virtual machine

In the upper-left corner of the Azure portal, select Create Resource.

In the search box above the list of Azure Marketplace resources, search for and select Windows Server Datacenter, and then choose Create.

Provide the VM name, for example, MyVM, leave the disk type as SSD, and then provide the user name, such as Azureuser. Passwords must be at least 12 characters in length and conform to the defined complexity requirements.




Enter basic information about the VM in the portal blade

Select the new resource group, and then provide a name, such as Myresourcegroup. Select the location you want, and then choose OK.

Select a size for the VM. For example, you can filter by calculation type or by disk type. The recommended VM size is d2s_v3.

Display VM-sized screens


Under Settings, leave all default settings, and then choose OK.

On the Summary page, select Create to start the VM deployment.

The VM is pinned to the Azure portal dashboard. When the deployment is complete, the VM summary is automatically opened.


Connecting to a virtual machine


Create a Remote Desktop connection to the virtual machine. These instructions indicate how to connect to a VM from a Windows computer. On a Mac, you need an RDP client, such as the Remote Desktop client provided by the Mac store.

Click the Connect button on the Virtual Machine Properties page.
Connect to an Azure VM from the portal

On the Connect to Virtual machines page, leave the default options to connect using the DNS name over port 3389, and then click Download RDP file.

Open the downloaded RDP file, and then click Connect when you are prompted.

In the Windows Security window, select more choices, and then choose Use a different account. Type vmname*username* as the user name, enter the password that you created for the virtual machine, and then click OK.

You may receive a certificate warning during the logon process. Click Yes or continue to proceed with the connection.

Installing the WEB server

To view the VMs that are running, install the IIS Web server. Open the PowerShell prompt in the VM and run the following command:

PowerShell

Install-windowsfeature-name Web-server-includemanagementtools

When you are finished, close the RDP connection to the VM.
Open port 80 for WEB traffic

Network security groups (NSGS) secure inbound and outbound traffic. When you create a VM from the Azure portal, an inbound rule is created on port 3389 where the RDP connection is made. Because this VM hosts the WEB server, you need to create an NSG rule for Port 80.

On the VM overview page, select Network.
The list of existing inbound and outbound rules is displayed. Select Add Inbound port rule.
Select the basic option at the top, and then select HTTP from the list of available services. You will be given port 80, priority, and name.
To create a rule, choose Add.

View the IIS Welcome page

IIS is installed and now has port 80 on the VM open from the Internet-you can view the default IIS Welcome page by using the selected Web browser. Use the public IP address of the VM that you obtained in the previous step. The following example shows the default IIS Web site:

IIS Default Site


Clean up resources

You can remove resource groups, virtual machines, and all related resources when they are no longer needed. To do this, select the resource group for the virtual machine, select Delete, and then confirm the name of the resource group that you want to delete.


More Azure Cloud Computing Forum resources can be accessed: https://bbs.iazure.cn



Microsoft Azure Cloud Computing creates a Windows virtual machine deployment Web site in the portal

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.