This is Part 14 of azure tutorial. In this video, we'll discuss, how to create a virtual machine in
azure portal. If you watched our previous videos in this series, we discussed how to
create a virtual machine scale set. Creating a virtual machine is very similar to that. If
there is ever a need for you to create a single virtual machine, this is one of the ways to do it.
As usual navigate to portal.azure.com and search for virtual machine.
If you recollect from our previous videos in this series, this "Create
a virtual machine" blade is very similar to "Create a virtual machine scale set" blade.
The options are pretty much the same. As usual, we start first with the subscription and then
resource group. We can either select one of our existing resource groups
from the drop-down list or create a new one. For this example, let's create a new resource group.
I'm going to name it rg-test and then a name for our virtual machine. Common convention
is to use the prefix "vm" for virtual machine and let's name it "pragimtech".Next, the region where
we want our virtual machine to be created. If you are creating multiple virtual machines, it's a
good practice to replicate them in availability zones or availability sets to protect our
applications and data from datacenter failures and maintenance events. If you're new to availability
sets and availability zones, we discussed them in detail in parts 8 and 9 of this video series.
From the availability options drop-down list, let's select availability zone and then create
this virtual machine in availability zone 1. If we create another virtual machine, we'll create that
in zone 2. Next, image that is the base operating system you want on the virtual machine. You have
several choices here - Windows or Linux. When you click on this link "See all images" you have
even more options in the azure marketplace. For example, if you want to create a VM with Visual
Studio pre-installed you can use the search text box here to search for such an image.
If I drop this select list down, notice the first option here is Visual Studio Enterprise 2017
on Windows Server 2016. If you want Visual Studio 2019, the latest version as of this recording,
you can use this image right here. Similarly you will also find an image with SQL Server
pre-installed if you want to. There we go, we have many choices here. Now, as of this course
recording I haven't found a VM image with both SQL Server and Visual Studio pre-installed. Now,
if you're like me and you want to create a virtual machine for development purpose,
you may want both SQL Server and Visual Studio pre-installed. One of the choices we have here
is, to start with one of the base images, maybe with Visual Studio pre-installed and then install
SQL Server ourselves, or we can start with a base image that has SQL Server installed and then
install Visual Studio ourselves. The other option is to create a custom image with both SQL Server
and Visual Studio pre-installed and use that as the template to create our virtual machines. We'll
discuss how to do that in our upcoming videos. For this demo VM though, let's just stick to
windows 10 pro version. Spot instance - this option is great for cost saving. Basically,
it allows us to use unused azure capacity at a significantly low price. However, at any point
in time when azure needs the capacity back, the spot VMs are evicted with just 30 seconds
notice. Therefore, spot VMs are only good for workloads that can handle interruptions like batch
processing jobs, development or test environments, large compute workloads etc. The size of the VM.
It determines processing power, memory and storage capacity. An hourly price is charged
based on the VM size and operating system. Next, an administrator username for the virtual machine
Administrator Password
Confirm the password
Next, public inbound ports. We'll discuss the significance of this option
in our next video. For now, let's select "none". Confirm licensing and then review and
create. Validation passed. So let's click "Create". Our virtual machine creation
is in progress. There we go, our deployment is complete. Now, let's connect to this virtual
machine and log into it using RDP that is remote desktop protocol. For that, let's click on this
virtual machine name itself. We want to be able to connect using RDP, so let's click that
and then download the RDP file. Click on the downloaded file. It's trying to connect to
our virtual machine in azure. Let's give it a few seconds and see what's going to happen.
We have a connection error. We're unable to connect to our virtual machine in azure.
We'll discuss, how to fix this in our next video. That's it in this video. Thank you for listening.