How To Create Virtual Machine On Azure
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
- Feedback
- Edit
Quickstart: Create a Windows virtual machine in the Azure portal
- Article
- 3 minutes to read
Thank you.
Applies to: ✔️ Windows VMs
Azure virtual machines (VMs) can be created through the Azure portal. This method provides a browser-based user interface to create VMs and their associated resources. This quickstart shows you how to use the Azure portal to deploy a virtual machine (VM) in Azure that runs Windows Server 2019. To see your VM in action, you then RDP to the VM and install the IIS web server.
If you don't have an Azure subscription, create a free account before you begin.
Sign in to Azure
Sign in to the Azure portal at https://portal.azure.com.
Create virtual machine
-
Type virtual machines in the search.
-
Under Services, select Virtual machines.
-
In the Virtual machines page, select Create then Virtual machine.
-
In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new resource group. Type myResourceGroup for the name.
-
Under Instance details, type myVM for the Virtual machine name and choose East US for your Region. Choose Windows Server 2019 Datacenter for the Image and Standard_DS1_v2 for the Size. Leave the other defaults.
-
Under Administrator account, provide a username, such as azureuser and a password. The password must be at least 12 characters long and meet the defined complexity requirements.
-
Under Inbound port rules, choose Allow selected ports and then select RDP (3389) and HTTP (80) from the drop-down.
-
Leave the remaining defaults and then select the Review + create button at the bottom of the page.
-
After validation runs, select the Create button at the bottom of the page.
-
After deployment is complete, select Go to resource.
Note
Azure provides an default outbound access IP for Azure Virtual Machines which aren't assigned a public IP address, or are in the backend pool of an internal Basic Azure Load Balancer. The default outbound access IP mechanism provides an outbound IP address that isn't configurable.
For more information about default outbound access, see Default outbound access in Azure
The default outbound access IP is disabled when a public IP address is assigned to the virtual machine, or the virtual machine is placed in the backend pool of a Standard Load Balancer with or without outbound rules. If a Azure Virtual Network NAT gateway resource is assigned to the subnet of the virtual machine, the default outbound access IP is disabled.
Virtual machines created by Virtual Machine Scale sets in Flexible Orchestration mode don't have default outbound access.
For more information about outbound connections in Azure, see Using Source Network Address Translation (SNAT) for outbound connections.
Connect to virtual machine
Create a remote desktop connection to the virtual machine. These directions tell you how to connect to your VM from a Windows computer. On a Mac, you need an RDP client such as this Remote Desktop Client from the Mac App Store.
-
On the overview page for your virtual machine, select the Connect button then select RDP.
-
In the Connect with RDP page, keep the default options to connect by IP address, over port 3389, and click Download RDP file.
-
Open the downloaded RDP file and click Connect when prompted.
-
In the Windows Security window, select More choices and then Use a different account. Type the username as localhost\username, enter the password you created for the virtual machine, and then click OK.
-
You may receive a certificate warning during the sign-in process. Click Yes or Continue to create the connection.
Install web server
To see your VM in action, install the IIS web server. Open a PowerShell prompt on the VM and run the following command:
Install-WindowsFeature -name Web-Server -IncludeManagementTools When done, close the RDP connection to the VM.
View the IIS welcome page
In the portal, select the VM and in the overview of the VM, hover over the IP address to show Copy to clipboard. Copy the IP address and paste it into a browser tab. The default IIS welcome page will open, and should look like this:
Clean up resources
When no longer needed, you can delete the resource group, virtual machine, and all related resources.
Go to the resource group for the virtual machine, then select Delete resource group. Confirm the name of the resource group to finish deleting the resources.
Next steps
In this quickstart, you deployed a simple virtual machine, opened a network port for web traffic, and installed a basic web server. To learn more about Azure virtual machines, continue to the tutorial for Windows VMs.
Feedback
How To Create Virtual Machine On Azure
Source: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal
Posted by: ellisphyan1939.blogspot.com

0 Response to "How To Create Virtual Machine On Azure"
Post a Comment