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, make sure the correct subscription is selected and then choose to Create new resource group. Enter a name for the resource group.

Project details

1.2. Instance details

  • Under Instance details, enter a name for the Virtual machine name, and choose an image for your Image section. Leave the other defaults. The default size and pricing is only shown as an example. Size availability and pricing are dependent on the region and subscription.

Instance details

Some users will see the option to create VMs in multiple zones. Azure availability zones are physically separate locations within each Azure region that are tolerant to local failures. Use availability zones to protect the applications and data against unlikely datacenter failures.

1.3. Administrator account

  • Under Administrator account, select SSH public key.

  • In Username enter azureuser.

  • For SSH public key source, leave the default of Generate new key pair, and then enter key name for the Key pair name.

Administrator account

1.4. Inbound port rules

  • Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select SSH (22) from the drop-down.

Inbound port rules

2. Networking

  • In the Networking section, the virtual network creation is mandatory to create a virtual machine.

2.1. Creating virtual network

  • So, in order to create a virtual network, go to Networking section on the top and click on Create new under the Virtual network * section.

Networking

A virtual network is a distinct network environment for Azure resources. It’s like a private network in a datacenter. VMs deployed in a virtual network can communicate with each other using private IP addresses. Creation of a virtual network can be done before creating a virtual machine, or during the VM creation process.

  • On the Create virtual network page, fill in the following information

    • Name: Enter a name for the virtual network.

    • Address space: Enter the address space for the virtual network in CIDR notation (e.g., 10.0.0.0/16) or select from the list of addresses.

    • Subnets: Optionally create one or more subnets for the virtual network. A subnet is a range of IP addresses within a virtual network. VMs deployed in the same subnet can communicate with each other using private IP addresses.

Create virtual network

3. Review + create

  • Leave the remaining defaults and then select the Review + create button at the bottom of the page.

  • On the Create a virtual machine 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