DEV Community

Cover image for How to spin a Windows Virtual Machine in Azure
Timilehin Olatunde
Timilehin Olatunde

Posted on

1 1 1 1 1

How to spin a Windows Virtual Machine in Azure

What is an Azure Virtual Machine?
An Azure Virtual Machine (Azure VM) is a cloud-based, on-demand computing resource provided by Microsoft Azure. It allows users to run applications and workloads on a virtualized server without needing to maintain physical hardware. Azure VMs provide scalability, flexibility, and cost-efficiency for various computing needs, such as hosting applications, databases, and development environments.

Step 1
Create a free trial account in Azure (portal.azure.com). A free trial account provides a subscription and $200 Azure credits

Step 2
Login into the azure account you just created. To achieve this, you must provide your username and password

Create a virtual machine

Step 3
In the Search Engine, type "Virtual Machine" and you will see the Virtual machine coming up as the first on the list, then you choose it

Virtual Machin

Now it displays and give option to create a virtual machine as below:

virtual machine

Step 4
Click the "Create" button to start the Virtual Machine creation Process and choose create a virtual machine hosted by Azure as in below picture

virtual machine

Now after clicking the above, the page below will appear

Virtual Machine

Step 5
Configure your project details which consist of Subscription and resource group as depicted in the above picture. Lets leave the subscription name as default. Then click on "create new" to name the "Resource group" as "test_group"

Virtual Machine

Step 6
Configure the Instance Details
As a computer always have a name, so is a virtual machine too because its also a computer too. So I have name this VM as "JohnsonVM" as seen below:

Virtual Machine

Step 7
Now, its time to choose the Operating System OS on the VM. I have chosen Windows 11 as below and leave others as default including the size

Virtual Machine

Step 8
The next step is to configure Administrator account which are the username and the password. Also, as depicted in the green box below, you also need to select Port, You will recall that our computers has inbound ports. Here we choose Remote Desktop Protocol (RDP) for the windows OS

VM

Step 9
Confirm Licensing and click Next till you get to "Monitoring"

Virtual Machine

Disable Monitoring until the VM is running. Then Review and create

Virtual Machine

To show that you have successfully been validated, it will display "Validation passed". Then you can now proceed to "Create"

Virtual Machine

It will let you know that your deployment is in Progress

Virtual Machine

Now you will notive the green mark showing you have successfully deployed your Virtual machine. The next step is to click and go to "Go to resource" button to access the VM we have just created.

Virtual Machine

You will now see that the status is Running and you also have a public IP address so it can be accessible anywhere in the world

Virtual Machine

At the top left of the screen above with the green arrow, you can now connect to access your Virtual Machine and the screen below will be displayed

VM

Click on "Select" to see the Native RDP. Then ensure you see that the configure prerequisites for native RDP has turned to "Configure". Then Click "Download RDP file"

VM

When you click on "Dowload RDP file", you will see the screen below

VM

Then Enter your Administrator Password to loginin

VM

WELCOME TO YOUR NEW VIRTUAL MACHINE
VM

I hope you enjoy the steps and you found it easy. Do follow me for more steps on how to make cloud computing easy

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay