Virtual machines in Azure can replace on-premises servers or even build a complete "born in the cloud" solution. In this lesson, learn how to create a basic Azure virtual machine using the portal.
- [Instructor] We are going to start this chapter by creating a very basic virtual machine using the Azure portal. From the dashboard, I'm going to go ahead and click Create a Resource. Next, I'm going to select Compute. And now we'll have a list of featured virtual machine images available to us. And you'll notice that it's not just Windows. There's also Red Hat and Ubuntu, et cetera. We're going to use the Server 2016 Datacenter image. And to create the virtual machine, we're just going to work through these tabs, and the first tab is Basics. Select your subscription, and your resource group. Next, provide a name for the virtual machine. I'm going to call it DemoVM. This will be followed by the region. Typically, you'll create virtual machines either to where you are, or where your clients are. if we wanted to do so. And the size is already populated for us, based on Microsoft's recommendation. Again, we could change this as required And here, you can turn on or off the filters. Next, provide a username and password. This will be followed by allowing our inbound port rules. By default, nothing is allowed to access this virtual machine. To allow access, select allow selected ports, and then choose from one of the four options. I'm going to go ahead and just select RDP. And if you already have a Windows server license, you can select yes to save money. We'll move on to the next step, which is configuring our disk. We have three disk type options, Premium SSD, Standard SSD, and Standard HDD. As this is just a demo machine, I'm going to go ahead and select Standard HDD. If I had a war quote that required very high IOPS, then I would definitely select the Premium SSD. And what you may be able to see here, which is grayed out, is that in preview, there is an Ultra SSD compatibility option. Again, that is in preview at the time of this recording in January of 2019. Next we have data disk. We're going to leave this as is. We're going to cover data disk in an upcoming lesson. I'm finally going to select on Advanced. For those of you who have been using Azure for some time, you'll be very familiar with using non-managed disks. Now, Microsoft recommends that all of your virtual machines use managed disks. If you prefer not to, for whatever reason, you can come into Advanced and then turn off use managed disks. And you'll have to configure the storage account. Next we move into Networking. I'm going to leave the defaults here. One thing I do want to point out, though, is your network security group options. If you choose none, all the ports on that virtual machine will be exposed to the internet. You have been warned. Basic will allow us to select from those four options. And if we click in Advanced, then we can go ahead and configure a network security group for other ports. We're going to leave it on Basic. If my VM supported it, I could enable accelerated networking. And finally, the last part of this section is configuring load balancing. when I provision it. This can also be done after the fact. Next, we're into management, and this is where you can turn on your monitoring options. if we like the system to authenticate to cloud services. Next, we have auto shutdown. We can configure this so that machine will shut down automatically when we tell it to. And finally, we can enable backup from here as well. There will be a chapter on backup coming up. Under guest config, we can go ahead and configure extensions. And again, we'll cover extensions a little later in this chapter. And finally, tags. We use tags to group our virtual machines. For example, let's assume that this machine falls under the finance department. So the key could be finance, and the value could be, in this case, it's a dove machine. Next, we can go ahead, review and create. A validation will be run. And at this point, all we need to do with everything we've set up. And that's it for creating a virtual machine using the portal.
- Configuring high availability with availability sets
- Configuring virtual networking
- Deploying scale sets
- Configuring metrics
- Automating Azure deployments with templates
- Creating virtual machines
- Applying PowerShell DSC
- Moving and redeploying VMs
- Managing VM backups