Azure Virtual Machine: Create one in minutes
Tags: azure, virtualmachin, cloud, microsoft
Published: 2022-07-13 20:02:33


New to Azure? 

Need a more powerful computer? 📈 

Here's how to create an Azure Virtual Machine 

I have a video tutorial if you prefer:  How to create a VM on Azure in minutes - YouTube

If you're a student redeem free credits here: https://aka.ms/azure4students 

If not you can here: Create Your Azure Free Account Today | Microsoft Azure

On the Azure Portal you can hover over pretty much anything and see useful guides and your recent resources of each service.
![Hover over Virtual Machines on Azure to see free training and guides](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cl9oyitcqarbo2ngkw4p.png)
 
Let's search for Virtual Machines at the top

You can see the service on the left and documentation on the right hand side.

Let's click Virtual Machines
![Search for Virtual Machines on Azure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/15fb02d0o7bmnlcii9r4.png)
 

Click add and then virtual machine
![Virtual Machines add button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zotwbixwvyhr43l49ods.png)


Here's the form you get, you may have a different subscription name

![Wizard/Form to create Virtual Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cf0t3t447euq9o63261x.png)
 

Click create new for the resource group and give it a name :)

![Create new Resource Group](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pun6zsmlttg85y19llnf.png)
 

I've named it twitterdemo :) since I originally made this into a thread on Twitter, but you can give it any name you want

![Subscription and Resource Group selected](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7xi8avge9t2u30hr17u7.png)
 

I've filled in more details such as region, and changed the OS/image to be Windows 10 Pro, keeping the default recommended size. 

I've also put some login information which you want to remember!

![Filled in Image, Size, Username and Password for the Azure Virtual Machine Wizard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/06p6wgpviybkhm6x5bvg.png)
 
For this demo I'm using RDP (remote desktop protocol), but in production you want to use Just in Time or Bastion to secure access ;)

You can optionally configure disk/virtual network/tag, etc. settings on the next pages

Click review + create

![Remote Desktop Protocol to access your virtual machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w3cv42mvmcz7tbeextmy.png)
 


Review and create validation, make sure you're happy with all and then click create :) If anything has gone wrong here, make sure you haven't missed a step above. Feel free to message me on Twitter @SalmanMKC if you have any problems.

![Review settings, and validate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tkgiy6j18owpc9ghj9oc.png)

When you create a new virtual machine (assuming you didn't configure any other settings), it will create a virtual network interface for your Virtual Machine, a virtual network, a network security group, and a public IP address 

Get a cup of coffee☕

Come back in a few minutes⌛

![Resource creation on Azure for your Virtual Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y0unzmxeh8sx9ldt2qfb.png)
 

Virtual Machine created!

Click go to resource :)

![Deployment complete, Virtual Machine Created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbpylz41no567n15bn77.png)
 
Click connect, and then choose RDP

![Click connect](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8dk131aevmf76s05kct.png)
 
 
Download your RDP file

![Download your RDP file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ys1lt4f3ehof38qy2or.png)
 

Open The RDP file and click connect

![RDP pop up dialog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qu06jyxlz3g1pxm6kkd.png)




When greeted with this screen you want to click more choices

![VM login window](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27i6dmcoiz49ndvvhjwn.png)
 


Then click use a different account

![Use a different account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b5n7npk4jaczyyk0u8fx.png)
 


Enter your username that you chose in the email section of the wizard and your password that you configured in the wizard

![Log in: Use a different account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eriz82w31amr9k91sbkj.png)
 
Click ok :)

![Click ok](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/igmwmur9b4eh3rsac9rq.png)
 

click yes :)

![Certificate warning](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iovebr7hpiicfp98sy97.png)
 



Let your machine log in :)

![Logging into the newly created Azure Virtual Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mj42yj5jmdsd37hhu5jj.png)
 



Hurray! Mission complete!

![Windows on the Virtual Machine, logged in](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bn1b10veklfc8qmnuce3.png)
 



Once done, don't forget to go back to the portal and stop your virtual machine

![Stop your virtual machine on the Azure Portal once finished](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhobybweb8ofojd9yl7g.png)
 



Completely done?

Click into your resource group

![Click into your Resource Group on Azure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d75j75p2vjyrgjld2ch5.png)
 
Click delete resource group :)
![Delete your resource group](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ho8xxrifo982dl3zbj61.png)

Thanks for reading! I hope you enjoyed. I wrote this blog some time ago on my own site, but decided to start publishing here on Dev to as well. This is my first blog post here! :)

I also upload content on YouTube: https://youtube.com/salmanmkc

Connect with me
LinkedIn: https://linkedin.com/in/salmanmkc
Twitter: https://twitter.com/salmanmkc
https://github.com/salmanmkc