How to Create Deploy and Connect to a Virtual Machine on Azure
Tags: azure, virtualmachine, cloudcomputing, resourcegroup
Published: 2024-06-14 18:38:14



Step 1: Set up your Azure Account

Step 2: Create a Virtual Machine

Step 3: Connect to your Virtual Machine

Step 1: Set Up Your Azure Account
Sign Up or Log In:

If you don't have an Azure account, sign up at Azure Free Account.
If you already have an account, log in at Azure Portal.

Azure Subscription:

Ensure you have an active subscription. If you're new to Azure, you might start with a free trial which includes credits for initial usage.

Step 2: Create a Virtual Machine

Navigate to Azure Portal:

Once logged in, go to the Azure Portal dashboard.

Create a Resource:

Click on "Create a resource" in the left-hand menu.


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

Select Virtual Machine:

In the "New" section, search for "Virtual Machine" and select it.


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



Configure Basics:
Subscription: Select your Azure subscription.
Resource Group: Create a new resource group or select an existing one.


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

Virtual Machine Name: Enter a name for your VM.


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

Region: Choose the region from the dropdown where you want your VM to be hosted.


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

Choose the availability option and availability zone.

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

Image: Select the operating system or application for the virtual machine from the list of available operating systems.


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

Size: Choose the appropriate VM size based on your requirements (CPU, RAM, etc.).


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

Authentication Type: Choose "Password" and create a username and password for logging in to the VM.

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

Disk Options:
Configure the OS disk and any additional data disks if needed. Default settings usually suffice for general purposes.

Networking:

Configure networking settings. The default options are usually fine for a basic setup.
Ensure "Public IP" is enabled to allow remote access to your VM.

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

Management:

Configure monitoring, identity, and backup options. Default settings are typically sufficient for a basic VM.

Review and Create:

Review your configuration settings.
Click "Create" to deploy the VM.

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

Step 3: Connect to Your Windows 11 VM

Go to Virtual Machines:

Once the deployment is complete, navigate to "Go to Resource"

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

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

Select Your VM:

Find and select the Window Virtual Machine you created from the list.

Connect:

In the VM's overview page, click on the "Connect" button at the top.

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

Choose "RDP" (Remote Desktop Protocol) as the connection method.

Download RDP File:


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

Click "Download RDP File" and open it with your Remote Desktop then click "Connect"

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


Log In:

Enter the username and password you created during the VM setup process.

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

You should now be connected to your Windows 11 Virtual Machine.

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

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

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

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