Azure Virtual Machine (VM) and It's Deployment
Tags: azure, cloudcomputing, virtualmachine, microsoft
Published: 2024-06-14 19:36:17

# Azure virtual machines

 These are on-demand, scalable computing resources offered by Azure.

## Purpose:
 Azure virtual machines (VMs) give you more control over your computing environment than other choices. You can use them for various purposes.

**Development and test:** Quickly create a VM with specific configurations for coding and testing applications.

**Cloud applications:** Run applications on VMs in Azure, scaling up or down as needed.

**Extended datacenter:** Connect VMs in an Azure virtual network to your organization’s network.


## Considerations Before Creating a VM

**Resource Names:** Decide on resource names.

**Location:** Choose where to store resources.

**VM Size:** Select an appropriate VM size.

**Operating System:** Decide which OS the VM will run.

**Configuration:** Plan how to configure the VM after it starts.

**Related Resources:** Consider other resources the VM needs.

## Billing and Resources

- When you create a VM, you also create supporting resources (e.g., virtual network, NIC).

- These resources have their own costs, so be aware of them.

- For example, a VM’s supporting resources include a virtual network and a Network Interface Card (NIC).


## Deploying a Virtual Machine

1.	**Sign in to Azure:** 
Access the [Azure portal](https://portal.azure.com/). If you don’t have an Azure subscription, create a [free account](https://azure.microsoft.com/en-us/free/?WT.mc_id=A261C142F).
2.	**Create a Virtual Machine:**

- Search for “virtual machines” in the Azure portal.

- Select “Virtual machines” under Services.

![test](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gvrso0mygedqkrqvho0e.png)

- Click “Create” and choose “Azure virtual machine.”


![Img](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elcy19eysurr9rqpzybg.jpg)


![Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/igly6a7vmh6c743thwm4.png)

- Select an existing Resource Group or create a new one (we will name it Example)

![Naming the RG](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ty6d985qox2uh9olzr3.png)
	

- Provide a name for your VM (e.g., “Example-VM”).

![Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vqb0jqplugtu88hlxgwf.png)


![Naming](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yr98wkrxhr3ybd0xipn2.png)

- Choose the Azure region that is right for you and your customers. Not all VN size are available in all regions.

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

- Availability options & Availability Zone: Select the availability preferences. for this blog we will choose "no infrastructure redundancy required"

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


- Select “Windows 11 Pro, version 22H2 - x64 Gen2 (free services eligible)” as the image.

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

- Set up an administrator account (username and password).

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

- Allow RDP (port 3389).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ep13dc5livebervp2oo.png)


- Review and create the VM.

![review](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uhlgd4ujs2pv8pmqddem.png)

We still have the storage, Networking, Management and tags but for this blog we will set it all as default so no changes is needed, we will finalize the deployment.


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

Now we will connect to the VM we just deployed.


![connect](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iuqf38o6gv839geiq268.png)

**Download RDP file**

Click on download RDP file.
Open file, it will prompt a box.
Click connect, enter the admin username and password of the VM.



![Download](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s74glbb3qg61453c5lka.png)



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



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



I’ve walked you through the process of creating a virtual machine in Microsoft Azure. You should have a solid grasp of the settings and configuration options. Virtual machines offer scalable computing resources and highly flexible approach to deploying and managing your applications in the cloud.