DEV Community

Salman Chishti
Salman Chishti

Posted on

Azure Virtual Machine: Create one in minutes

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

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

Click add and then virtual machine
Virtual Machines add button

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

Wizard/Form to create Virtual Machine

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

Create new Resource Group

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

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

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

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

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

Virtual Machine created!

Click go to resource :)

Deployment complete, Virtual Machine Created

Click connect, and then choose RDP

Click connect

Download your RDP file

Download your RDP file

Open The RDP file and click connect

RDP pop up dialog

When greeted with this screen you want to click more choices

VM login window

Then click use a different account

Use a different account

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

Click ok :)

Click ok

click yes :)

Certificate warning

Let your machine log in :)

Logging into the newly created Azure Virtual Machine

Hurray! Mission complete!

Windows on the Virtual Machine, logged in

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

Completely done?

Click into your resource group

Click into your Resource Group on Azure

Click delete resource group :)
Delete your resource group

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

Top comments (0)