VIRTUAL MACHINE-VM PROVISION ON AZURE PORTAL
Tags: signintoazure, createvirtualmachine, connecttovirtualmachine
Published: 2024-06-14 19:26:01


**WHAT ARE VIRTUAL MACHINES?** 
The easiest way to think of a virtual machine (VM) would be as a computer within a computer. Current technology and processing power now allow for easy creation of virtual computing environments within a “host on-prem” computer. VMs may be more sophisticated or less sophisticated compared to the host computer depending on configuration demands. VMs are not physical but virtual.  

To create a Virtual Machine on an Azure portal, the following are the steps.

**SIGN IN TO AZURE PORTAL**
Its totally impossible to provision a VM on an Azure portal without logging in to the portal. You cant log in to the portal without having a an Azure Account/login detail. Azure account must be created if not created earlier and login details provided at the portal gateway as below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jg93tgil9dp3t2o4fzms.jpeg)

**CREATE A VIRTUAL MACHINE**
**1.Enter The Virtual Machine:** After gaining access to the Azure portal, the next step is to get a way to start up the creation a the VM.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dsfufhfm3667izabg5ap.jpeg)

There are 3 ways to start up the VM creation
* By typing "Virtual Machine" in the search bar as in 1 in the diagram above
* By clicking on "Create Resource" as in 2 in the image above
* By clicking on "Virtual Machine " icon as in 3 in the image above

**2. In the Virtual Machines Page,** select Create (arrow 1) and then Azure virtual machine (arrow 2), then Create a virtual machine page opens.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f8v30it5urrtwdclomlp.jpeg)

**3. Under Instance Details:** Enter the desired name  for the Virtual machine name eg PreshVM (arrow 4 below), the desired Regions by proximity (arrow 5), Availability Option (arrow 6), Security Type (arrow 7), desired image of the windows (arrow 8), architecture of the virtual machine (arrow 9). All these basic configuration are based on requests, if in doubt others can be left as defaults.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l62urchy070iri1219bq.jpeg)

**4. Under Administrator Account**: Provide a customized username, such as PreshVM and a password. The password must be at least 12 characters long and meet the defined complexity requirements. Confirm password by typing the same password as typed in the first password bar.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wji604r52hznryxeqvb2.jpeg)

**5.Under Inbound Port Rules:** As shown ain the above diagram, Choose Allow selected ports to scrutinize the port way to the VM and then select RDP (3389) and HTTP (80) from the drop-down. These are set protocols and port rules for incoming traffics.

**6. Licensing:**Check the box to confirm Windows Eligibility License.

Kindly note that every of the steps in 1 to 6 are the basic configuration of the VM. All other option can be at default setting.

Click on NEXT to peruse through all other configuration options under **DISK, NETWORKING, MANAGEMENT, MONITORING,ADVANCED, TAG** for possible change of options. if none, the default setting is not a bad configuration too.

**7. Review And Create:** Select this option button at the bottom of the page or the last submenu after TAG. It will peruse, review through all the selections and option you have made, displace the financial implications as  its runs to validate stuffs. The system will request for your consent to CREATE the VM as below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s63wjraae6gzqedp3bv7.jpeg)

**8. Create:**On selecting the CREATE button, the system starts the deployment of the Virtual Machine. It will take a couple to minutes before this can be actualize. As this stage, other associated resources are created with the VM that would be created and the list will be displayed 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2so8gd8nh33hz9srshv.jpeg) 

On completing this task, it displays the image below, then you can be sure that your deployment is complete.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5al1lydpqsixkuvedurp.jpeg)

AFTER DEPLOYMENT, SELECT **GO TO RESOURCE ** this will allow you check the configuration of the Virtual Machine or any resource that you just created.

**CONNECTING TO VIRTUAL MACHINE**
Create a remote desktop connection to the virtual machine. These directions tell you how to connect to your VM from a Windows computer. 
1. On the overview page for your virtual machine, select the Connect 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nfjwrphhb5995gqubf71.jpg)

2. Click on DOWNLOAD RDP FILE
3. SELECT "KEEP" ON THE DOWNLOADED PAGE
Open the downloaded RDP file and click Connect when prompted.

In the Windows Security window, select More choices and then Use a different account. Type the username as localhost\username, enter the password you created for the virtual machine, and then click OK.

You may receive a certificate warning during the sign-in process. Click Yes or Continue to create the connection.