DEV Community

Atul Vishwakarma
Atul Vishwakarma

Posted on

Creating and Connecting to a Virtual Machine in a Custom Virtual Network using Azure Portal

Step 01: Sign in to the Azure Portal

  1. Go to Microsoft Azure Portal.

  2. Sign in to your Azure account.


Step 02: Create a Virtual Network

  1. In the Azure Portal, click on "Create a resource" in the upper-left corner.
    Image description

  2. Search for "Virtual network" and select it from the results.
    Image description

  3. Click on "Create" to start creating a virtual network.
    Image description

  4. Fill in the required information such as name, address space, and subnet details.
    Image description
    Image description

  5. Once configured, click on "Review + create" and then click on "Create" to create the virtual network.
    Image description
    Image description


Step 03: Create a Virtual Machine

  1. In the Azure Portal, click on "Create a resource" again.
    Image description

  2. Search for "Virtual machine" and select it from the results.
    Image description

  3. Click on "Create" to start creating a virtual machine.
    Image description

  4. Fill in the required information like resource group, virtual machine name, region, image, size, etc.
    Image description
    Image description
    Image description
    Image description

  5. Under the "Networking" section, select the virtual network you created in step 2 and configure other networking settings as needed.
    Image description

  6. Configure other settings like disks, management, tags, etc., according to your requirements.

  7. Once configured, click on "Review + create" and then click on "Create" to create the virtual machine.
    Image description
    Image description


Step 04: Connect to the Virtual Machine using RDP

  1. Once the virtual machine is created, navigate to the virtual machine resource in the Azure Portal.
    Image description

  2. In the virtual machine's overview page, click on "Connect" at the top.
    Image description

  3. Download the RDP file and open it.
    Image description

  4. Enter the username and password for the virtual machine (these are the credentials you specified during VM creation).
    Image description

  5. Click "Connect" to initiate the RDP session.
    Image description


Step 05: Verify Connection

After connecting via RDP, you should be able to access the virtual machine's desktop and interact with it as if you were physically sitting in front of it.
Image description

Top comments (0)