In this demonstration we're going to look at creating a virtual machine from the Azure portal.
So let's head over there to begin.
And here we are in the azure portal and one of things you might notice if you have built virtual machines
before is things have changed a little bit over time.
Microsoft continues to change this part of the portal but we can go ahead now and click virtual machines
and see I've already got one virtual machine there.
That's just a Linux virtual machine I run it.
I'm going to add another one we're going to build windows virtual machine at this point.
So I'm going to click add straight away now you get to create a virtual machine panel that pops up and
you'll see they've added these tabs.
Now across the top to make it easier to go forward come back you know throughout the process itself.
If we go through the click subscription you choose your subscription that you want to provision this
virtual machine into and then choose the resource group that you want to use.
Now I've already got a resource group created called a Z dash demo where VM 0 1 is currently in but
I'm going to add another VM to that resource group.
So we'll continue to use a Z dash demo.
I now need to give it a virtual machine names.
In my case I'm going to call this VM demo 0 1 and now in each choose the regions I can choose any of
the azure regions that I'm entitled to provision into.
In my case I'm going to choose e U.S..
And next we have the availability options.
Now if I click this you will see that sometimes you will get availability zone.
Sometimes we will get availability set so availability sets were covered in one of the lectures.
And if you haven't jumped to that yet feel free to jump ahead to availability sets availability sets
are inside the same data center but allows you to have you know two virtual machines in separate racks
of power and network connectivity availability zones are in the same region but they're in separate
data centers in themselves so it's another way to get additional redundancy.
Now Microsoft is rolling these out gradually to all the regions if you click this icon it's blurred
out a little bit there but you can click the little blue thing that says view locations that support
availability zones and then you can choose those but definitely encourage you to understand the differences
between availability sets and availability zones because Microsoft is really emphasizing Availability
Zones going forward.
Next we choose the image.
So I'm going to choose from a Windows or Linux immature these all the standard ones available to.
And I can choose Windows Server 2016 directly from this pain.
Now note if I wanted to see all the images I can Click browse or images and disks that will show me
everything available to me from my marketplace.
But in my case I'm just gonna do a 2016 data center server.
Next we move on to the size so I can click change size here and this will give me all the different
VM size and options available to me and I can do various filters on these I can get rid of these filters
if I want to I can add additional filters right now so can a general purpose premium disk supported
small sizes right now.
So that's why I'm only getting a handful right there if I got rid of the small it's going to suddenly
open it up to a lot more sizes that are available to me and in some cases your subscription may just
not support that or perhaps you've also got a policy in place that doesn't allow you to choose specific
VM types but in my case when I go back up and I'm going to choose one of the B ones when it used to
be one M.S. that option that's a one you two gig of ram sports two data desks go to Max I observe eight
hundred includes a temporary storage drive with 4 gig on it and it's using premium disks and on the
right I can see my cost per month would be fifteen dollars forty cents estimated.
Now one thing to note with the B series as you probably heard about when we did the lecture on VM types
the B series does use the concept CPE credits.
So when you do provision them up they can take a little bit longer to build the purpose of B series
is really for web servers so that when they're not news they're generating credits when they are in
use they're consuming from those credits but you don't want to use them if you're running things at
100 percent all the time.
However they are very cheap to run for lab purposes you like to be one SCA smaller memory version you
got to be one m s which is that double memory version of the B one you know much cheaper to run you
know for the purposes of your lab but again they take a little bit longer to provision but if you select
one then go ahead and click select and then that takes you to the next section.
So now we need to include our administrator account and you'll notice that things like admin aren't
allowed.
That's a restricted word.
If I go back and I just type in say my name that is allowed and we can move forward with that.
And then you can go out and type in your password this is the windows password to get into the machine
once we've got all that typed in on the passwords match we can then move on to the inbound.
Port rules and this section is pretty important because if we want to order p into the machine say over
the Internet we do need to expose that so we can allow selected ports and we can choose the ports that
we want to expose or perhaps all P is one I want to expose.
This is great that they added those things aren't just opened by default.
You have to choose to allow those inbound ports to be open and you can further lock them down using
Azure security center.
And just in time access as well.
But for right now.
Yep just go ahead and select RTP if you do plan on connecting into the machine.
After you've deployed at which you'll need for some of the subsequent demonstrations that we do add
one thing to know is the one difference between Windows and Linux here is in Linux.
We could be prompted to generate a key and put that in Yeah or we could use user account windows we
just use user name and password for the administrator account.
If we keep going down the next thing we have is save money which is save up to 49 percent if you already
own an agile license for that Windows Server.
So if you already have one simply select yes and choose your license type.
You have to confirm that you have software assurance for that and that will reduce the costs that you
pay for those windows service.
This is a great benefit if you get a lot of windows machines that you move into Azure you will get a
cost benefit by already having that software assurance.
But in my case I don't see I'm going to click no and then move on to the next panel which is that disk
section.
So yeah we have our disk types and as you can see this machine because it is an S series does support
premium SSD as well a standard SSD and standard HDD as well.
I'm going to just go ahead and choose premium SSD for my discs there and then I can choose if I want
to create and attach a new disc or attach an existing disc as well so perhaps I deleted a machine but
I left behind a virtual hard disk that I want to attach to this machine.
I could do that though if I wanted to just go ahead and create a second disk.
And here you can see I can choose my disk type so if I want to use a different type to the one I used
for the primary disk so remember right now I've got that OS disk that's on premium ssd.
I also have that temporary disk that's on a local disk associated with the host that the virtual machine
runs on.
So that has specific use cases where I want fast access to a locally cached disk and then this disk
again I can choose SSD Premium Standard SSD or standard HDD in my case I'm just gonna choose a standard
HDD right now.
Choose the name of that disk that's the Azure name for the disk not the name and sight of windows the
size and then the source type.
If I want to choose a snapshot or a blob that I already have of a V HD I can do that but in my case
this is just going to be an empty disk that I attach with this virtual machine with that I click Okay.
And then we scroll down a little bit further and then I can move on to advanced pieces as well.
So if I want to use managed disks the default now is yes that's what we always recommend.
But if I wanted to manage the disks myself I could choose no that if I wanted to.
Next we move on to networking and in networking.
First of all you're going to see details around the network interface so when you create a virtual machine
a network interface card is created for you and is associated with the virtual machine.
I choose my virtual network that I want to connect this virtual machine to.
So again I could create a new virtual network or just connected to a virtual network.
I already have in your enterprise you'll probably have a scheme of networks and subnets that you want
to utilize.
Choose the subnet.
In my case I just have 10 0 0 0 slash 24 subnet that I'm going to use and whether or not I want to create
that public IP so I can click here.
By default it will prompt to create it.
But I could choose none if I don't want the public IP so perhaps I'm connected through my VPN or express
route from my datacenter that I have then I wouldn't need a public IP to access the machine or perhaps
I'm using a point to site VPN connection to get into the virtual network in Azure.
Again I wouldn't need a public IP but in my case I want a public IP so that I can just order IP into
it because this is an isolated Azure environment and I'm not connected in via any VPN or express connection.
Then we come across Nick network security group so again on a subnet I can have my network security
group and I could just rely on the rules there but I could also have a network security group associated
with the network interface card of the virtual machine itself.
Now I can choose not to if I choose none.
You can see that says all ports in this virtual machine may be exposed to the public Internet security
risk.
So obviously highly recommend you at least choose a basic one and then choose which ports you want there.
Or you can choose an advanced want to take away that basic option for you there but you would then configure
that network security group more specific to the rules that you want.
In my case I'm going to choose basic I'm going to choose allow selected ports and select RTP as we previously
did.
Next we have an option of accelerated networking in accelerated networking is only available on certain
instance types and certain operating system versions.
So perhaps you've got red hat 7 4 and you want to accelerate to networking that is available on that
machine on specific D series versions of the instance type and that allows faster network in between
virtual machines that have accelerated networking enabled essentially a bypass as one of the virtualization
layers and goes directly to the net card and just gives better throughput all around.
So that's when you would use accelerated networking.
Next we have load balancing.
So if we want to we can place this virtual machine in the back end pool of an existing load balancing
solution in our case right now.
We're not looking to do that or load balance this with other virtual machines.
So we will move on to the management section.
So under management you can see however few things.
First we have boot diagnostics so we can opt to turn these on or off.
And generally we just keep them on because it helps us diagnose any problems in the virtual machine.
We have OS guess diagnostics if you covered the monitoring section earlier on in the course or when
some of the other videos we have.
This is where you can turn on those guest level metrics or you can just keep them off and just rely
on the host level metrics from Asia and the diagnostic storage account which is where the diagnostic
logs associated with those two things are all going to be stored.
It will create one for you if you don't specify one for identity as will be covered later on and identity
you can assign a system managed identity you know automatically for you and then we have things like
auto shut down so enable an auto down is something I always always recommend you do in your lab environment
turn it on.
Choose the time whatever time zone you basically ends.
In my case I am in Central Time right now so I'm going to go back the other way.
Let's go to Central time U.S. and Canada.
And at 7 p.m. This machine will basically shut off automatically and that will save me costs in my lab
and I can choose to notify before a shutdown or not if I want to.
Next we have backup itself.
So one of the fantastic features about Azure is you have backup built in and it's as simple as clicking
enable backup.
Choosing your recovery services vault if you have one or creating a new one right now and choosing a
backup policy and there's already some of those already built in for you.
So if you do want to backup your virtual machine you know all production machines you should have this
turned on by default especially if you aren't using some other third party backup solution.
But for purposes of the lab I don't need to backup this machine so I'm going to turn that off and then
move on to guest config.
Now guest config is more focused around things like power shield DC extensions Chef Puppet et cetera.
They're not something we're going to cover right now but you will see them in a separate module in the
course.
If you haven't done so already.
So we're gonna move on to tags.
Tags already this way for us to organize our data.
You've probably seen some tag and demos already but that said it's one of my costs center in my case
my call center lab.
I can use this point in time to go ahead and add various tags to my build.
Finally I can review and create and this is great because it also gives us an option to download the
template and you'll see ALM templates and automation much later in the course but you can download the
template for use in your automation tools.
Right here.
You know before you go ahead and build it.
But if you are happy with it you know check through everything make sure everything is as expected and
then go ahead and click Create and that will begin building your virtual machine.
Windows machines B series take about you know five to 10 minutes to complete.
You know if you choose a D series and premium disk then they will be created and much less time.
And finally you know Linux machines a little bit quicker as well so plenty of options become monetary
or deployment here.
You can cancel it you know during deployment if you want to you can see the services in Azure that have
already deployed you'll notice the IP the NSG desks or all separate services.
You can watch them deploy there if you want to.
You can also go and see the template on the left hand side.
You can still download it here if you want to you can add it your libraries if you want to redeploy
you know similar machines.
This is a good way to kind of you know create that template and get it the way you want for deployment
later you know via automation.
But with that this concludes this demonstration and in the subsequent demos you will see how to connect
to your Windows or Linux machines.