DEPLOYING A WINDOWS 11 VIRTUAL MACHINE THAT IS HIGHLY AVAILABLE
Published: 2024-05-20 15:37:11

 When you log in to your Azure, at the task bar, type virtual machine and click on the one that is greyed out.
to create a virtual machine, click on the + create as shown below and select the Azure virtual machine create a virtual machine hosted by Azure and wait.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9wl30vbfo5dqvjbdabte.png) 
 It takes you to the Create a Virtual Machine Page where you have your basics Tab. This comprises of your Project Detail which includes your subscription and resource group. click on the create resource group and name it. see diagram below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46vth93jklordc1aifb1.png)
 Go to your instant details tab,name your virtual machine, chose your region and the availability zone as shown below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2rzui2yvqw3ptvrqj0a.png)
NB: I chose Three availability zones in order have my data replicated in those three zones so that I can easily recover my data from other zones in case any of the zones fail.

 Because I am deploying a windows 11 virtual machine, at the image section I selected windows 11 pro as shown below and leave the others as default.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u876jglql8o5kge8s1hv.png)
 For the administrator account section, we create the user name and password which you will use to log into the virtual machine after creation.we create as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u04qyfswwghzbnaoic0s.png)
 next is the Inbound Port Rules. leave the allowed selected ports checked and because we are deploying a windows machine, we select RDP 3389 for the selected inbound ports as shown below
NB: the ports are be checked in other to have a synergy with whatever am going to need it for. without it, it is deactivated.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/959x9r9iovesk1vy7xpm.png)
For the licensing section, check it as shown below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lxldcy476qcfs6lzcj5n.png)
 For the monitoring Section, we disable the diagnostics so to protect my work because of **defense in-depth** which is a strategy that leverages multiple security measures to protect an organization's assets. see below for disabling diagnostics.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4huo4jdchllso08kqswk.png)
For the tagging Section, we use it to tie the cost of running the machine to the department that uses it. so we tag as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpclw8jcumvhn24sl9l8.png)
after which we click review and create and allow it to load for a while. If the validation check is green, then we are good to go, but if red, the we need to check some things we did wrongly while setting up the VM and correct them. the validation check will indicate as shown below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/96wekznattgp250wgnjd.png)
Notice that the cost was tied to the IT department. see below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idtduel5y4hm0xuo4dh6.png)
Click on the Create button to create our Virtual machine and allow it to load. It displays deployment in progress as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0dox1pr4bc2u7311qrdx.png)
And after a while it displays your deployment is complete as shown below.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/535qrec2ozg13hqd1q51.png)
click go to resource button as indicated above and it takes you to the VM page where you will see the status indicating running, and the public IP address displayed as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shl94m3ojg2rgij5dyi6.png)
Click on the IP adress and it brings you to the time out page. stretch out the time out from 4mins to 30mins and save. as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4kppb63gktdhsycmva3.png)
Reason: If the time out is not reset to max time which is 30 minutes, you might be timed out while working on the VM.
when it pops out saved public IP address changes and checked green, close that saved time out window to bring you back to our VM page as shown below. Click on connect to connect to your virtual machine as indicated below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elrizj1ufucr0blegqs4.png).
After loading, it brings you to the native RDP page where you will click on select as shown

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6k06uxohsfl71s3g18g.png)
At the right hand side of the screen is the native RDP trying to configure the prerequisites and  the public IP to validate. see pics below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7navmlxrha3r9t9qmmn.png)
After configuration, the validating changes to configured as show below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atrfhwqmvpsqabvbtv9c.png)
Next click on the Download RDP File as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1fkso9ua1i9ui76fnrmj.png)
After downloading, Since we are configuring windows machine, we click on the downloaded RDP File and it will start connecting. For windows user, it connects directly, but MAC users, you need to download a Microsoft remote desktop in other to open the downloaded file. so when we click on the downloaded file, it brings us to a page where you need to log in with the password you created in the admin while displaying your username. as shown below.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81ygl5d54sql7ho5am6m.png)
Log in the password and click continue, allow it to load for a while and a windows 11 Interface displays as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8z0q2ss20qysiym82zo6.png)
allows it to load and it displays what you see below which is normal.

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

Click on the next button and a windows 11 computer desktop displays as below.

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