Creation of Virtual Machine (VM)

Sign in to azure portal

  • Visit the Azure portal.

  • Sign in with your Azure account credentials.

Create virtual machine

  • Enter virtual machines in the search.

  • Under Services, select Virtual machines.

Search virtual machine
  • In the Virtual machines page, select Create and then Virtual machine. The Create a virtual machine page opens.

Create a virtual machine

1. Basics

1.1. Project details

  • In the Basics tab, under Project details, select from the available list of resource group (Or) choose to Create new resource group.

  • Enter a name for the resource group (Eg: document-resource) and click OK.

Project details

1.2. Instance details

  • Under Instance details, enter a name for the Virtual machine name (Eg: documents-vm).

  • Choose an image for your Image section (Eg: Ubuntu Server 24.04 LTS - x64 Gen2).

  • Leave the other defaults.

Instance details

1.3. Administrator account

  • Under Administrator account, select Password.

  • In Username enter documents-admin.

  • In Password enter the password and in Confirm password enter the password again to confirm.

Administrator account

1.4. Inbound port rules

  • Leave the Inbound port rules as default and click on Next : Disks → click Next : Networking.

Inbound port rules

2. Networking

  • In the Networking section, a new virtual network is already created by azure and selected by default.

Networking
  • Just click on Next: Management>Next: Monitoring>Next: Advanced>Next: Tags>Next: Review + create>.

3. Review + create

  • On the Review + create page, the details about the VM, which is about to be created, can be seen. Review the settings and select Create.

Review + create
  • When the deployment is finished, select Go to resource.

Go to source

Overview

  • On this page, the overview of newly created virtual machine can be seen.

Virtual machine overview

Create Inbound port rules

  • In the left side panel, under Networking section, go to Network SettingsCreate port ruleInbound port rule.

Create port rules
  • In the Add inbound security rule modal, under the Destination port ranges, enter the port number (Eg: 9090).

  • In the Protocol select TCP.

  • In the Name, enter the name of the entered port number (Eg: kafka-broker).

  • Click Add.

Add port numbers

Whichever installation is done in the VM, the corresponding port numbers must also be added using the Create Inbound Port Rules step as mentioned above.