How to create a Virtual Machine on Azure Portal
Published: 2024-04-30 13:21:30

**Step 1**: Visit Azure Portal, and make sure you have an account either free account, student account or organization account and login
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z3au5nwtjrklw5c4oye9.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77e1w1zdygbe9fgf45og.png)
After login with your details, below is how your azure dashboard looks like.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0pcmrhm50vr0yuts5kjr.png)
**Step 2.** There are different ways to create a virtual machine in Azure 
1. By searching on the search bar “Virtual machine”, select Virtual machines 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vu0qw4tylzp4yne7lnzu.png)
Or 
From the Dashboard, Select “Virtual Machines” and click “Create”.
Select Azure Virtual Machine ( if creating for the first time ) or “Azure Virtual Machine with present configuration if you already have established a configuration before. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zwwxo1wd34h1rjxoxrf.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qy3782staju0osjkxlcs.png)
**Step 3. **   On the create page, under the “Project Details” 
1. Select your subscription, if you have a free account, it will be selected as default, if its organization, select your organization subscription.
2. Select a resource group, if you don’t have a resource group, “Create new”.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1rl3fcqpzot5mukvo7fo.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zfy5ecjybbs6rkoetmli.png)
**Step 4: **Instance Details section, Under this, 
1. Name your Virtual Machine, 
2.  Select a region where you want your VM to be supplied
3. Select an availability option, this enable you have multiple zones where your VM can be deployed
4. Select the “Image”, in this case this is the type of Computer you want as a VM, select any of your choice, (Windows, 10, Windows 10pro Ubuntu, etc)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjgewfkjb9gwj5vaj79f.png)
**Step 5: **Administrator Account – This is the Username and password for your VM, whenever you want to access your VM (Which in order words, a Virtual Computer).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68wdjfg8cpwj93p0g9h6.png)
**Step 6: **Inbound port rules, check “Allow selected ports” to create multiple ports to access your VM.
Then Under Licensing, “Check the Box to confirm eligibility windows you choose”.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bx6oas2j3i94s3pv9siq.png)
**Step 7: ** Next Click on “Monitoring Tab”
1.	You are enable alerts for your VM, to get report or updates on your resource
2.	Under diagnostic, you can enable with storage, depends on the purpose of your VM
But for this VM, I will disable Boot diagnostic, because this is just a sample process to create a VM..
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqj464fzmjvq5gux87x7.png)
**Step 8.** Networking, Click on the Networking Tab and create a Network for the VM for it to be accessible, 
1. Select the default address space and Subnets, then click “Ok”.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0w4rgi4qdvuk4y8oksv.png)
**Step 9.** Tag Tab, Create a “Tag” for your VM.
Then Click Review and Create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ahsl36kvysymxpntf906.png)
After Review and create, the below screen will pop up, to indicate “Validation passed”, then click “Create”.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eu8bkcss2ksoqec2425t.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0ij9ggo1gvs5yscroo8.png)
Once your VM is deployed, the next notification is “Your deployment is complete”

Congratulations, you have successfully created a VM on Azure portal.
Then click on “Go to resource”, because this VM is a resource, in order to access it we need to go resource page.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zxogwwy9gydf2tnslyls.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8m2hqnlbpql6qkwpqb1c.png)
Above is our VM resource page 

**Step 10:** Click on “Connect” to access connect to our VM. 

1. On the VM connect screen, we can see ( the public IP address for the VM , Name and other details) 
2. There are other ways to connect to VM, but for this “Select” Native RDP Local Machine”.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6643qanbt6s7n7yam210.png)
3.Wait until the Public IP Address has been configured.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4fsi7p6zflla7wnjs7h0.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qvqo4h63m05ybfrfkrv.png)
After configuration, Close the page and Download the RDP FILE
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pkbvrfu5osh2fqhbb64z.png)
**Step 11.** Download the RDP FILE and open it
1. Connect to the remote DESKTOP connection
2. Enter the password we gave the VM at the beginning 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p0hc9aj9mmnwr0vr55kr.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/conbxu3aqcbbivpplno8.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xl0tt756hhj8i4x72hzu.png)
Congratulations, you have created your first VM in Azure. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yyh42g7lfhlb3v5d3ou4.png)