Create a virtual network

  • Post category:Solutions
  • Reading time:4 mins read

The aim of this lab is to create and deploy a virtual network, create two virtual machines on this Vnet, and configure one of the machines so that both of the machines can ping each other.

Let’s Create a virtual network

  1. Login to Azure portal https://portal.azure.com.
  2. Click on the All services blade and search virtual networks and click on the virtual networks tab as shown below:Azure Vnet
  3. Now click on + Create and fill details under basics as mentioned in table 1.Azure Vnet
    Fields Value
    Subscription Default
    Resource Group Create a new reource group if you do not have one else select the existing one
    Name thincloudly_vnet1
    Region (US) Central US

    Table 1.

  4. Please click on the review + create a tab to complete the validation and once validation completes please click on create button and wait for the deployment completion.

Now we have completed the first part of the lab let’s move on to the next part wherein we have to create 2 virtual machines.

Let’s Create 2 virtual machines

  1. Go to all services blade search and click virtual machines.
  2. On the Virtual machine blade please click on +create and +Virtual machine.Azure Vnet
  3. Fill below details mentioned in Table 2. in the Basic tab :
    Settings Values
    Subscription Select default Subscription
    Resource group Create a new resource group or select an existing one
    Virtual machine name thinkcloudlyVM1
    Region (US) Central US
    Availability Options No Infrastructure availability required
    Image Windows Server 2019 Datacenter – Gen1
    Size Keep Default one
    Administrator account username thinkcloudly
    Administrator account password Thinkcloudly@1234
    Inbound port rules – **Allow select ports **
    Select inbound ports RDP (3389) and HTTP (80)
    Licensing Click on check box  and confirm the license eligibility

    Table 2. 

  4. Go to the Networking tab. It is important that the virtual machine be placed at thincloudly_vnet1. Default settings should be checked, but no changes should be made. Click on Review + Create and then click on create after Validation completes.Azure Vnet
  5. Continue with creating the second machine, while keeping an eye on your deployment. 
  6. Now create the second virtual machine to do that please follow the 1 and 2 and fill the details in table 3
    Settings Values
    Subscription Select default Subscription
    Resource group Create new resource group or select existing one
    Virtual machine name thinkcloudlyVM2
    Region (US) Central US
    Availability Options No Infrastructure availability required
    Image Windows Server 2019 Datacenter – Gen1
    Size Keep Default one
    Administrator account username thinkcloudly
    Administrator account password Thinkcloudly@1234
    Inbound port rules – **Allow select ports **
    Select inbound ports RDP (3389) and HTTP (80)
    Licensing Click on check box  and confirm the license eligibility

    Table 3.

  7. Go to the Networking tab. It is important that the virtual machine be placed at thincloudly_vnet1. Default settings should be checked, but no changes should be made. Click on Review + Create and then click on create after Validation completes.
  8. Monitor the deployment to get completed for both of the machines.
  9. You can check the status of both VMs in Virtual Machines blade:Azure Vnet

It is time to TEST !!!

 

We’ll check if the virtual machines can communicate with each other during the Ping test. If this fails, we will install an ICMP rule to enable the connection. Normally, the ICMP connection is blocked.

  1. Open All resources blade and check for thinkcloudlyVM1 then open Overview blade, and make sure the Status of machine is Running. If needed, please refresh the page to see the changes.
  2. On thinkcloudlyVM1 page please click on connect and then RDP and download the file.Azure VnetAzure Vnet
  3. Open the RDP file from downloads click on connect Azure Vnet 
  4. Give username thinkcloudly and password Thinkcloudly@1234 to login to VM.Azure Vnet
  5. In VM click on the Start button, and in Search type PowerShell, right click on Windows PowerShell and click on Run as administrator

Type below command to see if the machine is pinging second machine or not:  Ping thinkcloudlyVM2Azure Vnet

Congratulations!!! We are able to ping the VM2 from VM1 this LAB is completed here.

Please be aware after performing the lab you must delete or deallocate the VM or if it is in a running state, it will bill you and your subscription may be suspended.

Leave a Reply