0% found this document useful (0 votes)
77 views19 pages

Azure Virtual Network Setup

This document provides instructions for creating a virtual network in Azure, deploying two virtual machines onto that virtual network, and configuring the virtual machines to ping each other. The tasks include: 1) Creating a virtual network with an IPv4 address space of 10.1.0.0/16 and subnet of 10.1.0.0/24. 2) Creating two virtual machines named VM1 and VM2 in the same resource group and virtual network. 3) Testing connectivity between the virtual machines by opening a remote desktop connection to each VM and using PowerShell to ping between the VMs.

Uploaded by

vikibabu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views19 pages

Azure Virtual Network Setup

This document provides instructions for creating a virtual network in Azure, deploying two virtual machines onto that virtual network, and configuring the virtual machines to ping each other. The tasks include: 1) Creating a virtual network with an IPv4 address space of 10.1.0.0/16 and subnet of 10.1.0.0/24. 2) Creating two virtual machines named VM1 and VM2 in the same resource group and virtual network. 3) Testing connectivity between the virtual machines by opening a remote desktop connection to each VM and using PowerShell to ping between the VMs.

Uploaded by

vikibabu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

AZURE Lab – Hands on-4

Dynamic Networking Institute

1
LAB 04: Create a virtual network
we will create a virtual network, deploy two virtual machines onto that virtual network
and then configure them to allow one virtual machine to ping the other within that virtual
network.

Lab 4 Task List:


•Task 1: Create a virtual network
•Task 2: Create two virtual machines
•Task 3: Test the connection

2
Lab 4 - Task 1: Create a virtual network
1. Sign in to the Azure portal at https://portal.azure.com.
2. Select Create a resource in the upper left-hand corner of the portal.
3. In the search box, enter Virtual Network. Select Virtual Network in the
search results.
4. In the Virtual Network page, select Create.
5. In Create virtual network, enter or select this information in the Basics tab:

3
6. On the Basics page, choose a
subscription and enter the
following values for Subscription,
Resource group,  name & Region
in Instance details.
Resource group:
Create new or select already
created group ”myresourcegroup”
Container name: myVNET
Region: Pacific central India or wherever you want
4
7. Select the IP addresses Tab,
or select the Next: IP Addresses
button at the bottom of the page
and enter in the following
information then select Add

IPv4 address space: Enter 10.1.0.0/16


Add Subnet
Subnet name: Enter MySubnet
Subnet address range: Enter 10.1.0.0/24
Select Add.

 
5
8. Click Review + Create
and wait for validation pass

9. Once deployment has been


completed click on go to
resource

6
9. In Virtual Network Page,
Click on Overview tab,
Check the address space
and if want to modify that
Under setting of address and
Also you can add additional
address ranges as well subnet
in the future.

7
LAB 4 - Task 2: Create two virtual machines

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.
8
9
5. Under Administrator account, provide a username, such as azureuser and a password.
The password must be at least 12 Characters long.

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

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

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

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

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

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

16
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
6. Now the VM1 is created and connected, repeat the task 2 one more time to
create second VM2.
7. Open the VM1 and VM2 side by side

17
Lab 4 - Task 3: Test the connection
1. First go the powershell on both VM1 and VM2.
2. In VM1, try to ping the VM2 by typing the command “ping vm2”
3. In VM2, try to ping the VM1 by typing the command “ping vm3”
4. If request timeout error occurred, turn off the firewall (both private as well as
public firewall)
5. Go to the PowerShell and run the command again in both VMs .
6. Both the VMs are placed in a same Virutal Network same subnet, so the VMs
can communicate between each other

18
19

You might also like