How to create virtual machine in Azure

Creating virtual machine in azure is very easy however you need to know the work of each option you are going to select as the process of creating the virtual machine as each option holds importance and choosing the unwanted option can add lots of money in your bill.

Please follow below steps to create the virtual machine. I am assuming that you have your Azure subscription.

Step-1: Search for “virtual machines” in search box as shown below and then click on “virtual machines” as highlighted under services.

Step-2: Now click on “+ Create” and select “virtual machine” as shown below.

Step-3: Now select the subscription if you have more than one based on your environment/department (Production/ Staging/Dev/Test) and the type of virtual machine you are creating. In my example, I am selecting my subscription as “test environment” since this is going to be my test machine.

Step-4: Now specify the resource group name. You can create new one or you can select the existing resources group. In my case there is not existing resource group created so I am creating new one by clicking on “create new”. Post specifying the name, click okay. The purpose of resource group is to keep all the resources of the object in single group and they can be managed from single place.

Step-5: Now you need to specify the name of virtual machine.

Step-6: Now you need to specify the region where you VM will be created and running. The region should always be the near to the user physical location to decrease the latency and increase the speed of accessing the resources running on this VM. There are 35 regions are available as to date for Azure.

Note: All services are not available in all regions.

Step-7: As of now, we are not selecting any availability options as we do not need any redundancy for this resource. So select “No infrastructure redundancy required”.

Step-8: Select “security type” as standard as this machine does not require extra security like TPM and secure boot.

Step-9: Select “Image” as per your requirement. These are the images uploaded by Microsoft. These can be used as standard images. By default, it will show you generation 1 images and you want to change the generation 2 then click on “Configure VM generation” and select generation 2 on the next page and apply.

Now you select the images from the drop down as to windows/ Lunux/Ubuntu and server or client versions.

Step-10: Now you need to specify the size of the VM. This size means, how many vCPU, how much RAM, How many data disks can be attached and how large the temp drive will be attached. These sizes comes with the name where the defined vCPU, RAM will be assigned. You can’t have custom vCPU and RAM assigned to any VM. This size will confirm as to how much you have pay monthly for this VM.

Step-11: Now you need to specify the name of administrator account and password which will be created as part of virtual machine creation.

Note: The password size need to be between 12 to 123 character.

Step-12: Now you need to specify the inbound ports which will be allowed as part of this virtual machine creation on security group. Since it is window machine, we need RDP access for which we need port 3389 open.

Step-13: If you already have your OS license then select the below check boxes and then you will be using your OS license in this VM. It will reduce the cost of the VM drastically as the VM price includes the license cost as well. It will reduce the cost by almost 50%.

Step-14: Specify the disk type based on the performance. Below are the options of the disk and the explanation.

Step-15: In next steps, you have to specify the virtual network, subnet, public IP and specify the allowed inbound ports which need to be open post VM creation. In my case, I do not have any preexisting vNet, subnet and public IP which can be assigned so this process will create new. If you want to give your desired names for these items then click on “create new” and specify the desired name.

Step-16: Now click on “Review + Create”. It will run the validation.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.