AI News Hub Logo

AI News Hub

How to deployed a virtual machine on azure.

DEV Community
samuel eze

This article is all about the simple steps to take when deploying a virtual machine in azure. virtual machines are useful because it lets you use a computer inside the cloud instead of depending only on a physical laptop or desktop. so lets get this done with the following steps step 1 first we must create a resource group, so on your azure portal, search and select resource group. step 2 click on +create step 3 select a subscription, create a unique resource group name, select your region and click on review + create step 4 after validation is done ,click on create resource group now we can proceed to creating a virtual machine. step 5 now lets create virtual machine, firstly on your azure portal, search for virtual machines. step 6 click on +create step 7 select the resource group earlier created, give the virtual machine a name, select your region, on availability options select no infrastructure redundancy required select windows 11 for security type. step 8 check the run with azure spot for available discount, navigate through to check for sizes and select a suitable size for your pc, create an administrator username, create a password and confirm it. step 9 on the inbound port select HTTP(80), RDP(3389) click on review + create step 9 after it has been validated click on create -step 10 after deployment Goto resource step 11 on the overview page, click on the IP address step 11 navigate the idle timeout minute and increase it to 30 minutes and click apply. - how to associate and disassociate public IP addresses step 12 on your azure portal, search for public IP addresses step 13 already the vm has an IP address, click on the vm. step 14 on this overview page you can choose to dissociate the it by just clicking on disassociate and confirm. step 15 you can choose to associate it by jus clicking on the associate icon, for the resource type select network interface, then for the interface select the already created vm and click OK. step 16 go back to the vm, click on the connect icon, step 17 you can confirm access by clicking on the check access button. go ahead to download RDP file step 18 download file and connect - step 19 fill in your credentials and click OK step 20 click on YES to connect - you will get a new interface as shown on the image below, and that is how we successfully deployed a vm in azure. With this few steps we were able to create a virtual machine in azure, we dissociated and associated our IP addresses without any difficulty.