How to create a Virtual Machine in Azure portal
Tags: azure, devops, virtualmachine
Published: 2024-05-21 09:42:21

**The following steps below are how to create a virtual machine**

1. Go to portal.azure.com and login, the search for virtual machine and click on it.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7q90s4fqsn2hpcr7hmz8.png)
2. Then go to the basic tab, there are project details. and since there is a subscription click on create new to create a new resource group called "februaryworkload".
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcx58pjqcy5833104t59.png) 
3. instance details, give the Virtual machine a name. here, it was name "UgonnaVM". Then, select region and availability zones appropriately.
4. In image, select windows 11 pro. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gnlnlplyoc6wz4p1yaqw.png). leave the rest as default and go to administrators account.
5. In Administrators account, create username and password for the VM that is universally unique to you (must show green).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zaa50r87nflywhntuk3s.png)

6. In inbound port rules, in select inbound ports, select RDP(3389)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tyl2x4o1w2uy6zspcyjs.png)
7. check licensing 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fuyn1nh8xd4d88zb1znd.png)
8. In the basic bar, go to monitoring disable diagnostic
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rftweui3dbx2clz54w5x.png)
9. in the basic bar, click on tag 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q9f5rle4zk4r6trfkmad.png)
assuming the VM being created is for the sales unit it means that every cost element associated with the VM is the responsibility of the sales unit.
10. in the basic bar, click on review and create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nu3vm3hd3j31oycmy15.png)
11. then validation will be passed(highlighted green)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v21cp7l6txc228jzrmho.png)
12. then click on create (highlighted red) in the above image
13. the below image shows when the deployment is complete.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtpdn52lha9t5f8xqta5.png)
14. in other to increase the inbound time to avoid timing out, click on the resource button and increase the default timeout to be 30 mins and click on save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ys68vrgk1yb7jpvxqf2h.png)
15. in other to connect on the virtual machines we just created, click on connect as shown in the image below
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qayyl3uour4i39fvuxew.png)
16.In Native RDP click select 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/58l62qpd1iwrpx0zvwyj.png)
17 wait for it to be configured 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jevdu4trtc1dvec85w03.png)
18. click on download RDP file 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyx181hs8x4k40k6hugl.png)
19. go to download and click on UgonnaVM 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbgp7n0ucqckplverruu.png)
20. In remote desktop connection select connect 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxf9vdsjvm74ehw4qziu.png)
21. The image would would pop up so you can enter your password
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/55oq0f6l3q3gqxoq2jf8.png)
22. the image that comes out is an windows 11 image 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1l1a1jyy234ilvt068b.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/on0cvrxqx3ucqlqcyjap.png)