David demonstrates how to create a virtual machine in Azure.
- [Instructor] As we've mentioned earlier, Azure provides the ability to have a platform as a service solution, Software as a Service solution, and also Infrastructure as a Service. Virtual machines in Azure is a great example of Infrastructure as a Service where the infrastructure that hosts the virtual machines is provided through Azure. So let's go ahead and build out some virtual machines and see how those are managed through our Azure portal. So in order to create a virtual machine, I can go here and click directly on this Virtual machine links and it brings me into the blade that manages my local virtual machines. I have no virtual machines in my environment, that's why none are listed here. If you had existing virtual machines, they would be listed here in order for you to manage them. So I'm going to go ahead and add a virtual machine. I can click on Add here or on Create virtual machine link down below. Either one will bring me to the same place. My window here to add a virtual machine gives me the ability first to choose a resource group. So what I'm going to do is select the resource group LinkedINRG, which I've been putting all my resources so far in this course. I'm adding all of the resources in my resource group so that later on I can actually delete them altogether as a single entity, and that's a great way of managing all of your resources. So now I'm going to give a name to my virtual machine, so I'm going to call this VM1_linkedIN. And as soon as I start to do that, it tells me hey, you've got some non-ASCII characters in there that are not allowed. Well, you can easily guess that that is the underscore, so I'm going to get rid of the underscore and call it VM1linkedIN. Notice that there's always a validation when you're providing name to your resources and this one is a great example of its limitations. Next, I have my region in which your virtual machine will exist. It's important to select a region that makes sense here because they are supplementary resources that we will create for this virtual machine where we need to define clearly the same region. So sometimes we don't have the choice of a region and the region that you choose here will define the lack of choices that you will have later on or the region that will be forced on you a little bit later on. Next, we have an option here for an availability set. An availability set or an availability zone are solutions that are put in place for redundancy of your services, so if some virtual machine becomes unavailable, you would have a second virtual machine available for you to answer your calls, similar to a cluster that you would create on premises windows environment, and we can actually define an availability set through this interface here. I'm not going to put an availability set for this virtual machine. Next, I have my image. So I can go ahead and select an image, so these are some of the images that are available. There are more if I click on Browse all images and disks, but some of these have been recommended to me as some of the most popular ones. So I can pick, for example, Ubuntu Server, some type of a Red Hat Linux version. I have also some Windows Servers current or older Windows Servers as well as some Windows 10 client machines if I'd like to. So I'm going to go ahead and select a Windows Server 2016 Datacenter, which is a typical image that I select for my infrastructure servers. And next, I have a very important option here, which is the size of the size of the virtual machine. So the size of the virtual machine is where you actually select what type of infrastructure will run in the background. Remember, this is Infrastructure as a Service, so what kind of infrastructure? You actually get to choose. Think about that you're shopping for a server hardware right now. Well, this is the equivalent. If I click on Change size, I have the list of all of the various sizes of hardware or infrastructure that can run my virtual machine. And notice that the prices go here and as little as these. So right now, I can have a B1ms virtual machine that is one of the lowest costs, or a B1s as well, and it tells you what amount of memory is available for those virtual machines, the number of disks that it supports as well as the temporary storage that is available, and the IOPS, input/output per second. Now you'll notice here that a greater input/output per second here is available in a B1ms as opposed to a B1s, but if I go down the list, I'm multiplying by a great number the availability of my input/output per second, so the availability of the resources of writing and reading to the disks of that machine. So it makes a really big difference. As well here, you have the Premium Disk Support, whether or not it's available or not, you notice that all of these machines have an availability of Premium Disk Support, and we'll take a look at the premium disks in a couple minutes. So I'm going to choose the B1s, click Select, so I've lowered the size of my virtual machine in order to reduce my overall cost. So I'm going to click now a username and password for the local administrator. Now I type Administrator and look at what it tells me: Usernames must not include reserved words. The name Administrator is so common that it prevents me from using that as my login name, so I'm actually going to give it AdminAdmin and it's allowing me to use that name as my username to authenticate. Then I'm going to provide a password and I don't have enough characters, and now I do. Now you notice that the value for your passwords must be between 12 and 72. It is quite a high number. I have to confirm that. And both of my passwords matched, I can move on. Below, I have my Inbound Port Rules, specifying which TCP/IP ports will be allowed inbound. So for example, I may say that I will have a web server here that will only allow port HTTPS inbound. So these are the basic settings for defining my virtual machine. Let's take a look at the next settings in the next video.
- Fundamentals of cloud computing
- Controlling Azure costs
- Managing Azure using Azure PowerShell
- Implementing and managing Azure web apps
- Creating and managing virtual machines in Azure
- Exploring Azure Active Directory (AD)
- Creating a virtual network
- Creating network gateways