Creating Virtual Machine In Azure Portal In A Virtual Network


The following article is the continuation of my previous article in which I have explained the concept of creating the Virtual Network on the Azure portal. You can find it at the following link.

As a continuation, we are going to see how to configure a Virtual Machine on the Azure portal in a Virtual Network. This configuration will help you to run your machine in a virtual network which you have created in a different data center. Now, let us see it in detail.

Creating the Virtual Machine

Log into your Azure portal and click on the "Virtual Image" menu in the left or go to "New", select "Compute", and select the "Virtual Machine" option. Then, click on "Create" button. The following is explained below.


Configuring the Virtual Machine

Now, you will be redirected to the "Configuration" menu. Choose the "Basics" option. You will be asked to enter the Virtual Machine name, username, password, and the resource group in which you want to create the VM. Once you do all these, click on the OK button.

Then, click on the "Size" option. You will be shown a few hardware configurations like HDD capacity, total number of cores, and the number of IPOS. Choose the appropriate configuration which you need and click "Select" button.

The next one is to configure the setting of the VM. Click on the Storage Account >> "Create new" option and create a new storage account. This is because you need a specific recognition option for the VM. Once you give a name, click on the "Create" button.

Now, we need to configure the network. This is where we are going to configure our Virtual Machine with the Virtual Network which we have created. When you click on the Network option, you will find the VNET which you have created. Select it.

Now, click on the subnet and leave it as default since you have already configured all these in the VNET configuration.

Now, the Public IP addresses are used to make sure that only authorized people are allowed to access the network. You can let it to be default or you can even choose it to be default.

Now, the network security is as same as this configuration. You can let the firewall be default or you can configure it according to your need.

The rest of all the settings are like - extensions and monitoring are based on your requirements. You can decide what you need and finally click on the "OK" button.

Finally, in the summary, you will see all the details which you gave in the configurations. You can make sure that all of them are perfect for your need and then, click on the "OK" button. This will initiate the create option for your VM. This will take nearly 5 to 10 min to create your VM based on the OS which you have selected.

Once your machine gets created, you can find your machine in the homepage of your portal. Click on the tile and you will be redirected to your Machine Settings. You can do changes to your machine, like adding VHD or adding more IOPS and etc.



Thus, the article has taught you the ways to create a VM on the Azure portal in a Virtual Network. Hope you have learned something new. In the next article, we will be writing the ways to create the load balancing in the Azure Virtual Machines.