Setting Up a Windows Web Server on Azure with IIS
Published: 2024-06-10 23:51:08

Creating a Windows web server on Azure and installing IIS can be a breeze with the right guidance. In this step-by-step tutorial, we'll walk through the process from start to finish, complete with helpful images to guide you along the way.

## Step 1: Navigate to Azure Portal

First things first, log in to your Azure portal and navigate to the Virtual Machines section.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41uz74rjcdhb3jnr656c.jpg)

## Step 2: Create a Virtual Machine

Click on "Create" to start the process of creating a new Azure Virtual Machine.

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

## Step 3: Define Resource Group and Virtual Machine Details

Underneath the Resource Group section, create a new Resource Group. Then, give your virtual machine a name and select the Windows Server image. For this tutorial, we'll use Windows Server 2019.

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

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/63swculoj583hxtmgh5t.jpg)

## Step 4: Choose Virtual Machine Size and Create Administrator Account

Select an appropriate size for your virtual machine and create an Administrator account. Ensure your password meets the security requirements.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9x39p1iz9vvos3ll6ih1.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/54h27saus2qwlep00s4b.jpg)

## Step 5: Configure Networking

Select the HTTP (80) inbound port and proceed to Review + create.

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

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

## Step 6: Connect to Your Virtual Machine

Once the deployment is complete, go to the Resource and click on "Connect." Underneath Native RDP, select and download the RDP file.

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

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

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

## Step 7: Install IIS

Once connected to your virtual machine, open PowerShell and run the following command to install the IIS Web Server Role:

Install-WindowsFeature -name Web-Server -IncludeManagementTools

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

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

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



## Step 8: Verify Installation

Wait for the installation to finish, then open Microsoft Edge and type in your public IP address. You should see the IIS default page indicating a successful installation.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3f3zco7bw425gy91mygq.jpg)

Congratulations! You've successfully created a Windows web server on Azure and installed IIS. Now you're ready to host your website and explore further customization options.