Azure - Lab 01

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

AZURE Lab – Hands on-1

Dynamic Networking Institute

1
LAB 01: Create a virtual machine in the portal

Lab 01 Task List:

•Task 1: Create the virtual machine

•Task 2: Connect to the virtual machine

•Task 3: Install the web server role and test


2
LAB 01 - Task 1: Create the virtual machine

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

1. Enter virtual machines in the search

2. Under Services, select Virtual Machines

3. In the Virtual machines page, select Create and then Azure virtual machine .
The create a virtual machine page opens.

4. Under Instance details, enter newVM for the Virtual machine name and choose
Windows Server 2019 Datacentre – Gen 2 for the Image. Leave the other defaults.

3
4
5. Under Administrator account, provide a username, such as azureuser and a password.
The password must be at least 12 Characters long.

5
6. Under Inbound port rules, choose Allow selected ports and then
select RDP(3389) and HTTP (80) from the drop-down.

6
7. Leave the remaining defaults and then select the Review + Create
button at the bottom of the page.

7
8. After validation runs, select the Create button at the bottom of the Page.

8
9. After deployment is complete, Select Go to resource.

9
LAB 01 - Task 2: Connect to the virtual machine
Create a remote desktop connection to the virtual machine.
1. On the overview page for your virtual machine, select the Connect
> RDP.

10
2. In the Connect with RDP tab, keep the default options to connect
by IP address, over port 3389, and click Download RDP file.

11
3. Open the downloaded RDP file and click Connect when prompted.

4. 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.

5. You may receive a certificate warning during the sign-in process. Click Yes
or Continue to create the connection

12
Lab 01-Task 3: Install the web server role and test
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

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 the below shown

13
14
Clean up resources
When no longer needed, you can delete the resource group, virtual
machine, and all related resources.

1. On the overview page for the VM, Select the Resource group link.

2. At the top of the page for the resource group, select Delete
resource group.

3. A page will open warning you that you are about to delete
resources. Type the name of the resource group and select Delete
to finish deleting the resources and the resource group.
15

You might also like