From the course: Manage Virtual Machines in Azure
Create an Azure VM - Azure Tutorial
From the course: Manage Virtual Machines in Azure
Create an Azure VM
- [Instructor] If you're brand new to Microsoft Azure virtual machines and you just want to get a virtual machine up and running in the easiest way possible without worrying about all of the underlying technical details then this video is for you. In this video, I'm going to show you the easiest way to create a virtual machine, and then I'll come back in some of the later videos and talk about some of the technical details. So to get started, what you would need to do is click on create a resource. Now you'll notice that we have a shortcut to virtual machines. This shortcut only exists because I've already created some virtual machines in the past. Typically, if you're just getting started, what you would need to do is click on create a resource, because the virtual machine shortcut probably isn't going to be there. So I'm going to click create a resource, and then I'm going to click on virtual machine, and I'll click create. And this is going to take me to the create a virtual machine screen. So the first thing that we have to do is to select our subscription, which is selected by default. Next, we have to choose a resource group. If you've already got a resource group you're free to use it, otherwise, Azure will create a resource group for you. You can see that right now this is set to new resource group, so that's taken care of. The next thing that you have to do is to provide a name for the virtual machine that you're creating. You can call the virtual machine anything that you want, for the purposes of demonstration. I'm just going to call this virtual machine Windows. (keyboard clacking) Next, you'll want to select a region, or you can simply go with the defaults as I'm going to do here. And then scroll down a little bit and you'll need to select your virtual machine image. The image pertains to the operating system that's going to be installed on the virtual machine. As you can see, Azure defaults to using Linux, but we could make this a Windows virtual machine instead. So I'm going to click on the down arrow, and you can see the various operating systems that are available to us. I'm going to choose Windows Server 2022 Data Center and then I'm going to scroll down a little bit more. And we have to provide an administrator, a username and password. We can't just use administrator as the admin username. We have to give Azure something else. So I'm going to use Azure Admin for the username, (keyboard clacking) and then I'll supply a password, (keyboard clacking) and then I'll confirm that password, (keyboard clacking) now, we could click review plus create, but if I do that there's a validation process that has to occur, and the validation is going to fail because we haven't provided any networking details. So rather than going ahead and clicking review plus create, what I'm going to do is skip ahead and I'm just going to select the networking tab. So we have to provide a virtual network. We can click the down arrow to select an existing virtual network, or we could simply create a new virtual network which is the default behavior. We're also going to need a subnet and a public IP. And you can see the new ones are created by default if you don't select an existing one. So with that said, I'm going to go ahead and click review plus create, and our validation check passed, and you can see what the estimated price is for running this virtual machine instance. I'm going to go ahead and click on create, and now the virtual machine is going to be created. So we receive a message saying that the deployment is in progress, and the deployment process takes just a few minutes to complete. And so now we receive a message saying that the deployment was successful. So I'm going to click home, and then I'm going to click on virtual machines, and this is going to take me to the virtual machines console, and you can see the newly created virtual machine. So that's how you create an Azure virtual machine in the easiest way possible.