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.

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

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

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

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


Step 03: Create a Virtual Machine

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

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

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

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



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

  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.


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.

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

  3. Download the RDP file and open it.

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

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


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.

Top comments (0)