Create and Deploy a windows server via Azure
Tags: azure, beginners, cloudpractitioner, programming
Published: 2023-11-23 11:40:51

**Trying to create a Windows web server ?**

Let's create and deploy a windows server using microsoft Azure using these basic steps.

## **Step 1** :

 Locate virtual Machine on the Azure portal and create


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


## **Step 2** :

Under Project details (resource group )- I will use an existing resource group **"Novemberworkload"** but if you don't have one create a new resource group and name it.



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



## **Step 3** :

Under Instance details - we have to name the virtual machine 

 **"windowssevervm"**

**Region**: Choose Australia east
**Availability options** : Availability zone
**Availability zone** : Choose just one zone- zone 1
**Security type** : Choose Trusted launch virtual machines
**Image** : Choose windows server 22 Datacenter : Azure Edition- x64 Gen2
**Vm Archicteture** : X64


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




## **Step 4**  : 

**Under administrative account**

**Username** : create your username and password ( note that you need to remember this info ).


## **Step 5** : 

**Under Inbound Port rules**

I will be installing on the windows server so select **HTTP (80) and RDP (3389)**


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




## **Step 6** :

Click to confirm licensing option

## **Step 7** :
 
 Under monitoring -  Disable diagnostic



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



## **Step 8** :

 Review and create (Make sure it shows validation passed to be sure everything is accurate)



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


## **Step 9** :  


Deployment is in progress


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


## **Step 10**  :

Deployment is complete . Click on 'Go to resource'


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


## **Now click on connect**


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


## **Step 11** :

Select 'Native RDP', wait for it to validate and get configured before you click on 'Download RDP'



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


## **Now it is configured, download RDP file**



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



## **Step 12** :

Once downloaded, connect to it


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


## **Step 13** :

Connect with the username and password created when creating your VM


## **Step 14**: 

Your remote desktop connection is ready...yayyy


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



## **Step 15** :

Now open powershell on your remote desktop, just like you will do on your computer. we're going to Install on powershell


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


## **Step 16** :

Once powershell is open (give it time)

Type in the code to install windows feature which is **'web server'**

`install-windowsfeature web-server`


## **Step 17** :

Web server installed


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



## **Step 18** :

Now copy the **Ip address** as shown in the image below and place on your web browser. We're doing this to test and see if our web server was truly installed.


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


**You will get to see this after running your Ip address on your web browser.**

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





**You have sucessfully created a windows server .... Yayyy 💃**
**Well done Mate👌**