How To Create A Windows server Like a Pro
Source: Dev.to
What is Windows Server?
A Windows Server is a type of computer operating system designed to manage and provide services to other computers on a network. It acts like a librarian for computers, keeping files, websites, and applications organized and running smoothly so users can access what they need quickly and securely.
Creating a Windows Server on Azure
- Open the Microsoft Azure Portal and type Virtual Machine in the search bar. Select Virtual Machines.
- Click the + Create button and choose Virtual Machine.
- On the Basics tab, select an existing Resource group from the dropdown, or click Create new to make one.
- Provide a name for your virtual machine, choose a Region, and set Availability options to No infrastructure redundancy required (suitable for a free trial account).
- Security type: Standard
- Image: Choose Windows Server 2022 (or another version you prefer).
- (Optional) Select an Availability zone if you want the VM replicated across multiple zones.
- Choose a suitable Size for your VM.
- Under Administrator account, enter a username and password, then confirm the password.
- For Inbound port rules, select HTTP.
- In the Monitoring section, disable diagnostics if you do not want Microsoft to collect activity data.
- (Optional) Add Tags to help identify the VM’s ownership or purpose.
- Click Review + create.
- After validation passes, click Create.
- Once deployment finishes, click Go to resource.
Connecting to Your Windows Server
- In the VM overview, click the Public IP address to open the connection settings.
- Increase the timeout setting to prevent unexpected disconnections.
- Click Connect → Download RDP file.
- Open the downloaded RDP file and click Connect.
- When prompted, enter the administrator password you set earlier and click OK.
- You are now connected to your Windows Server virtual machine.
Installing IIS (Web Server)
-
On the Windows Server desktop, open the Start menu, type PowerShell, right‑click Windows PowerShell, and select Run as administrator.
-
In the elevated PowerShell window, run the following command:
Install-WindowsFeature -Name web-server -IncludeManagementTools -
Wait for the installation to complete; the screen will display a success message.
Verifying IIS Installation
- Copy the VM’s public IP address.
- Open a web browser, paste the IP address into the address bar, and press Enter.
- You should see the default IIS welcome page, confirming that the web server is running.